16-Bit Ppg Mode - Fujitsu 8FX Hardware Manual

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

MB95630H Series
18.6.3

16-bit PPG Mode

In this mode, the 8/16-bit PPG can operate as a 16-bit PPG when PPG timer n1
and PPG timer n0 are assigned to the upper and lower bits respectively.
■ Setting 16-bit PPG Mode
The 8/16-bit PPG requires the register settings shown in Figure 18.6-5 to operate in 16-bit PPG
mode.
PCn1
PCn0
PPSn1
PPSn0
PDSn1
PDSn0
PPGS
REVC
: Used bit
0 : Set to "0"
1 : Set to "1"
× : Setting nullified
* : The bit status changes depending on the number of channels implemented.
■ Operation of 16-bit PPG Mode
• This mode is selected by setting the operation mode select bits (MD[1:0]) in the PPG timer
n0 control register (PCn0) to "0b10" or "0b11".
• When the PPG timer n0 (ch. n) downcounter operation enable bit (PEN00) is set to "1" in
16-bit PPG mode, the 8-bit downcounters (PPG timer n0) and 8-bit downcounter (PPG
timer n1) load the values in the 8/16-bit PPG timer n1/n0 cycle setup buffer registers
(PPSn1 for PPG timer n1 and PPSn0 for PPG timer n0) and start down-count operation.
When the count value reaches "1", the values in the cycle setup register are reloaded and the
counters repeat the counting.
• When the values of the downcounters match the values in the 8/16-bit PPG timer duty setup
buffer registers (both the value in PDSn1 for PPG timer n1 and the value in PDSn0 for PPG
timer n0), the PPGn0 pin is set to "H" synchronizing with the count clock. After "H" which
MN702-00009-2v0-E
Figure 18.6-5 Setting 16-bit PPG Mode
bit7
bit6
bit5
-
-
PIE1
MD1
MD0
PIE0
0
0/1
PH7
PH6
PH5
Set PPG output cycle (Upper 8 bits) for PPG timer n1
PL7
PL6
PL5
Set PPG output cycle (Lower 8 bits) for PPG timer n0
DH7
DH6
DH5
Set PPG output duty (Upper 8 bits) for PPG timer n1
DL7
DL6
DL5
Set PPG output duty (Lower 8 bits) for PPG timer n0
-
-
PEN21 PEN20 PEN11 PEN10 PEN01 PEN00
*
*
*
-
-
REV21 REV20 REV11 REV10 REV01 REV00
*
*
*
FUJITSU SEMICONDUCTOR LIMITED
18.6 Operations and Setting Procedure Example
bit4
bit3
bit2
PUF1 POEN1 CKS12 CKS11 CKS10
PUF0 POEN0 CKS02 CKS01 CKS00
PH4
PH3
PH2
PL4
PL3
PL2
DH4
DH3
DH2
DL4
DL3
DL2
*
*
*
*
*
*
CHAPTER 18 8/16-BIT PPG
bit1
bit0
PH1
PH0
PL1
PL0
DH1
DH0
DL1
DL0
×
×
317

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents