Mar 19, 2019
04:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 19, 2019
04:13 AM
Hello,
I am completely new to DAVE 4.2, I have an XMC 4700 Relax kit with CAN.
I am working on an automotive voltage hold-up during cranking & backup power project.
What I want to do to get me started is.
Receive a 29bit CAN message at 500 Kbaud.
CAN message has 3 signals: D to A start value, D to A end value, Ramping rate from start to end 0 = Fastest rate, 0xFFFF = Slowest rate
I will feed the D to A to my 100 Amp DC response amplifier.
Is there a demo program that already does this?
I am completely new to DAVE 4.2, I have an XMC 4700 Relax kit with CAN.
I am working on an automotive voltage hold-up during cranking & backup power project.
What I want to do to get me started is.
Receive a 29bit CAN message at 500 Kbaud.
CAN message has 3 signals: D to A start value, D to A end value, Ramping rate from start to end 0 = Fastest rate, 0xFFFF = Slowest rate
I will feed the D to A to my 100 Amp DC response amplifier.
Is there a demo program that already does this?
- Tags:
- IFX
3 Replies
Mar 25, 2019
05:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 25, 2019
05:03 AM
I've been looking at the D to A.
Looks like the D to A Ramps Up or Down very smoothly a good function. However, the D to A does not generate an interrupt when it gets to the final value in the ramp mode, also, I don't want the ramping to restart a cycle again.
How do I get around this?
* Use the DMA controller to generate ramps?
* Have a second timer to generate an interrupt when the ramp is calculated to be finished?
Single value D to A mode uses too much micro resources, I want ramps from 100us to 10s
any ideas?
Looks like the D to A Ramps Up or Down very smoothly a good function. However, the D to A does not generate an interrupt when it gets to the final value in the ramp mode, also, I don't want the ramping to restart a cycle again.
How do I get around this?
* Use the DMA controller to generate ramps?
* Have a second timer to generate an interrupt when the ramp is calculated to be finished?
Single value D to A mode uses too much micro resources, I want ramps from 100us to 10s
any ideas?
Attachments are accessible only for community members.
Mar 29, 2019
07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 29, 2019
07:25 AM
Attachment is the program I have done to ramp the D to A between values. Runs on a XMC4700 relax dev board.
The program generates an up or down ramp every one second without micro resources.
When the D to A changes between ramp mode & single value mode there is an unwanted 10 microsecond glitch. How do I get rid of the glitch?
The program generates an up or down ramp every one second without micro resources.
When the D to A changes between ramp mode & single value mode there is an unwanted 10 microsecond glitch. How do I get rid of the glitch?
Attachments are accessible only for community members.
Apr 02, 2019
11:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2019
11:24 AM