Hi, I'm fairly new to the arduino world and for a project I would want to know if this is possible to get the clock source from a pin of the arduino. As I understood, if this was possible it would be a fuse to change on the bootloader, I have already an ISP programmer ready, but I can't find any fuse that could do that.
Arduino is a learning platform for beginners, no board have socket for CPU tacting/clocking purpose. if you get experienced you can soldering a wire direct to XTAL2 pin on the chip. you may also set timer to overflow each tacting cycle and get half frequency on corresponding PWM pin, but simplest is to build a generator by yourself
You want the clock source FROM a pin (as an output), or TO a pin (as an input)?
The former can be done by programming the the CKOUT fuse in the Low fuse byte, as long as you want it to show up on PB0 (Arduino Uno Pin 8, I think.)
- 8.9 Clock Output Buffer
The device can output the system clock on the CLKO pin. To enable the output, the CKOUT Fuse has to be programmed. This mode is suitable when the chip clock is used to drive other cir- cuits on the system. The clock also will be output during reset, and the normal operation of I/O pin will be overridden when the fuse is programmed. Any clock source, including the internal RC Oscillator, can be selected when the clock is output on CLKO. If the System Clock Prescaler is used, it is the divided system clock that is output.
You can also output a divisor of the clock on one of the timer compare outputs, up to 8MHz on a 16MHz Arduino (which can be controlled entirely in SW without fuse changes.)
(All this is for the Microchip AVR based Arduinos. It's be different on other boards with other microcontrollers.)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.