Registers For Port 1 (Pdr1, Ddr1) - Fujitsu MB90895 Series Hardware Manual

16 bit, controller manual
Table of Contents

Advertisement

CHAPTER 4 I/O PORT
4.3.1

Registers for Port 1 (PDR1, DDR1)

The registers for port 1 are explained.
I Function of Registers for Port 1 (in Single Chip Mode)
G
Port 1 data register (PDR1)
• Port 1 data register indicates the state of the pins.
G
Port 1 direction register (DDR1)
• The port 1 direction register sets the input/output directions.
• When the bit corresponding to the pin is set to 1, port 1 functions as an output port. When the bit is set
to "0", port "1" functions as an input port.
Table 4.3-3 shows function of the registers for port 1.
Table 4.3-3 Functions of the Registers for Port 1
Register
Data
Name
0
Port 1 data
register
(PDR1)
1
0
Port 1
direction
register
(DDR1)
1
R/W: Read/Write
X: Undefined
Reference:
• When using port 1 as the input pin of the resource, clear the bit in the DDR1
corresponding to the input pin of the resource to 0 and set the input pin as an input port.
• When using port 1 as the output pin of the resource, set the output of the corresponding
resource to enabled.Port 1 functions as the output pin of the resource regardless of the
settings of the DDR1.
164
At Read
"0" is set for the output
The pin state is
latch, and when the pin is
Low level.
an output port pin, the Low
level is output to the pin.
"1" is set for the output
The pin state is
latch, and when the pin is
High level.
an output port pin, the High
level is output to the pin.
The output buffer is set to
The direction
"OFF", and the pin
latch is "0".
becomes an input port pin.
The output buffer is set to
The direction
"ON", and the pin becomes
latch is "1".
an output port pin
Read/
At Write
Write
R/W
R/W
Register
Reset Value
Address
000001
XXXXXXXX
H
B
000011
00000000
H
B

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx

Table of Contents