Timer T1 setup for external counting

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

Timer T1 setup for external counting

Post by rich »

Don;

I need to setup Timer 1 to use the T1 pin to count pulses and generate and interrupt on overflow.

I have been reading through the data sheet of the ATmega328p but am a bit confused as to how many of the register have to be setup.
I have searched through the forum but did not find specific code examples.

Could you show me a code example using Register. constructs to setup the counter?

Thanks much
Rich
Post Reply