Description (Port 7); Description (Port 8) - Panasonic MN103S User Manual

Panaxseries
Hide thumbs Also See for MN103S:
Table of Contents

Advertisement

Chapter 7
I/O Port
7.3.7

Description (Port 7)

General Port Setup
Each bit can be set individually as either an input or output by the port 7 I/O control register (P7DIR). The control
flag of the P7DIR register is set to "1" for output mode, and to "0" for input mode.
To read input data of a pin, set the control flag of the P7DIR register to "0" and read the value of the port 7 input
register (P7IN).
To output data to a pin, set the control flag of the P7DIR register to "1" and write data to the port 7 output register
(P7OUT).
Each bit can be set individually if pull-up resistor is added or not, by the port 7 pull-up control register (P7PLU).
Set the control flag of the P7PLU register to "1" to add pull-up resistor.
Special Function Pin Setup
P72 to P73 are used as I/O pins of timer 11 as well. Each bit can be selected individually as output mode by the
port 7 output mode register (P7MD). P72 to P73 output special function data when the control flag of the P7MD
is"1"and are used as general ports when it is "0".
7.3.8

Description (Port 8)

General Port Setup
Each bit can be set individually as either an input or output by the port 8 I/O control register (P8DIR). The control
flag of the P8DIR register is set to "1" for output mode, and to "0" for input mode.
To read input data of a pin, set the control flag of the P8DIR register to "0" and read the value of the port 8 input
register (P8IN).
To output data to a pin, set the control flag of the P8DIR register to "1" and write data to the port 8 output register
(P8OUT).
Each bit can be set individually if pull-up resistor is added or not, by the port 8 pull-up control register (P8PLU).
Set the control flag of the P8PLU register to "1" to add pull-up resistor.
Special Function Pin Setup
P80 to P83 are used as external interrupt pins as well.
VII - 36
Ports

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn103sa7dMn103sa7g

Table of Contents