Multiplexing Clocks or something similar | Cypress Semiconductor
Multiplexing Clocks or something similar
I'm having some troubles with reading data out of a linear sensor. I'll be posting later about the ADC step, but I need to figure out something else first. Basically I want to be able to either multiplex two clocks on a single digital IO line. I need a 10Mhz clock for part of the sensors cycle, but then, when it's time to read out the video signal, I need to slow down the clock (the minimum the sensor can run is 200kHz). The reason I need to slow it down is so that I can do ADC on the signal, and it has to be fast (10Mhz) so that I can have a low integration time.
I've been successful setting the fractional clock divider in an pwm interrupt to slow down and speed up the clock, but I'd rather have the PWM output change the clock without the interrupt.
Here's the linear sensor (
I have the driver circuit all developed, and everything is working, except that I now have to get the data out, and I know that I have to slow down the clock to allow the ADC to have enough time...