Does anybody know how to generate a clock signal on an digital pin of an Arduino Due?like a CPU clock. I am trying to communicate to a OV3640 but i have to give it a 24 MHz clock signal. I was wondering if there was a way to generate that using the CPU clock of the Due.
i tried using the PWM signal but i could not adjust the frequency. Do you know how to change it?
I don't exactly know, but you should definitely take a look at this: http://asf.atmel.com/docs/latest/sam3x/html/group__sam__drivers__pwm__group.html
The PMC controls 3 signals to be output on external pins, PCKx. Each signal can be independentlyprogrammed via the Programmable Clock Registers (PMC_PCKx).PCKx can be independently selected between the Slow Clock (SLCK), the Main Clock(MAINCK), the PLLA Clock (PLLACK), UTMI PLL Clock (UPLLCK/2) and the Master Clock(MCK) by writing the CSS field in PMC_PCKx. Each output signal can also be divided by apower of 2 between 1 and 64 by writing the PRES (Prescaler) field in PMC_PCKx.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16