Chapter 9
16-bit Timer
IX - 48 Up/Down Counting
9.6 Up/Down Counting
9.6.1 Up/Down Counting Operation
Up/down counting is the function that the binary counter counts up or down according to the condition of the
input pin.
■ Input Pin
Table: 9.6.1 shows the pins for up/down counting.
Table:9.6.1 Timer and Up/Down Counting Input Pin
When pins are used as up/down count input, the settings of the following registers are necessary.
Table:9.6.2 Setting Input Pin
Timer 8 Timer 9 Timer 10 Timer 11 Timer 12 Timer 13
Input pin TM8AIO
TM8BIO
TM9AIO
TM9BIO
TM10AIO
TM10BIO
TM11IO0
TM11IO1
--
Port output mode register Port I/O control register
TM8AIO P3MD(P36M) P3DIR(P36D)
TM8BIO P3MD(P37M) P3DIR(P37D)
TM9AIO P4MD(P42M) P4DIR(P42D)
TM9BIO P4MD(P43M) P4DIR(P43D)
TM10AIO P4MD(P46M) P4DIR(P46D)
TM10BIO P4MD(P47M) P4DIR(P47D)
TM11IO0 P7MD(P72M) P7DIR(P72D)
TM11IO1 P7MD(P73M) P7DIR(P73D)