R2 And R2Io Register - Abov MC80F0304 User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

MC80F0304/08/16
R1 Data Register
R1
R17 R16 R15 R14 R13 R12 R11 R10
R1 Direction Register
R1IO
R1 Pull-up
Selection Register
PU1
R1 Open Drain
Selection Register
R1OD

9.3 R2 and R2IO register

R2 is an 8-bit CMOS bidirectional I/O port (address 0C4
I/O pin can independently used as an input or an output through
the R3IO register (address 0C5
are used as input ports, an on-chip pull-up resistor can be connect-
ed to them in 1-bit units with a pull-up selection register 2 (PU2).
R20 through R27 pins can be used to open drain output port by
setting the corresponding bit of the open drain selection register
2 (R2OD).
In addition, Port R2 is multiplexed with alternate functions. R23
R24,R25,and R26 can be used as ADC input channel 9 to 12 by
48
ADDRESS: 0C2
H
RESET VALUE: 00
H
Input / Output data
ADDRESS: 0C3
H
RESET VALUE: 00
H
Port Direction
0: Input
1: Output
ADDRESS: 0FD
H
RESET VALUE: 00
H
Pull-up Resister Selection
0: Disable
1: Enable
ADDRESS: 0C9
H
RESET VALUE: 00
H
Open Drain Resister Selection
0: Disable
1: Enable
Figure 9-3 R1 Port Register
). Each
H
). When R20 through R27 pins
H
PSR0
PWM3OE
PWM1OE
EC1E
EC0E
Port / EC Selection
0: R04, R07
1: EC0, EC1
Port / PWM Selection
0: R10, R11
1: PWM1O, PWM3O
PSR1
-
-
-
setting ADCM to enable ADC and select channel 9 to 12.
Port Pin
R20
R21
R22
R23
AN9 (ADC input channel 9)
R24
AN10 (ADC input channel 10)
R25
AN11 (ADC input channel 11)
R26
AN12 (ADC input channel 12)
R27
November 4, 2011 Ver 2.12
ADDRESS: 0F8
H
RESET VALUE: 0000 0000
INT3E
INT2E
INT1E
INT0E
Port / INT Selection
0: R11, R12, R03, R00
1: INT0, INT1,INT2, INT3
ADDRESS: 0F9
H
RESET VALUE: ---- 0000
-
BUZOE
T2OE
T0OE
AVREFS
Port / TO Selection
0: R04, R07
1: EC0, EC1
R12/BUZO Selection
0: R12 port (Turn off buzzer)
1: BUZO port (Turn on buzzer)
R10 / AVREF Selection
0: R10 port
1: AVREF port
Alternate Function
-
-
-
-
B
B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents