84
CHAPTER 4 I/O PORTS
4.4.1
Port 2 Data Register (PDR2)
This section describes the port 2 data register.
■
Port 2 data register functions
●
Port 2 data register (PDR2)
The PDR2 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 as 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.4-3 "Port 2 data register function" lists the functions of the port 2 data register.
Table 4.4-3 Port 2 data register function
Register
Data
Read
Write
Read/
Write
Address
Initial value
Port 2 data
register (PDR2)
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
0004
H
--111111
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
-: Unused bit
Содержание MB89950 Series
Страница 2: ......
Страница 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Страница 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Страница 236: ...222 CHAPTER 10 UART ...
Страница 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Страница 310: ...296 APPENDIX ...
Страница 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 316: ...302 INDEX ...
Страница 318: ......