English
Language : 

M16C65 Datasheet, PDF (346/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
17. Timer A
17.3.4 Event Counter Mode (When Processing Two-Phase Pulse Signal)
Timers A2, A3, and A4 can be used to count two-phase pulse signals. Table 17.10 lists Specifications of
Event Counter Mode (When Processing Two-Phase Pulse Signal with Timers A2, A3, and A4). Table
17.11 lists Registers and the Setting in Event Counter Mode (When Processing Two-Phase Pulse
Signal).
Table 17.10 Specifications of Event Counter Mode (When Processing Two-Phase Pulse Signal with
Timers A2, A3, and A4)
Item
Count source
Count operations
Number of counts
Count start condition
Count stop condition
Interrupt request
generation timing
TAiIN pin function
TAiOUT pin function
Read from timer
Write to timer
Selectable functions
i = 2 to 4
Specification
Two-phase pulse signals input to the TAiIN or TAiOUT pin
• Increment or decrement can be selected by a two-phase pulse signal.
• When the timer overflows or underflows, it reloads the reload register contents
and continues counting. When operating in free-running mode, the timer
continues counting without reloading.
• FFFFh - n + 1 for increment
• n + 1 for decrement
n: set value of the TAi register 0000h to FFFFh
Set the TAiS bit in the TABSR register to 1 (start counting).
Set the TAiS bit to 0 (stop counting).
Timer overflow or underflow
Two-phase pulse input
Two-phase pulse input
Count value can be read by reading timer A2, A3, or A4 register.
• When not counting
Value written to the TAi register is written to both reload register and counter.
• When counting
Value written to the TAi register is written to only reload register
(transferred to counter when reloaded next).
• Select normal or multiply-by-4 processing operation (timer A3).
• Counter initialization by Z-phase input (timer A3)
The timer count value is initialized to 0 by Z-phase input.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 311 of 791