
Rev.2.10 Apr 14, 2006 page 123 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Figure 13.9 Registers TA2MR to TA4MR in Event Counter Mode (when using two-phase pulse
signal processing with timers A2, A3, and A4)
Timer Ai Mode Register (i = 2 to 4)
(When using two-phase pulse signal processing)
Symbol
TA2MR to TA4MR
b6 b5 b4 b3 b2 b1 b0
Operating mode select bits
0 1 : Event counter mode
b1 b0
TMOD1
TMOD0
MR0
MR2
MR1
MR3
TCK1
TCK0
010
Bit NameBit Symbol Function
RW
Count operation type
select bit
Two-phase pulse signal
processing operation
select bit
(1) (2)
0 : Reload type
1 : Free-run type
0 : Normal processing operation
1 : Multiply-by-4 processing operation
001
RW
RW
RW
RW
RW
RW
RW
RW
To use two-phase pulse signal processing, set this bit to 0.
To use two-phase pulse signal processing, set this bit to 1.
To use two-phase pulse signal processing, set this bit to 0.
NOTES:
1. The TCK1 bit is valid for the TA3MR register. No matter how this bit is set, timers A2 and A4 always operate in
normal processing mode and x4 processing mode, respectively.
2. If two-phase pulse signal processing is desired, following register settings are required:
Set the TAiP bit in the UDF register to 1 (two-phase pulse signal processing function enabled).
Set bits TAiTGH and TAiTGL in the TRGSR register to 00b (TAiIN pin input).
Set the port direction bits for TAiIN and TAiOUT to 0 (input mode).
Address After Reset
0398h to 039Ah 00h
Comentários a estes Manuais