beautypg.com

FUJITSU F2MCTM-16LX User Manual

Page 305

background image

289

CHAPTER 16 8-/16-BIT PPG TIMER

Details of pins in block diagram

Table 16.2-2 lists the actual pin names and interrupt request numbers of the 8-/16-bit PPG timer.

PPG operation mode control register D (PPGCD)

This register sets the operation mode of the 8-/16-bit PPG timer, enables or disables the operation of the 8-/

16-bit PPG timer D, the pin output and an underflow interrupt, and also indicates the generation of an

underflow.

PPGC/D count clock select register (PPGCD)

This register sets the count clock of the 8-/16-bit PPG timer.

PPGD reload registers (PRLHD, PRLLD)

These registers set the High width or Low width of the output pulse. The values set in these registers are

reloaded to the PPGD down counter (PCNTD) when the 8-/16-bit PPG timer D is started.

PPGD down counter (PCNTD)

This counter is an 8-bit down counter that alternately reloads the values set in the PPGD reload registers

(PRLHD and PRLLD) to decrement. When an underflow occurs, the pin output is inverted. The 2-channel

PPG down counters (PPGC and PPGD) can also be connected for use as a single-channel 16-bit PPG down

counter.

PPGD temporary buffer (PRLBHD)

This buffer prevents deviation of the output pulse width caused at writing to the PPG reload registers

(PRLHD and PRLLD). It stores the PRLHD value temporarily and enables it in synchronization with the

timing of writing to the PRLLD.

Reload register L/H selector

This selector detects the current pin output level to select which register value, Low reload register

(PRLLD) or High reload register (PRLHD), should be reloaded to the PPGD down counter.

Count clock selector

This selector selects the count clock to be inputted to the PPGD down counter from five frequency-divided

clocks of the machine clock or the frequency-divided clocks of the timebase timer.

PPG output control circuit

This circuit inverts the pin output level and the output when an underflow occurs.

Table 16.2-2 Pins and Interrupt Request Numbers in Block Diagram

Channel

Output Pin

Interrupt Request

Number

PPG:REV=0

PPG:REV=1

PPGC

P66 / PPGC

P22 / PPGD

#23 (17

H

)

PPGD

P22 / PPGD

P66 / PPGC

PPGE

P67/ PPGE

P23 / PPGF

#24 (18

H

)

PPGF

P23/ PPGF

P67 / PPGE