I/O Port Control Registers - Panasonic MN101C00 User Manual

Panaxseries mn101c00 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

3-2-2 I/O Port Control Registers

This section describes the special function registers that control the
MN101C117's I/O ports.
Data Registers
• PnOUT registers
Data registers to output to the ports.
Data written to these registers is output from the ports.
Low (Vss level) is output.
0
High (Vdd level) is output.
1
• PnIN registers
Data registers to input data from the ports.
The value of data at the pins can be input by reading these registers.
These are read-only registers.
0
Pin is low.
1
Pin is high.
Input and output registers are mapped to separate addresses.
To use these ports for I/O, configure them as I/O ports in the PnOMD/PnIMD registers,
described in this section.
Direction Control Registers
• PnDIR registers
0
Input mode
1
Output mode
These registers set the port for use as an input or output.
Pull-up/Pull-down Resistor Control Registers
• PnPLU registers
These register settings determine whether internal pull-up resistors are added to the ports.
No pull-up / pull-down resistor
0
Pull-up / Pull down resistor
1
• PnPLUD registers
These register settings determine whether internal pull-up or pull-down resistors are
added to the ports.
0
No pull-up / pull-down resistor
1
Pull-up / Pull down resistor
Chapter 3 Port Functions
45
Port Control Registers

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101c115Mn101c117Mn101cp117

Table of Contents