SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 96
Version 1.1
11.5 S8KD-2 ICE ENULATION
SN8IDE is SONIX 8-bit development software including Assembler/ICE Debugger/OTP Writer. S8KD-2 is SONIX 8-bit
ICE EV chip. There are different specifications between SN8P2604 and EV Chip. SONIX provides macros to solve the
difference and make emulation correct. SN8IDE_V1.99R_S8KD2 and later version support these macros.
Note:
1.
Please use SN8IDE V1.99R to develop projects!
2.
SN8IDE V1.99S or later No More support SN8P2000 series emulation.
11.5.1 ICE_MODE
ICE_MODE setting is necessary. ICE_MODE = 1 supports S8KD-2 ICE emulation. ICE_MODE = 0 is real chip mode.
Syntax: ICE_MODE Val
Val: 0 = Real chip. 1 = S8KD-2 ICE emulation.
Example: Setting ICE mode for ICE emulation. After compiling, the code only supports ICE emulation and
can’t work correct in real chip.
CHIP SN8P2604
.DATA
ICE_MODE
EQU
1
; Set ICE_MODE for ICE emulation.
INCLUDESTD
SN8P2X_ICE.H
.CODE
User
program
…
Example: Setting ICE mode for real chip. After compiling, the code only supports SN8P2604 and can’t
work correct in ICE emulation.
CHIP SN8P2604
.DATA
ICE_MODE
EQU
0
; Set ICE_MODE for real chip.
INCLUDESTD
SN8P2X_ICE.H
.CODE
User
program
…
Note:1. After ICE emulation and verifying all functions, set ICE_MODE = 0 and compile firmware again
for real chip programming.
2. Please use the ICE_MODE = 0 checksum for real chip code. Don’t use ICE_MODE = 1 checksum
which only support ICE emulation, not real chip.