Fujitsu MB90335 Series Hardware Manual page 374

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
■ PPG Output Operation
The 8/16-bit PPG timer is started to begin the count when both the bit7 (PEN0) of PPGC0 register for ch.0
(ch.2) PPG and the bit15 (PEN1) of PPGC1 register for ch.1 (ch.3) PPG are set to "1". After the operation
started, when "0" is written to the bit7 (PEN0) of PPGC0 or the bit15 (PEN1) of PPGC1, the count
operation is stopped and the pulse output is held at the "L" level thereafter.
Do not set the ch.1 (ch.3) to the operating status in the 8-bit prescaler + 8-bit PPG mode when the ch.0
(ch.2) is in the stop state.
Control the bit7 (PEN0) in the PPGC0 register and the bit15 (PEN1) in the PPGC1 register to
simultaneously start and stop in the 16-bit PPG mode.
PPG output operation is explained as follows.
When the PPG operates, the pulse wave is continuously output in an arbiter cycle and arbiter duty ratio
(ratio of "H" level period and "L" level period of pulse wave). The PPG starts the pulse wave output and
does not stop until the operation stop is set.
Figure 15.3-1 shows the output waveform in the PPG output operation.
PEN
Output pin PPG
■ Relation between Reload Value and Pulse Width
The written value in the reload register added to "1" and multiplied by the count clock cycle produces the
output pulse width. Note, therefore, that the pulse width is one count clock cycle when the reload register
value is 00
PPG operation. Note also that the pulse width is the 256 count clock cycles when the reload register value
is FF
during the 8-bit PPG operation and the pulse width is the 65536 divisions of count clock when the
H
reload register value is FFFF
width are shown below:
=T × (L+1)
P
L
=T × (H+1)
P
H
P
: Width of "L" pulse
L
P
: Width of "H" pulse
H
T: Input Clock Cycle
L: PRLL value
H: PRLH value
CM44-10137-6E
Figure 15.3-1 Output Waveform in the PPG Output Operation
Operation start by PEN (from "L" side)
T × (L + 1)
(START)
during the 8-bit PPG operation or when the reload register value is 0000
H
during the 16-bit PPG operation. The equations for calculating the pulse
H
FUJITSU MICROELECTRONICS LIMITED
L : PRLL value
T × (H + 1)
H : PRLH value
T : Peripheral clock
(by Clock select of PPGC)
CHAPTER 15 8/16-BIT PPG TIMER
15.3 Operation of 8/16-bit PPG Timer
during the 16-bit
H
353

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents