This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone,
I'm using the uController mentioned in the title for a current project. I need especially the Ramp Generator located in the Comparator Subsystem.
Therefore I would like to make use of the propagated prescaler to generate a flatter ramp (see below highlighted text from reference manual).
But I'm not able to activate the prescaler and I can't find any further information.
I'm happy about any help!
Best Regards,
Johann
Hi Johann,
There is no dedicated prescaler for the RAMPGEN on the F28004x device. What that statement is saying is that because the MSB 12-bits of the 16-bit RAMPSTS register is what is sent to the COMPDAC, the lower 4-bits of the RAMPSTS register effectively act as prescale if your RAMPDECVAL is less than 16.
For example, if RAMPDECVAL is 16, the COMPDAC will be decrementing 1LSB every SYSCLK. However if RAMPDECVAL is 1, the COMPDAC will decrement 1LSB every 16 SYSCLKs. I hope this is clear.
I was finally able to test it again and yes, it works like you have explained. Thank you so much!!
Hi Johann,
Glad to hear it's clear now. Let us know if more questions come up.