Hello!
I'm working on a 8-bit computer and I'm evaluating the feasibility of using an AVR microcontroller (Atmega1284P to be exact) for generating the clock signal for the CPU.
I need to generate a 1 Mhz clock signal using the AVR timer hardware and I need to be able to pause and resume the clock. It is critical that the clock is always paused in high state.
Is this possible to do? Can I read back the output state and stop/resume the timer when the signal is high?
I can work out the details myself, but it would be nice to know about the general feasibility of this idea so that I don't hit a dead-end after spending a lot of time on this ![]()