28 HTP-0711 2 3 4ABCDEF1 2 3 4• Pin FunctionName In/Out DescriptionOP_MODE IN Chip operation mode.0: Normal mode1: ICP (In Circuit Flash Programming) modeRSTb IN External Reset (active low) with on-chip pull-up.When this pin is asserted low, the chip is totally reset.X_IN IN 24 MHz crystal inputX_OUT OUT 24 MHz crystal outputP0[7:0] IN/OUT GPIO port 0 with programmable Open Drain capability.P1[3:0] IN/OUT GPIO port 1 or Keyboard Interrupt inputs with internal 20 kΩ pull-up to VDDP2[7:1] IN/OUT GPIO port 2 with programmable Open Drain capability.P3[5:0] OD IN/OUT Open Drain I/O port 3. P3[5:0] shared with IIC.P4[1:0] IN/OUT GPIO port 4 or External Interrupt inputsP5[7:0] IN/OUT GPIO port 5 with programmable Open Drain capability; 20 mA driveP6[3:0] IN/OUT GPIO port 6 with 20 mA driveP7[4,1:0] IN/OUT Open Drain I/O port 7. P7[1:0] shared with Serial Port. P7[4] share with CIR.P8[1:0] IN/OUT GPIO port 8 with programmable Open Drain capability.P8[7] and P8[3:0] share with PWMTIM[1:0] IN/OUT Timer In/Out or GPIOSPI_CLK IN/OUT SPI Clock Out or General Purpose OutputSPI_DO IN/OUT SPI Data In/Out or General Purpose OutputDP IN/OUT USB D+ In/Out or GPODM IN/OUT USB D- In/Out or GPOADC[1:0] IN/OUT ADC Inputs or GPIOVDDA PWR Analogue VDD (3.3 V)VSSA PWR Analogue GroundVDD PWR Digital VDD (3.3 V)VSS PWR Digital GroundBuffer TypeIXDXXPBDUX8PXTL24PXTL24PBRXX12PBRUX8PBRXX8PBRXX8PBRXX8PBRXX24PBRXX24PBRXX8PBRXX8PBRXX8PBRXX8PBRXX8PUSBUSBADC————