MEAM.Design - MAEVARM - Timers/Counters


The MaEvArM microcontroller contains 4 different timers: Timer 0 (8-bit, dual output compare); Timer 1 (16-bit, triple output compare, single input capture); Timer 3 (16-bit, single output compare, single input capture); and Timer 4 (10-bit high speed, triple output compare). The timer channels are all multiplexed with GPIO pins, and can be found at the following locations:


Timer 0

Configuration Details

OC0A B7 output compare, timer 0, channel A
OC0B D0 output compare, timer 0, channel B


Timer 1

Configuration Details

OC1A B5 output compare, timer 1, channel A
OC1B B6 output compare, timer 1, channel B
OC1C B7 output compare, timer 1, channel C
IPC1 D4 input capture, timer 1


Timer 3

Configuration Details

OC3A C6 output compare, timer 3, channel A
IPC3 C7 input capture, timer 3


Timer 4

Configuration Details

OC4A C7 output compare, timer 4, channel A
/OC4A C6 inverted output compare, timer 4, channel A
OC4B B6 output compare, timer 4, channel B
/OC4B B5 inverted output compare, timer 4, channel B
OC4D D7 output compare, timer 4, channel D
/OC4D D6 inverted output compare, timer 4, channel D