Control Status Register (Pcnh, Pcnl) - Fujitsu MB91319 Series Hardware Manual

Fr60 32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 6 PROGRAMMABLE PULSE GENERATOR (PPG) TIMER
6.3.1

Control Status Register (PCNH, PCNL)

The control status registers (PCNH and PCNL) are used to control and display the
status of the PPG timer.
■ Register Configurations of Control Status Registers (PCNH and PCNL)
Figure 6.3-2 shows the register configuration of the control status registers (PCNH and PCNL).
PCNH
Address
ch0 000126
ch1 00012E
ch2 000136
ch3 00013E
PCNL
Address
ch0 000127
ch1 00012F
ch2 000137
ch3 00013F
[bit15] CNTE (Timer Enable)
This bit enables operation of the 16-bit down counter.
0
1
[bit14] STGR (Software Trigger)
Writing 1 into this bit applies software trigger.
The read value is always 0.
[bit13] MDSE (Mode Select)
This bit is used to select either the PWM mode in which continuous pulses are output or the
one-shot mode in which a single pulse is output.
0
1
156
Figure 6.3-2 Register Configurations of PCNH and PCNL
bit
15
14
13
H
CNTE STGR MDSE RTRG CKS1 CKS0 PGMS
H
H
R/W R/W R/W
H
0
0
bit
7
6
H
EGS1 EGS0 IREN IRQF IRS1
H
H
R/W R/W R/W
H
0
0
Disabled (initial value)
Enabled
PWM mode (initial value)
One-shot mode
12
11
10
R/W
R/W
R/W
0
0
0
0
5
4
3
2
IRS0
R/W
R/W
R/W
0
0
0
0
9
8
Attribute
R/W
Initial value
0
Rewrite during
operation
1
0
OSEL
Attribute
R/W
Initial value
0
Rewrite during
operation

Advertisement

Table of Contents
loading

Table of Contents