Fujitsu F2MC-8L F202RA Hardware Manual page 223

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

Cycle period = Compare value for cycle period × Count clock cycle period
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.
Table 9.1-2 Resolutions and Output Pulse Cycle Periods Supported when the Timer is Used as a 12-bit
PPG (1/2)
Range of
Compare
available
value for
compare
cycle
values for
period
"H" width
0
-
1
-
2
1, 2
3
1 to 3
4
1 to 4
5
1 to 5
6
1 to 6
7
1 to 7
8
1 to 8
(30-clock period) × 2 × 4/F
= 011110
H
= 30 × 2 × 0.32 µs = 19.2 µs
"H" width = Compare value for "H" width × Count clock cycle period
(10-clock width) × 2 × 4/F
= 001010
B
=10 × 2 × 0.32 µs
=6.4 µs
Output pulse cycle period
Count clock
Count clock
= 2 t
= 4 t
INST
4 t
8 t
INST
6 t
12 t
INST
8 t
16 t
INST
10 t
20 t
INST
12 t
24 t
INST
14 t
28 t
INST
16 t
32 t
INST
CH
CH
Count clock
= 16 t
INST
INST
Unavailable
32 t
INST
INST
48 t
INST
INST
64 t
INST
INST
80 t
INST
INST
96 t
INST
INST
112 t
INST
INST
128 t
INST
INST
CHAPTER 9 12-BIT PPG TIMER
Resolution
Count clock
= 256 t
INST
512 t
1/2
INST
768 t
1/3
INST
1024 t
1/4
INST
1280 t
1/5
INST
1536 t
1/6
INST
1792 t
1/7
INST
2048 t
1/8
INST
Minimum-
step duty
cycle
50.0%
33.3%
25.0%
20.0%
16.7%
14.3%
12.5%
207

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents