Chapter 9
16-bit Timer
9.11 External Trigger
9.11.1
External Trigger Operation
External trigger is to activate timers by external input pins.
Setting External Trigger Operation
Timers can be activated with the external trigger by setting the TMTGE flag of the timer mode register (TMnMD)
to "1". The TMAEG flag of the timer compare/capture A register sets whether timer is activated at the falling
edge, or it is activated at rising edge of the input pin. The flag is "0" at the rising edge and "1" at the falling edge.
Setting Input Pin
Table:9.11.1 shows the pins which can use the external trigger.
Table:9.11.1 Timer and Input Capture Input PIn
TImer 8
Input pin
TM8AIO
When pins are used as external trigger, the settings of the following registers are necessary.
Table:9.11.2 Setting Input PIn
TM8AIO
TM9AIO
TM10AIO
TM11IO0
IX - 68
External Trigger
Timer 9
Time 10
TM9AIO
TM10AIO
Port output mode register
P3MD(P36M)
P4MD(P42M)
P4MD(P46M)
P7MD(P72M)
Timer 11
Timer 12
TM11IO0
-
Port I/O control register
P3DIR(P36D)
P4DIR(P42D)
P4DIR(P46D)
P7DIR(P72D)
Timer 13
-