English
Language : 

HD6433802H Datasheet, PDF (231/435 Pages) Hitachi Semiconductor – Single-Chip Microcomputer
toff = T × (Ndr +1)
ton
tcm = T × (Ncm +1)
Ton :
Toff :
Tcm :
T:
Clock input enabled time
Clock input disabled time
One conversion period
ECPWM input clock cycle
Ndr : Value of ECPWDRH and ECPWDRL
Fixed high when Ndr = H'FFFF
Ncm : Value of ECPWCRH and ECPWCRL
Figure 9.10 Event Counter Operation Waveform
Note: Ndr and Ncm above must be set so that Ndr < Ncm. If the settings do not satisfy this
condition, do not set ECPWME to 1 in AEGSR.
Table 9.9 Examples of Event Counter PWM Operation
Conditions: fosc = 4 MHz, fø = 2 MHz, high-speed active mode, ECPWCR value (Ncm) = H'7A11,
ECPWDR value (Ndr) = H'16E3
Clock Source Clock Source ECPWMCR ECPWMDR toff = T ×
Selection
Cycle (T)*
Value (Ncm) Value (Ndr) (Ndr + 1)
ø/2
1 µs
H'7A11
H'16E3
5.86 ms
ø/4
2 µs
D'31249 D'5859
11.72 ms
tcm = T ×
(Ncm + 1)
31.25 ms
62.5 ms
ton = tcm – toff
25.39 ms
50.78 ms
ø/8
4 µs
23.44 ms 125.0 ms 101.56 ms
ø/16
8 µs
46.88 ms 250.0 ms 203.12 ms
ø/32
16 µs
93.76 ms 500.0 ms 406.24 ms
ø/64
32 µs
187.52 ms 1000.0 ms 812.48 ms
Note: * toff minimum width
5. Clock Input Enable/Disable Function Operation
The clock input to the event counter can be controlled by the IRQAEC pin when ECPWME in
AEGSR is 0, and by event counter PWM output IECPWM when ECPWME in AEGSR is 1. As
this function forcibly terminates the clock input by each signal, a maximum error of one count will
occur depending the IRQAEC or IECPWM timing.
Figure 9.11 shows an example of the operation of this function.
213