SN8P26L38
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 39
Version 1.5
2.5
CODE OPTION TABLE
The code option is the system hardware configurations including oscillator type, watchdog timer operation, LVD option,
reset pin option and OTP ROM security control. The code option items are as following table:
Code Option
Content
Function Description
Fcpu
Fhosc/1
Instruction cycle is oscillator clock.
Fhosc/2
Instruction cycle is 2 oscillator clocks.
Fhosc/4
Instruction cycle is 4 oscillator clocks.
Fhosc/8
Instruction cycle is 8 oscillator clocks.
High_Clk
IHRC_8M
High speed internal 8MHz RC. XIN/XOUT become to P0.3/P0.4
bi-direction I/O pins.
IHRC_RTC
High speed internal 8MHz RC with 0.5sec RTC. XIN/XOUT become to
P0.3/P0.4 bit-direction I/O pins.
RC
Low cost RC for external high clock oscillator and XOUT becomes to P0.4
bit-direction I/O pin.
32K X’tal
Low frequency, power saving crystal (e.g. 32.768KHz) for external high
clock oscillator.
8
M X’tal
High speed crystal /resonator (e.g. 8MHz) for external high clock
oscillator.
4M X’tal
Standard crystal /resonator (e.g. 4M) for external high clock oscillator.
Watch_Dog
Always_On
Watchdog timer is always on enable even in power down and green
mode.
Enable
Enable watchdog timer. Watchdog timer stops in power down mode and
green mode.
Disable
Disable Watchdog function.
Reset_Pin
Reset
Enable External reset pin.
P02
Enable P0.2 input only without pull-up resister.
LVD
LVD_L
LVD will reset chip if VDD is below 1.8V
LVD_M
LVD will reset chip if VDD is below 1.8V
Enable LVD24 bit of PFLAG register for 2.4V low voltage indicator.
LVD_H
LVD will reset chip if VDD is below 2.4V
Enable LVD28 bit of PFLAG register for 2.8V low voltage indicator.
Security
Enable
Enable ROM code Security function.
Disable
Disable ROM code Security function.
2.5.1 RESET_PIN CODE OPTION
The reset pin is shared with general input only pin controlled by code option.
Reset:
The reset pin external reset function. When falling edge trigger occurring, the system will be reset.
P02:
Set reset pin to general purpose input only pin (P0.2). The external reset function is disable and the pin is
input pin.
2.5.2 SECURITY CODE OPTION
Security code option is OTP ROM protection. When enable security code option, the ROM code is secured and not
dumped complete ROM contents.