I have few doubts in RM48 PWM generation.
The system Clock of RM48 is 220 MHz. and what is the maximum PWM frequency generated by the controller (RM48L952). How to calculate the PWM output frequency.
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.
Manjunathan,
You won't have any with a 10KHz PWM period on this device. I wouldn't worry about counting cycles for the PWM program just yet because as long as your program can execute multiple times within the PWM period it will work well and you can execute about 8 loops of a complex PWM program of 128 execution cycles within a 10KHz period.
If you are running at 9.09ns, (110MHz HET) you'll have just under 13.5 bits of resolution for your duty cycle.
-Anthony
Hi Manjunathan,
The HET IDE includes an 'algorithm library' which has both input and output templates.
There are 8 different kinds of PWMs in the template and of course you can create your own based on these.
Then you can assembly your HET code and simulate it in the HET IDE to make sure it's what you want.
After this you should have a header and a "C" file in the HET IDE project folder - these are your HET assembly program converted to "C" functions so that they can be built into your MCU application code.
If you use HalCoGen, then there is a checkbox in the HET tab 'Enable Advanced Config Mode'. If you check this box, it asks you to select a header and a C file. Navigate to the HET Project you create and pick the C and H files from your code. HalCoGen will make a copy and when call hetInit() it will load *your* program into the HET instead of the blackbox driver.
Thank you Mr.Anthony F. Seely. i will work on the procedure.
Thanks and regards
K.Manjunathan