SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 36
V1.4
5
SYSTEM REGISTER
5.1 OVERVIEW
The system special register is located at 80h~FFh. The main purpose of system registers is to control the peripheral
hardware of the chip. Using system registers can control I/O ports, ADC, PWM, timers and counters by programming.
The Memory map provides an easy and quick reference source for writing application program.
5.2 SYSTEM REGISTER ARRANGEMENT (BANK 0)
5.2.1 BYTES of SYSTEM REGISTER
SN8P2710
0 1 2 3 4 5 6 7 8 9 A B C D E F
8
- - R Z Y -
PFLAG
- - - - - - - - -
9
- - - - - - - - - - - - - - - -
A
- - - - - - - - - - - - - -
P4CON
-
B
DAM
ADM
ADB
ADR
- - - - - - - - - - -
PEDGE
C
- - P2M - P4M
P5M - - INTRQ INTEN OSCM
-
WDTR
TC0R
PCL
PCH
D
P0 - P2 - P4 P5 - - T0M
-
TC0M
TC0C
TC1M
TC1C
TC1R
STKP
E
P0UR - P2UR - P4UR
P5UR - @YZ
-
-
-
-
-
-
-
-
F
STK7L STK7H STK6L STK6H STK5L STK5H STK4L STK4H STK3L STK3H STK2L STK2H STK1L STK1H STK0L STK0H
Table 5-1. System Register Arrangement of SN8P2710
Description
PFLAG = ROM page and special flag register.
R = Working register and ROM lookup data buffer.
DAM = DAC’s mode register.
Y, Z = Working, @YZ and ROM addressing register.
ADB = ADC’s data buffer.
ADM = ADC’s mode register.
PnM = Port n input/output mode register.
ADR = ADC’s resolution selects register.
INTRQ = Interrupts’ request register.
Pn = Port n data buffer.
OSCM = Oscillator mode register.
INTEN = Interrupts’ enable register.
T0M = Timer/ Counter 0, Timer/ Counter 1 speed selection .
PCH, PCL = Program counter.
TC1M = Timer/Counter 1 mode register.
TC0M = Timer/Counter 0 mode register.
TC1C = Timer/Counter 1 counting register.
TC0C = Timer/Counter 0 counting register.
STKP = Stack pointer buffer.
TC0R = Timer/Counter 0 auto-reload data buffer.
@HL = RAM HL indirect addressing index pointer.
TC1R = Timer/Counter 1 auto-reload data buffer.
P4CON= Port 4 configuration setting
STK0~STK7 = Stack 0 ~ stack 7 buffer.
@YZ = RAM YZ indirect addressing index pointer.
¾
Note:
a). All of register names had been declared in SONiX 8-bit MCU assembler.
b). One-bit name had been declared in SONiX 8-bit MCU assembler with “F” prefix code.
c). It will get logic “H” data, when use instruction to check empty location.
d). The low nibble of ADR register is read only.
e). “b0bset”, “b0bclr”, ”bset”, ”bclr” instructions only support “R/W” registers.