2017-06-30 01:38 AM
Hello:
Thank in advance for reading this,
I have to count 7 periods out of an 8MHz signal and then wait for the next period 64KHz( 15,625us). I�m using an STM32L432 Nucleo device. I have generated the 8MHz signal using TIM1 as a PWM generator, but I don�t know how to follow up my project.
I�m pretty newbie using this kind of devices so I �m a bit lost. Any help would mean a world to me.
If you have any question let me know, please
2017-06-30 02:47 AM
My take: Make a timer overflowing at 64kHz, use a GPIO toggling from one of the timer output compare. Feed the output compare from DMA which scans a table generating the required pulses.
2017-06-30 03:38 AM
Circular DMA buffer with 125 entries, driving a TIM in PWM at 8 MHz with 7x 50/50 value and the rest 0 as in OFF. Values loading at Update signal.
2017-07-03 02:31 AM
I´m sorry, but as I said, I´m pretty newbie with this kind of devices (2 months ago I was learning how to blink a LED) so I haven´t understand it all.
This is what I get from your message. Make a timer overflowing at 64KHz. Then I use GPIO Toggle to count the pulses I need from the 8MHz signal???
After this I haven´t understand what do I have to do, sorry.