English
Language : 

MC80F0224 Datasheet, PDF (42/128 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0208/16/24
Preliminary
R4 Data Register
ADDRESS: 0C8H
RESET VALUE: 00H
R4
R47 R46 R45 R44 R43 R42 R41 R40
Input / Output data
R4 Direction Register
R4IO
ADDRESS: 0C9H
RESET VALUE: 00H
Port Direction
0: Input
1: Output
R4 Pull-up
Selection Register
PU4
ADDRESS: 0FEH
RESET VALUE: 00H
Pull-up Resister Selection
0: Disable
1: Enable
R5 and R5IO register: R5 is an 3-bit CMOS bidirectional I/O
port (address 0CAH). Each I/O pin can independently used as an
input or an output through the R5IO register (address 0CBH).
In addition, Port R5 is multiplexed with various special features.
The control register PSR0 (address 0F8H) and PSR1 (address
0F9H) controls the selection of alternate function. After reset, this
value is “0”, port may be used as normal I/O port.
To use alternate function such as external interrupt, event counter
input, timer clock output or PWM output, write “1” in the corre-
sponding bit of PSR0 or PSR1. Regardless of the direction regis-
ter R5IO, PSR0 or PSR1 is selected to use as alternate functions,
port pin can be used as a corresponding alternate features.
Port Pin
R50
R51
R54
Alternate Function
INT3 (External Interrupt 3)
EC1 (Event counter input to Counter 2)
PWM3O (PWM3/T3O output)
R5 Data Register
ADDRESS: 0CAH
RESET VALUE: ---00000B
R5
- - - R54 - - R51 R50
Input / Output data
R5 Direction Register
R5IO - - -
ADDRESS: 0CBH
RESET VALUE: ---00000B
--
Port Direction
0: Input
1: Output
ADDRESS: 0F8H
RESET VALUE: 0-00 0000B
PSR0 PWM3O - EC1E EC0E INT3E INT2E INT1E INT0E
Port / INT Selection
0: R10, R11, R12, R50
1: INT0, INT1, INT2, INT3
Port / EC Selection
0: R15, R51
1: EC0, EC1
Port / PWM3 Selection
0: R54
1: PWM3O/T3O port
R6 and R6IO register: R6 is an 8-bit CMOS bidirectional I/O
port (address 0CCH). Each I/O pin can independently used as an
input or an output through the R6IO register (address 0CDH).
In addition, Port R6 is multiplexed with AD converter analog in-
put AN0~AN7.
Port Pin
R60
R61
R62
R63
R64
R65
R66
R67
Alternate Function
AN0 (ADC input channel 0)
AN1 (ADC input channel 1)
AN2 (ADC input channel 2)
AN3 (ADC input channel 3)
AN4 (ADC input channel 4)
AN5 (ADC input channel 5)
AN6 (ADC input channel 6)
AN7 (ADC input channel 7)
R6IO (address CDH) controls the direction of the R6 pins, except
when they are being used as analog input channels. The user don’t
have to keep the pins configured as inputs when using them as an-
alog input channels, because the analog input mode is activated
by the setting of ADC enable bit of ADCM register and ADC
38
MAR. 2005 Ver 0.2