SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 36
Version 1.0
5
5
5
SYSTEM REGISTER
OVERVIEW
The RAM area located in 80H~FFH bank 0 is system register area. The main purpose of system registers is to control
peripheral hardware of the chip. Using system registers can control I/O ports, SIO, ADC, PWM, LCD, timers and
counters by programming. The Memory map provides an easy and quick reference source for writing application
program. To access these system registers is controlled by the select memory bank (RBANK = 0) or the bank 0
read/write instruction (B0MOV, B0BSET, B0BCLR…).
SYSTEM REGISTER ARRANGEMENT (BANK 0)
BYTES of SYSTEM REGISTER
SN8P1829
0 1 2 3 4 5 6 7 8 9 A B C
D
E F
8 L
H
R
Z
Y
X
PFLAG RBANK OPTION LCDM1
- - - - - -
9 -
-
PGIACKS
-
-
CPM CPCKS
-
-
-
PGIAM
OPM
- - - -
A
- -
- - - - - - - - - - - - - -
B
- ADM
ADB
ADR SIOM
SIOR
SIOB
- - - - - - - -
PEDGE
C P1W P1M
-
-
-
P5M
-
-
INTRQ
INTEN
OSCM
-
- TC0R
PCL
PCH
D P0
P1
P2
-
-
P5
-
-
T0M
T0C TC0M TC0C TC1M TC1C TC1R STKP
E
P0UR
P1UR
P2UR
- -
P5UR
@HL
@YZ
- - - - - - - -
F STK7 STK7
STK6 STK6 STK5 STK5 STK4 STK4 STK3 STK3 STK2 STK2 STK1 STK1 STK0 STK0
Table 5-1. RAM register arrangement of SN8P1829
Description
L, H =
Working & @HL addressing register
R =
Working register and ROM look-up data buffer
Y, Z = Working, @YZ and ROM addressing register
OPTION=
RTC and RCLK options.
PFLAG =
ROM page and special flag register
RBANK= RAM bank select register
LCDM1 =
LCD mode register
PGIACKS = PGIA clock selection
CPCKS =
Charge-Pump Regulator clock selection
CPM = Charge pump mode
PGIAM =
PGIA mode and gain register
OPM = OPA mode register
ADM =
ADC mode register
ADB = ADC data buffer
ADR =
ADCs resolution selects register
SIOM =
SIO mode control register
SIOR = SIO clock reload buffer
SIOB =
SIO data buffer
P1W = Port 1 wakeup register
P
N
M =
Port N input/output mode register
P
N
UR = Port N pull-up register
P
N
=
Port N data buffer
INTRQ = Interrupt request register
INTEN =
Interrupt enable register
OSCM = Oscillator mode register
LCDM1=
LCD mode register
PCH, PCL = Program counter
T0M =
Timer 0 mode register
TC0M = Timer/Counter 0 mode register
T0C =
Timer 0 counting register
TC0C = Timer/Counter 0 counting register
TC1M =
Timer/Counter 1 mode register
TC0R = Timer/Counter 0 auto-reload data buffer
TC1C =
Timer/Counter 1 counting register
STKP =
Stack pointer buffer
STK0~STK7 =
Stack 0 ~ stack 7 buffer
@HL =
RAM HL indirect addressing index pointer
@YZ = RAM YZ indirect addressing index pointer