Registers Of Port 7 (Pdr7, Ddr7, Pul7); Functions Of Port 7 Registers - Fujitsu F2MC-8L F202RA Hardware Manual

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

4.7.1

Registers of Port 7 (PDR7, DDR7, PUL7)

This section describes the registers associated with port 7.

Functions of Port 7 Registers

● Port 7 data register (PDR7)
The PDR7 register indicates the state of the output latch. For a pin set to function as an output port, the
same value ("0" or "1") as the value state of the output pin can be read from this register. If the pin is set
to function as an input port, however, its output latch value cannot be read from the register.
Note:
When a bit manipulation instruction (SETB, CLRB) is executed, the output latch values, not the value
states of the pins, are read; thus, output latch values, other than those for bits to be manipulated, do not
change.
● Port 7 data direction register (DDR7)
The DDR7 register sets the I/O direction of each pin per bit.
When a bit of the DDR7 corresponding to a pin of port 7 is set to "1", the pin functions as an output
port. When the bit is set to "0", the pin functions as an input port.
Table 4.7-3 lists the functions of the port 7 registers.
Table 4.7-3 Functions of Port 7 Registers
Register
Data
name
0
Port 7 data
register (PDR7)
1
0
Port 7 data
direction
register (DDR7)
1
R/W : Readable and Writable
X
: Undefined
When being
When being written
read
Output latch of "0" is set and
Pin state is
"L" level is output to the pin
"L" level.
in output port mode.
Output latch of "1" is set and
Pin state is
"H" level is output to the pin
"H" level.
in output port mode.
Output transistor operation
Input port
is disabled and the pin is set
to serve as an input pin.
Output transistor operation
Output port
is enabled and the pin is set
to serve as output pin.
CHAPTER 4 I/O PORTS
Read/
Address
Write
R/W
0063
H
R/W
0064
H
Initial value
-----XXX
B
-----000
B
109

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents