Re: Generate 30 Mhz Clock and an Interrupt on every nth Cloc
Posted: Mon Aug 06, 2012 8:09 pm
Hi Giovanni,
I decided to switch back to your proposed PWM-Method because I could noch use the EXTI as you metioned. And now it works. My fault was a period of 1 which ist not working to generate a clock pulse. I needed to use 2 as minimal period. I now managed to clock in data into the TLC5940 at a rate of 21 Mhz. Any rate above fails. Is there a reason that above 21 MHz the PWM or the used GPT (4096 countdown) will not work above 21 Mhz? Is this because of the ASSERTS I read about? Or is it more simple because I need to transfere 192 Bits to the TLC5940 and there is simply not enough time for that?
Anyhow, Many thanks for the help. I will post the code for a TLC5940 library for ChibiOS if my project is ready.
Thanks
Mario
I decided to switch back to your proposed PWM-Method because I could noch use the EXTI as you metioned. And now it works. My fault was a period of 1 which ist not working to generate a clock pulse. I needed to use 2 as minimal period. I now managed to clock in data into the TLC5940 at a rate of 21 Mhz. Any rate above fails. Is there a reason that above 21 MHz the PWM or the used GPT (4096 countdown) will not work above 21 Mhz? Is this because of the ASSERTS I read about? Or is it more simple because I need to transfere 192 Bits to the TLC5940 and there is simply not enough time for that?
Anyhow, Many thanks for the help. I will post the code for a TLC5940 library for ChibiOS if my project is ready.
Thanks
Mario