indraastra
Member
I would like to generate a >1MHz clock signal for an external LED driver chip to use for its PWM cycle. I've been doing this on another microcontroller by setting up a PWM pin with a 50% duty cycle to pulse on and off very quickly, which required access to the low-level registers. I've read this thread on interrupts so I'm pretty sure I can accomplish something similar here, but the datasheet is extremely daunting. If I could even be pointed in the right direction, that would be a great help.
The clock-generation is just a peripheral function the code would have to perform; the main loop would be tied up doing some other work, but the world outside it has to keep on ticking, hence the need for doing this outside the main loop without using interrupts.
Thanks!
Vishal
The clock-generation is just a peripheral function the code would have to perform; the main loop would be tied up doing some other work, but the world outside it has to keep on ticking, hence the need for doing this outside the main loop without using interrupts.
Thanks!
Vishal