Rev. 6.00, 08/04, page 316 of 628
Figure 9.22 and table 9.20 show examples of event counter PWM operation.
t
off
= T
×
(N
dr
+1)
t
on
t
cm
= T
×
(N
cm
+1)
T
on
: Clock input enabled time
T
off
: Clock input disabled time
T
cm
: One conversion period
T :
ECPWM input clock cycle
N
dr
: Value of ECPWDRH and ECPWDRL
Fixed low when Ndr = H'FFFF
N
cm
: Value of ECPWCRH and ECPWCRL
Figure 9.22 Event Counter Operation Waveform
Note:
N
dr
and N
cm
above must be set so that N
dr
< N
cm
. If the settings do not satisfy this
condition, do not set ECPWME in AEGSR to 1.
Table 9.20
Examples of Event Counter PWM Operation
Conditions: f
osc
= 4 MHz, f
φ
= 2 MHz, high-speed active mode, ECPWCR value (N
cm
) = H'7A11,
ECPWDR value (N
dr
) = H'16E3
Clock Source
Selection
Clock Source
Cycle (T)
*
ECPWCR
Value (N
cm
)
ECPWDR
Value (N
dr
)
t
off
= T •
(N
dr
+ 1)
t
cm
= T •
(N
cm
+ 1)
t
on
= t
cm
– t
off
φ
/2
1 µs
5.86 ms
31.25 ms
25.39 ms
φ
/4
2 µs
H'7A11
D'31249
H'16E3
D'5859
11.72 ms
62.5 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:
*
t
off
minimum width
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.
Summary of Contents for H8/38024 Series
Page 18: ...Rev 6 00 08 04 page xviii of xxx...
Page 30: ...Rev 6 00 08 04 page xxx of xxx...
Page 130: ...Rev 6 00 08 04 page 100 of 628...
Page 216: ...Rev 6 00 08 04 page 186 of 628...
Page 416: ...Rev 6 00 08 04 page 386 of 628...
Page 432: ...Rev 6 00 08 04 page 402 of 628...
Page 468: ...Rev 6 00 08 04 page 438 of 628...
Page 661: ...H8 38024 H8 38024S H8 38024F ZTAT H8 38124 Group Hardware Manual...