207
CHAPTER 9 12-BIT PPG TIMER
If the set "H" width is equal to or greater than the set cycle period, "H" level outputs occur.
■
12-bit PPG Function
The timer’s programmable pulse output generator function can be used as a 12-bit PPG because it can set a
cycle period and "H" pulse width of output pulse waveforms separately. A range of controllable duty cycles
is 0.02% to 100%. However, the smaller the compare value for the cycle period, the lower the resolution
(the greater a minimum-step duty cycle).
If the compare value for the cycle period is "2", a comparative setting of "H" pulse width is 1 or 2 (a duty
cycle of 50% or 100%) and the resolution is 1/2.
An output frequency and a duty cycle can be calculated using the following equations:
Output pulse cycle period = Compare value for cycle period
×
Count clock cycle period
Duty cycle = Compare value for "H" width/Compare value
×
100(%)
Table 9.1-2 lists available resolution values, minimum-step duty cycles, and output pulse cycle periods.
=10
×
2
×
0.
3
2
µ
s
Cycle period = Comp
a
re v
a
l
u
e for cycle period
×
Co
u
nt clock cycle period
= 011110
H
(
3
0-clock period)
×
2
×
4/F
CH
=
3
0
×
2
×
0.
3
2
µ
s
= 19.2
µ
s
"H" width = Comp
a
re v
a
l
u
e for "H" width
×
Co
u
nt clock cycle period
= 001010
B
(10-clock width)
×
2
×
4/F
CH
=6.4
µ
s
Table 9.1-2 Resolutions and Output Pulse Cycle Periods Supported when the Timer is Used as a 12-bit
PPG (1/2)
Compare
value for
cycle
period
Range of
available
compare
values for
"H" width
Output pulse cycle period
Resolution
Minimum-
step duty
cycle
Count clock
= 2 t
INST
Count clock
= 4 t
INST
Count clock
= 16 t
INST
Count clock
= 256 t
INST
0
-
Unavailable
1
-
2
1, 2
4 t
INST
8 t
INST
32 t
INST
512 t
INST
1/2
50.0%
3
1 to 3
6 t
INST
12 t
INST
48 t
INST
768 t
INST
1/3
33.3%
4
1 to 4
8 t
INST
16 t
INST
64 t
INST
1024 t
INST
1/4
25.0%
5
1 to 5
10 t
INST
20 t
INST
80 t
INST
1280 t
INST
1/5
20.0%
6
1 to 6
12 t
INST
24 t
INST
96 t
INST
1536 t
INST
1/6
16.7%
7
1 to 7
14 t
INST
28 t
INST
112 t
INST
1792 t
INST
1/7
14.3%
8
1 to 8
16 t
INST
32 t
INST
128 t
INST
2048 t
INST
1/8
12.5%
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......