Panasonic F77G User Manual page 180

Microcomputer mn101c series
Table of Contents

Advertisement

Chapter 4 I/O Ports
4-7
Port 7
4-7-1
Description
General Port Setup
Each bit of the port 7 control I/O direction register (P7DIR) can be set individually to set pins as input or
output. The control flag of the port 5 direction control register (P7DIR) is set to "1" for output mode, and
"0" for input mode.
To read input data of pin, set the control flag of the port 7 direction control register (P7DIR) to "0" and
read the value of the port 7 input register (P7IN).
To output data to pin, set the control flag of the port 7 direction control register (P7DIR) to "1" and write
the value of the port 7 output register (P7OUT).
Each pin can be set individually whether pull-up / pull-down resistor is added or not, by the port 7 pull-up /
pull-down resistor control register (P7PLUD). Set the control flag of the port 7 pull-up / pull-down resistor
control register (P7PLUD) to "1" to add pull-up or pull-down resistor. The pull-up / pull-down resistor selec-
tion register (FLOAT) select if pull-up resistor or pull-down resistor is added. The bp4 of the pull-up / pull-
down resistor control register (FLOAT) is set to "1" for pull-down resistor, set to "0" for pull-up resistor.
Special Function Pin Setup
P70 to P72 are used as I/O pin for the serial interface 0, as well. P70 is output pin of the serial interface 1
transmission data. The SC0SBOS flag of the serial interface 0 mode register 1 (SC0MD1) is set to "1" for
serial data output. P71 is the input pin of the serial interface 0 reception data. P72 is I/O pin of the serial
interface 0 clock. The SC3SBTS flag of serial interface 0 mode register 1 (SC0MD1) is set to "1"for serial
clock output
P73 to P75 are used as I/O pin for the serial interface 1, as well. P73 is output pin of the serial interface 1
transmission data. The SC1SBOS flag of the serial interface 1 mode register 1 (SC1MD1) is set to "1" for
serial data output. P74 is the input pin of the serial interface 1 reception data. P75 is I/O pin of the serial
interface 1 clock. The SC1SBTS flag of serial interface 1 mode register 1 (S10MD1) is set to "1"for serial
clock output
P76 to P77 are used as timer I/O pin, as well. Each bit can be set individually as output mode by the port
1 output mode register (P1OMD). The port 1 output mode register (P1OMD) is set to "1" for timer output,
and "0" for general port.
IV - 30
Port 7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents