SN8P1600
8-bit micro-controller
CHIP DECLARATION IN ASSEMBLER
Assembler
OTP Device Part Number
SN8P1602
MASK Device Part Number
SN8A1602A
CHIP SN8P1602
CHIP SN8P1603
CHIP SN8P1604
SN8P1603
SN8A1602A
SN8P1604
SN8A1604A
PROGRAM CHECK LIST
Item
Description
All bits those are marked as “0” (undefined bits) in system registers should be set “0” to
avoid unpredicted system errors.
Undefined Bits
PWM1
Set PWM1 (P5.3) pin as output mode.
Interrupt
Do not enable interrupt before initializing RAM.
Non-used I/O ports should be set as output low mode or pull-up at input mode to save
current consumption.
Non-Used I/O
Sleep Mode
Stack Buffer
Enable on-chip pull-up resisters of port 0 and port 1 to avoid unpredicted wakeup.
Be careful of function call and interrupt service routine operation. Don’t let stack buffer
overflow or underflow.
1. Write 0x7F into STKP register to initial stack pointer and disable global interrupt
2. Clear all RAM.
System Initial
3. Initialize all system register even unused registers.
1. Enable OSG and High_Clk / 2 code option together
2. Enable the watchdog option to protect system crash.
3. Non-used I/O ports should be set as output low mode
4. Constantly refresh important system registers and variables in RAM to avoid system
crash by a high electrical fast transient noise.
Noisy Immunity
5. Enable the LVD option to improve the power on reset or brown-out reset performance
SONiX TECHNOLOGY CO., LTD
Page 83
Revision 1.94