SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 101
Version 1.1
11.5.5 P0 EMULATION
SN8P2604’s P0.0 is bi-direction I/O, but ICE’s P0.0 is input only. PEDGE controls are different, too. SN8IDE provides
macros to control P0.0 emulation. These macros are built in assembler software.
11.5.5.1 @P00_MODE,
@P01_MODE
Syntax: @P00_MODE
Val
Val: 0 = Set P0.0 input mode. 1 = Set P0.0 output mode.
Syntax: @P01_MODE
Val
Val: 0 = Set P0.1 input mode. 1 = Set P0.1 output mode.
Example: Set P0.0 as input mode.
@P00_MODE 0
Note: If P0.0/P0.1 set as input mode, the input pins are P0.0/P0.1 of S8KD-2 ICE.
Example: Set P0.0 as output mode.
@P00_MODE 1
Note: If P0.0/P0.1 set as output mode, the output pins are P6.0/P6.1 of S8KD-2 ICE.