SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 108
Version 1.0
THE PORT2 DISCRIPTION
The port 2 is Input pins and shared with SEG24~SEG31 LCD driver pins. The port2 must work without LCD. To set the
bit P2SEG = “1”, the port 2 Input function will be enabled. Input data from port 2 is by P2 data register.
Example: Enable PORT 2 Input function.
Step1: Set P2SEG=1
B0BSET
FP2SEG
; Disable Pin 37 ~ 44 LCD driver.
Step2: Now the PORT 2 general input function is enable. User can input data by PORT 2.
B0MOV
A, P2
; Input Port 2 value to BUF.
B0MOV
BUF,
A