Datasheet

Table Of Contents
Section 15 Asynchronous Event Counter (AEC)
Rev. 2.00 Jul. 04, 2007 Page 321 of 692
REJ09B0309-0200
15.3 Register Descriptions
The asynchronous event counter has the following registers.
Event counter PWM compare register (ECPWCR)
Event counter PWM data register (ECPWDR)
Input pin edge select register (AEGSR)
Event counter control register (ECCR)
Event counter control/status register (ECCSR)
Event counter H (ECH)
Event counter L (ECL)
15.3.1 Event Counter PWM Compare Register (ECPWCR)
ECPWCR sets the one conversion period of the event counter PWM waveform. ECPWCR should
be read from or written to in word units.
Bit Bit Name
Initial
Value
R/W Description
15 ECPWCR15 1 R/W
14 ECPWCR14 1 R/W
13 ECPWCR13 1 R/W
12 ECPWCR12 1 R/W
11 ECPWCR11 1 R/W
10 ECPWCR10 1 R/W
9 ECPWCR9 1 R/W
8 ECPWCR8 1 R/W
7 ECPWCR7 1 R/W
6 ECPWCR6 1 R/W
5 ECPWCR5 1 R/W
4 ECPWCR4 1 R/W
3 ECPWCR3 1 R/W
2 ECPWCR2 1 R/W
1 ECPWCR1 1 R/W
0 ECPWCR0 1 R/W
One Conversion Period of Event Counter PWM
Waveform
When the ECPWME bit in AEGSR is 1, the event
counter PWM is operating and therefore ECPWCR
should not be modified.
When changing the conversion period, the event
counter PWM must be halted by clearing the ECPWME
bit in AEGSR to 0 before modifying ECPWCR.