Chapter 1
Overview
I - 18 Pin Description
Table:1.3.3 Special Function Pin
Pin name
Input/
Output
Description
SBI0A(RXD0A)
SBI0B(RXD0B)
SBI1A(RXD1A)
SBI1B(RXD1B)
SBI2A
SBI2B
SBI3A
SBI3B
Input Serial data input pins
-Pull-up resistor can be added by setting PnPLUP.
-Select the input mode by setting PnDIR.
-Select the serial data input by setting SCnMD1.SCnSBIS. (n = 0,1,2,3)
SBO0A(TXD0A)
SBO0B(TXD0B)
SBO1A(TXD1A)
SBO1B(TXD1B)
SBO2A(SDA2A)
SBO2B(SDA2B)
SBO3A(SDA3A)
SBO3B(SDA3B)
SBO3C(SDA3C)
Input/
Output
Serial data I/O pins
-Pull-up resistor can be added by setting PnPLUP.
-Select the output mode by setting PnDIR.
-Select the serial data output by setting SCnMD1.SCnSBOS. (n = 0,1,2,3)
-Select the push-pull or Nch-open drain by setting PnODC.
SBT0A
SBT0B
SBT1A
SBT1B
SBT2A(SCL2A)
SBT2B(SCL2B)
SBT3A(SCL3A)
SBT3B(SCL3B)
SBT3C(SCL3C)
Input/
Output
Serial clock I/O pins
-Pull-up resistor can be added by setting PnPLUP.
-Select the input or output mode by setting PnDIR.
-Select the serial clock I/O by setting SCnMD1.SCnSBTS. (n = 0,1,2,3)
-Select the push-pull or Nch-open drain by setting PnODC.
SBCS0A/SBCS0B
SBCS1A/SBCS1B
SBCS2A/SBCS2B
SBCS3A/SBCS3B
Input/
Output
Serial chip select I/O pins
-Pull-up resistor can be added by setting PnPLUP.
-Select the input or output mode by setting PnDIR.
-Select the serial chip select I/O by setting SCnMD3.SCnSBTS. (n = 0,1) or
SCnMD2.SCnSBCSEN(n = 2,3)
TM0IOA/TM0IOB
TM1IOA/TM1IOB
TM2IOA/TM2IOB
TM3IOA/TM3IOB
TM4IOA/TM4IOB
TM5IOA/TM5IOB
TM7IOA/TM7IOB
TM8IOA/TM8IOB
TM9IOA/TM9IOB
Input/
Output
Timer I/O pins
-When capturing the external event signal, select the input mode by setting PnDIR.
-To output the timer output signal, select the output mode by setting PnDIR, and the output port with
TMIOENn/TMIOSELn (n = 0,1).
AN0/AN1/AN2/AN3/
AN4/AN5/AN6/AN7
Input Analog input pins for ADC
-Select the analog input pin with ANEN0.
IRQ0A/IRQ0B
IRQ1A/IRQ1B
IRQ2A/IRQ2B
IRQ3A/IRQ3B
IRQ4A/IRQ4B/IRQ4C
IRQ5A/IRQ5B/IRQ5C
IRQ6A/IRQ6B
Input External interrupt input pins
-Select the external interrupt pin with IRQIEN, IRQISEL0 and IRQISEL1.
KEY0A/KEY0B
KEY1A/KEY1B
KEY2A/KEY2B
KEY3A/KEY3B
KEY4A/KEY4B
KEY5A/KEY5B
KEY6A/KEY6B
KEY7A/KEY7B
Input Key interrupt input pins
-Select the key interrupt pin with KEYIEN and KEYSEL.
COMn (n = 0 to 7) Output LCD common output pins
-Select the common output pin with LCCTRn.