MB90330A Series
33
■ PERIPHERAL RESOURCES
1.
I/O port
The I/O ports are used as general-purpose input/output ports (parallel I/O ports). MB90330A series model is
provided with 12 ports (94 inputs) . The ports function as input/output pins for peripheral functions also.
The port data register (PDR) can be used to send output data to the I/O pin and to receive the signal input to
the I/O port. The port direction register (DDR) can be used to set the I/O direction of the I/O pin in bit units.
The following table lists the I/O ports and the peripheral functions with which they share pins.
Note : These pins also serve as the analog input pins for ports 7 and 8. To use them as general-purpose ports, be
sure to set the corresponding bits in the analog input enable register (ADER) to 0B. The ADER is initialized
to FFH at a reset.
Port Pin Name
Pin Name (Peripheral)
Peripheral Function that Shares Pin
Port 0
P00 to P07
(External bus)
Port 1
P10 to P17
(External bus)
Port 2
P20 to P23
(External bus)
P24 to P27
PPG0 to PPG3
8/16-bit PPG timer 0, 1 (External bus)
Port 3
P30 to P33
TIN1, TOT1, TIN2, TOT2
16-bit Reload timer 1, 2 (External bus)
P34 to P37
(External bus)
Port 4
P40, P41
TIN0, TOT0
16-bit Reload timer 0 (External bus)
P42 to P47
SIN0, SOT0, SCK0,
SIN1, SOT1, SCK1
UART0, UART1 (External bus)
Port 5
P50 to P57
(External bus)
Port 6
P60, P61
INT0, INT1
External interrupt
P62 to P64
INT2 to INT4,
SIN, SOT, SCK
External interrupt, Serial I/O
P65
INT5, PWC
External interrupt, PWC
P66, P67
INT6, INT7, SCL0, SDA0
External interrupt, I2C 0
Port 7
P70 to P77
AN0 to AN7
8/10-bit A/D converter
Port 8
P80 to P87
AN8 to AN15
8/10-bit A/D converter
Port 9
P90 to P95
SIN2, SOT2, SCK2,
SIN3, SOT3, SCK3
UART2, 3
P96
ADTG, FRCK
8/10-bit A/D converter, Free-run timer
Port A
PA0 to PA3
IN0 to IN3
Input capture 0, 1, 2, 3
PA4 to PA7
OUT0 to OUT3
Output compare 0, 1, 2, 3
Port B
PB0 to PB3
SCL1, SDA1, SCL2, SDA2
I2C 1, 2
PB4
PB5, PB6
PPG4, PPG5
PPG timer 2