SN8P1602B
8-Bit Micro-Controller
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
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 resistors 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 noise filter code option in SN8P1602B.
3. Enable the watchdog option to protect system crash.
4. Non-used I/O ports should be set as output low mode
5. Constantly refresh important system registers and variables in RAM to avoid system
crash by a high electrical fast transient noise.
Noisy Immunity
6. Disable Low Power Function
SONiX TECHNOLOGY CO., LTD
Page 67
Version 1.1