SN8P1800
8-bit micro-controller build-in 12-bit ADC + 72 dots LCD driver
SN8P1800 Series
USER’S MANUAL
General Release Specification
SN8P1808
SONiX 8-Bit Micro-Controller
SONIX reserves the right to make change without further notice to any products herein to improve reliability, function or design. SONIX does not
assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent
rights nor the rights of others. SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical
implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product
could create a situation where personal injury or death may occur. Should Buyer purchase or use SONIX products for any such unintended or
unauthorized application. Buyer shall indemnify and hold SONIX and its officers, employees, subsidiaries, affiliates and distributors harmless against
all claims, cost, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use even if such claim alleges that SONIX was negligent regarding the design or manufacture of
the part.
SONiX TECHNOLOGY CO., LTD
Revision 1.94
SN8P1800
8-bit micro-controller build-in 12-bit ADC + 72 dots LCD driver
AMENDMENT HISTORY
Version
VER 1.90
VER 1.93
Date
Sep. 2002
Feb. 2003
Description
V1.90 first issue
1. Extend chip operating temperature from “0°C ~ +70°C” to “-20°C ~ +70°C”.
2. Change the description of ADD M,A instruction from “M
3. Add ADC grade.
4. Change bit name and initial value of RBANK register.
5. Change “ACC can’t be access by “B0MOV” instruction” to “ACC can’t be access by
“B0MOV” instruction during the instant addressing mode”.
6. Correct the description of STKnH.
7. Correct the bit definition of INTEN register.
8. Change “The low-speed clock frequency is supplied through on-chip RC oscillator
circuit” to “The low-speed clock frequency is supplied through external low clock
oscillator (32.768K) by crystal or RC mode”.
9. Change all “internal low-speed clock” to “external low-speed clock”.
10.
11.
Correct the description of “TC0 CLOCK FREQUENCY OUTPUT” section.
Correct the description of “TC1 CLOCK FREQUENCY OUTPUT” section.
M+A” to “M
A+M”
12. SCKMD = 1 means SIO is in SLAVE mode. SCKMD = 0 means SIO is in MASTER
mode.
13.
14.
15.
16.
17.
18.
19.
20.
VER 1.94
Sep. 2003
Remove “SIO clock and SPI clock are compatible”.
Remove this line: “B0MOV A, P2”. P2 of SN8P1808 is output only.
Note: The clock source of LCD driver is external low clock.
Modify the description ADR register.
Modify ADB’s output data table.
Correct an error of template code: “b0bclr FWDRST”
Add a notice about OSCM register access cycle.
Add slow mode (high clock stop and LVD OFF) operating current.
“b0bset FWDRST”.
1. Correct RAM Bank value.
2. Correct EOC description.
3. Correct watchdog timer overflow time.
4. Correct POP operand.
5. Correct ADCKS table.
6. Modify figure 11-1 (adjust circuit of LCD contrast) and related description.
7. Add new section about checksum calculate must avoid 04H~07H
8. Correct description of Port6 as I/O port in Chapter 10.
9. Add WTCKS bit in OSCM register
10. Add TC0CKS/TC1CKS in TC0M/TC1M
11. Reserved Last 16 word ROM addresses
SONiX TECHNOLOGY CO., LTD
Revision 1.94
SN8P1800
8-bit micro-controller build-in 12-bit ADC + 72 dots LCD driver
12. Add SIOM Table and Note for SIO Rate
13. Remove register bit description
14. Modify TC0M description
15. Modify TC1M description
16. Modify PWM description
17. Modify ADC Frequency description.
18. Change watchdog over flow table.
19. Change Code option table Chapter 2
20. Add ADC current consumption
21. Add LVD detect voltage
22. Modify electrical characteristic table
23. Remove approval sheet.
24. Remove PCB layout notice section.
25. Modify the description of INTRQ register.
26. Modify the calculation formula of SIOR and SIO clock.
SONiX TECHNOLOGY CO., LTD
Page 3
Revision 1.94
SN8P1800
8-bit micro-controller build-in 12-bit ADC + 72 dots LCD driver
Table of Contents
AMENDMENT HISTORY .............................................................................................................. 2
1
PRODUCT OVERVIEW ................................................................................................... 10
GENERAL DESCRIPTION ......................................................................................................... 10
FEATURES SELECTION TABLE ............................................................................................... 10
ADC GRADE TABLE................................................................................................................... 10
FEATURES................................................................................................................................. 11
SYSTEM BLOCK DIAGRAM ...................................................................................................... 12
PIN ASSIGNMENT ..................................................................................................................... 13
PIN DESCRIPTIONS .................................................................................................................. 14
PIN CIRCUIT DIAGRAMS .......................................................................................................... 15
2
3
CODE OPTION TABLE ................................................................................................... 17
ADDRESS SPACES ........................................................................................................ 18
PROGRAM MEMORY (ROM)..................................................................................................... 18
OVERVIEW ............................................................................................................................. 18
USER RESET VECTOR ADDRESS (0000H).......................................................................... 19
INTERRUPT VECTOR ADDRESS (0008H) ............................................................................ 19
CHECKSUM CALCULATION .................................................................................................. 21
GENERAL PURPOSE PROGRAM MEMORY AREA.............................................................. 22
LOOKUP TABLE DESCRIPTION............................................................................................ 22
JUMP TABLE DESCRIPTION................................................................................................. 24
DATA MEMORY (RAM) .............................................................................................................. 26
OVERVIEW ............................................................................................................................. 26
RAM BANK SELECTION ........................................................................................................ 27
WORKING REGISTERS............................................................................................................. 28
H, L REGISTERS .................................................................................................................... 28
SONiX TECHNOLOGY CO., LTD
Page 4
Revision 1.94
SN8P1800
8-bit micro-controller build-in 12-bit ADC + 72 dots LCD driver
Y, Z REGISTERS .................................................................................................................... 29
X REGISTERS ........................................................................................................................ 30
R REGISTERS ........................................................................................................................ 30
PROGRAM FLAG ....................................................................................................................... 31
CARRY FLAG ......................................................................................................................... 31
DECIMAL CARRY FLAG......................................................................................................... 31
ZERO FLAG ............................................................................................................................ 31
ACCUMULATOR ........................................................................................................................ 32
STACK OPERATIONS................................................................................................................ 33
OVERVIEW ............................................................................................................................. 33
STACK REGISTERS............................................................................................................... 34
STACK OPERATION EXAMPLE............................................................................................. 35
PROGRAM COUNTER............................................................................................................... 36
ONE ADDRESS SKIPPING .................................................................................................... 37
MULTI-ADDRESS JUMPING .................................................................................................. 38
4
5
6
ADDRESSING MODE...................................................................................................... 39
OVERVIEW................................................................................................................................. 39
IMMEDIATE ADDRESSING MODE ........................................................................................ 39
DIRECTLY ADDRESSING MODE .......................................................................................... 39
INDIRECTLY ADDRESSING MODE....................................................................................... 39
TO ACCESS DATA in RAM BANK 0....................................................................................... 40
TO ACCESS DATA in RAM BANK 1....................................................................................... 40
TO ACCESS DATA in RAM BANK 15 (LCD RAM) ................................................................. 40
SYSTEM REGISTER ....................................................................................................... 41
OVERVIEW................................................................................................................................. 41
SYSTEM REGISTER ARRANGEMENT (BANK 0) ..................................................................... 41
BYTES of SYSTEM REGISTER.............................................................................................. 41
BITS of SYSTEM REGISTER ................................................................................................. 42
POWER ON RESET ........................................................................................................ 44
Page 5
SONiX TECHNOLOGY CO., LTD
Revision 1.94