SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 107
V1.4
13.2 PROGRAM CHECK LIST
Item
Description
Undefined Bits
All bits those are marked as “0” (undefined bits) in system registers should be set “0” to
avoid unpredicted system errors.
ADC
1.
Set ADC input pin I/O direction as input mode
2.
Disable pull-up resister of ADC input pin
3.
Disable ADC before enter power down (sleep) mode to save power consumption.
4.
Set related bit of P4CON to avoid extra power consumption in power down mode
5.
Delay 100uS after enable ADC (set ADENB = “1”) to wait ADC circuit ready for
conversion
Interrupt
Do not enable interrupt before initializing RAM.
Non-Used I/O
Non-used I/O ports should be pull-up or pull-down in input mode, or be set as low in output
mode to save current consumption.
Sleep Mode
Enable on-chip pull-up resistors of port 0 to avoid unpredicted wakeup.
Stack Buffer
Be careful of function call and interrupt service routine operation. Don’t let stack buffer
overflow or underflow.
System Initial
1. Write 0x7F into STKP register to initial stack pointer and disable global interrupt
2. Clear all RAM.
3. Initialize all system register even unused registers.
4. Initialize all I/O pin direction.
Noisy Immunity
1. Set the watchdog option as “Always On” to protect system crash.
2. Enable “Noise Filter” code option
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.