English
Language : 

MC80F0204 Datasheet, PDF (40/126 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0104/0204
Preliminary
9.3 R3 and R3IO register
R3 is a 5-bit CMOS bidirectional I/O port (address 0C6H).
Each I/O pin (except R35) can independently used as an in-
put or an output through the R3IO register (address 0C7H).
R35 is an input only port. When R31 through R35 pins are
used as input ports, an on-chip pull-up resistor can be con-
nected to them in 1-bit units with a pull-up selection regis-
ter 3 (PU3). R31 through R34 pins can be used to open
drain output port by setting the corresponding bit of the
open drain selection register 3 (R3OD).
In addition, Port R3 is multiplexed with alternate func-
tions. R31 and R32 can be used as ADC input channel 14
and 15 by setting ADCM to enable ADC and select chan-
nel 14 and 15.
Port Pin
R31
R32
Alternate Function
AN14 (ADC input channel 14)
AN15 (ADC input channel 15)
R33, R34 and R35 is multiplexed with XIN, XOUT, and
RESET pin. These pins can be used as general I/O pins by
setting writing option described in "23. Device Configura-
tion Area" on page 102.
R3 Data Register
ADDRESS: 0C6H
RESET VALUE: --00 000-B
R3
- - R35 R34 R33 R32 R31 -
Input / Output data
Input data
R3 Direction Register
R3IO - - -
ADDRESS: 0C7H
RESET VALUE: ---0 000-B
-
R3 Pull-up
Selection Register
PU3
--
Port Direction
0: Input
1: Output
ADDRESS: 0FFH
RESET VALUE: --00 000-B
-
R3 Open Drain
Selection Register
R3OD
Pull-up Resister Selection
0: Disable
1: Enable
ADDRESS: 0CBH
RESET VALUE: ---0 000-B
Open Drain Resister Selection
0: Disable
1: Enable
36
Mar. 2005 Ver 0.2