Go Down

Topic: ATmega328P use counters (Read 3611 times) previous topic - next topic

ardteh

Hi
What function software can I use to count the pulses from an incremental transducer.

I would like to use the 16-bit counter and its capture function ,to read the value it has reached at a certain point, while it continues to count.

How can I program the counter to count on the rising or falling front of the input pulse.

Thanks !

jremington

#1
May 20, 2020, 04:55 pm Last Edit: May 20, 2020, 04:55 pm by jremington
Good tutorial on ATmega328 timers. Scroll down to input capture unit.

ardteh


Go Up