Chapter 9
16-bit Timer
Event Count IX - 43
9.5 Event Count
9.5.1 Event Count Operation
Event count operation is to count the edge selected by the TMnBIN pin as a count clock. Also, it can mask (stop 
counting) the count clock by the TMnAIN pin.
■ Event Count Operation
When the TMnBIN pin is selected to a clock source, the event counter operates. The event count operation means 
that the binary counter (TMnBC) counts up (or count down) the external signal input to the TMnIO pin as a count 
clock
■ Event Count Input Pin
Table: 9.5.1 shows event count input pins.
Table:9.5.1 Event Count Input Pin
When pins are used as event count input, the settings of the following registers are necessary.
Table:9.5.2 Setting Input Pin
The settings of the following registers are necessary for the count edges of event input pins.
When the count edge is single edge, the setting of the TMBEG flag of the timer compare/capture B mode register 
is necessary.
Table:9.5.3 Setting Count Edge of Event Input Pin
Timer 8 Timer 9 Timer 10 Timer 11 Timer 12 Timer 13
Input pin TM8BIO TM9BIOTM10BIOTM11IO1- -
Port output mode register Port I/O control register
TM8BIO P3MD(P37M) P3DIR(P37D)
TM9BIO P4MD(P43M) P4DIR(P43D)
TM10BIO P4MD(P47M) P4DIR(P47D)
TM11IO1 P7MD(P73M) P7DIR(P73D)
Timer mode register Timer compare/capture B mode register
TM8BIO TM8MD(TMCK2 to 0) TM8MDB(TMBEG)
TM9BIO TM9MD(TMCK2 to 0) TM9MDB(TMBEG)
TM10BIO TM10MD(TMCK2 to 0) TM10MDB(TMBEG)
TM11IO1 TM11MD(TMCK2 to 0) TM11MDB(TMBEG)