79
CHAPTER 4 I/O PORTS
4.3.1
Port 1 Data Register (PDR1)
This section describes the port 1 data register.
■
Port 1 data register functions
●
Port 1 data register (PDR1)
The PDR1 register holds the pin states. Therefore, a bit corresponding to a pin set as an output port can be
read as the same state ("0" or "1") as the output latch, but when it is an input port, it cannot be read the
output latch state.
Reference:
For SETB and CLRB bit operation instructions, since the state of output latch (not the pin) is read, the
output latch states of bits other than those being operated on are not changed.
●
Settings as an LCD segment driver output
To use pins as LCD segment driver outputs, segment driver output must be selected by the mask option.
Furthermore, the segment driver output select register must be set to the same as the mask option, so that
the CMOS input port can be protected.
Table 4.3-3 "Port 1 data register function" lists the functions of the port 1 data register.
Table 4.3-3 Port 1 data register function
Register
Data
Read
Write
Read/
Write
Address
Initial value
Port 1 data
register (PDR1)
0
Pin state is the
"L" level.
Outputs an "L" level to the pin.
(Sets "0" to the output latch and
turn the output transistor "ON".)
R/W
0002
H
11111111
B
1
Pin state is the
"H" level.
Sets the pin to the high-
impedance state.
(Sets "1" to the output latch and
turn the output transistor "OFF".)
R/W: Readable and writable
Summary of Contents for MB89950 Series
Page 2: ......
Page 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Page 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Page 236: ...222 CHAPTER 10 UART ...
Page 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Page 310: ...296 APPENDIX ...
Page 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 316: ...302 INDEX ...
Page 318: ......