Datasheet

Table Of Contents
Section 15 Asynchronous Event Counter (AEC)
Rev. 2.00 Jul. 04, 2007 Page 333 of 692
REJ09B0309-0200
15.6 Usage Notes
1. When reading the values in ECH and ECL, first clear bits CUEH and CUEL to 0 in ECCSR in
8-bit mode and clear bit CUEL to 0 in 16-bit mode to prevent asynchronous event input to the
counter. The correct value will not be returned if the event counter increments while being
read.
2. For input to the AEVH and AEVL pins, use a clock with a frequency of up to 4.2 MHz within
the range from 1.8 to 3.6 V and up to 10 MHz within the range from 2.7 to 3.6 V. For the high
and low widths of the clock, see section 26, Electrical Characteristics. The duty cycle is
arbitrary.
Table 15.4 shows a maximum clock frequency.
Table 15.4 Maximum Clock Frequency
Mode
Maximum Clock Frequency
Input to AEVH/AEVL Pin
Active (high-speed), sleep (high-speed) 10 MHz
Active (medium-speed), sleep (medium-speed) (φ
OSC
/8)
(φ
OSC
/16)
(φ
OSC
/32)
f
OSC
= 2 MHz to 4 MHz (φ
OSC
/64)
2 f
OSC
f
OSC
1/2 f
OSC
1/4 f
OSC
Watch, subactive, subsleep, standby (φ
W
/2)
(φ
W
/4)
φ
W
= 32.768 kHz or 38.4 kHz (φ
W
/8)
1000 kHz
500 kHz
250 kHz
3. When AEC uses with 16-bit mode, set CUEH in ECCSR to 1 first, set CRCH in ECCSR to 1
second, or set both CUEH and CRCH to 1 at same time before clock input. When AEC is
operating on 16-bit mode, do not change CUEH. Otherwise, ECH will be miscounted up.
4. When ECPWME in AEGSR is 1, the event counter PWM is operating and therefore ECPWCR
and ECPWDR should not be modified.
When changing the data, clear the ECPWME bit in AEGSR to 0 (halt the event counter PWM)
before modifying these registers.
5. The event counter PWM data register and event counter PWM compare register must be set so
that event counter PWM data register < event counter PWM compare register. If the settings
do not satisfy this condition, do not set ECPWME to 1 in AEGSR.