English
Language : 

SN8P2608 Datasheet, PDF (102/112 Pages) SONiX Technology Company – 8-Bit Micro-Controller
SN8P2608
8-Bit Micro-Controller
11.4.5 P0 EMULATION
SN8P2608’s P0 is bi-direction I/O, but ICE’s P0 is input only. PEDGE controls are different, too. SN8IDE provides
macros to control P0 emulation. These macros are built in assembler software.
11.4.5.1 @P0n_MODE
Syntax: @P0n_MODE Val
(n = 0~7)
Val: 0 = Set P0.n input mode. 1 = Set P0.n output mode.
¾ Example: Set P0.0 as input mode.
@P00_MODE 0
’ Note: If P0 set as input mode, the input pins are P0.0~P0.7 of S8KD-2 ICE.
¾ Example: Set P0.0 as output mode.
@P00_MODE 1
’ Note: If P0 set as output mode, the output pins are P6.0~P6.7 of S8KD-2 ICE.
11.4.5.2 @P0n_OUT
Syntax: @P0n0_OUT
Val
(n = 0~7)
Val: 0 = Set P0.n0 output low. 1 = Set P0.n output high.
¾ Example: Set P0.0 as output high.
@P00_OUT
1
’ Note: Under P0 output mode, the signals are output from P6.0~P6.7 of S8KD-2 ICE.
SONiX TECHNOLOGY CO., LTD
Page 102
Version 1.4