Fujitsu F2MC-16LX Hardware Manual page 361

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

Output waveform in this mode is illustrated in Figure 17.3-2 "Waveform in 8-bit prescaler/8-bit
PPG mode output operation".
Figure 17.3-2 Waveform in 8-bit prescaler/8-bit PPG mode output operation
P
PPG0
PPG1
The pulse width shown in Figure 17.3-2 "Waveform in 8-bit prescaler/8-bit PPG mode output
operation" can be expressed with the following formulas.
P
0 = T x (L0 + 1)
L
P
0 = T x (L0 + 1)
H
P
1 = T x (L0 + 1) x (L1 + 1)
L
P
1 = T x (L0 + 1) x (H1 + 1)
H
Where
L0: PRLL value of channel 0 and PRLH value of channel 1
L1: PRLL value of channel 1
H1: PRLH value of channel 1
T: input clock cycle
P
0: H pulse width of PPG0
H
P
0: L pulse width of PPG0
L
P
1: H pulse width of PPG1
H
P
1: L pulse width of PPG1
L
Note:
Set PRLL of channel 0 and PRLH of channel 1 to the same value.
I Interrupts of the 8/16-Bit PPG timer
The interrupt unit of the 8/16-bit PPG timer becomes active as soon as a counter borrow occurs
after count-down from the reload value has already reached zero. In 8-bit PPG2 channel mode
or 8-bit prescaler/9-bit PPG mode (3 are channels provided for MB90470), each borrow will
cause a separate interrupt request. In 16-bit PPG mode, however, PUG0 and PUG1 will be set
at the same time when a borrow from the 16-bit counter occurs. To unify interrupt sources, only
one of either PIE0 or PIE1 is allowed. Interrupt sources are also cleared at the same time for
PUF0 and PUF1.
0
P
0
H
L
P
1
H
CHAPTER 17 8/16-BIT PPG TIMER
P
1
L
345

Advertisement

Table of Contents
loading

Table of Contents