SX Users Manual Rev. 3.1
146
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 5 Input/Output Ports
Table 5-1 MODE Register Settings for SX18/20/28AC and SX18/20/28AC75
MODE Reg.
Register Written by
mov !RA,W
Register Written by
mov !RB,W
Register Written by
mov !RC,W
X8h
Exchange CMP_B
X9h
Exchange WKPND_B
XAh
WKED_B
XBh
WKEN_B
XCh
ST_B
ST_C
XDh
LVL_A
LVL_B
LVL_C
XEh
PLP_A
PLP_B
PLP_C
XFh
RA Direction
RB Direction
RC Direction
Table 5-2 MODE Register Settings for SX48/52BD (Sheet 1 of 2)
MODE Reg.
mov !RA,W
mov !RB,W
mov !RC,W
mov !RD,W
mov !RE,W
00h
Read T1CPL
Read T2CPL
01h
Read T1CPH
Read T2CPH
02h
Read T1R2CML
Read T2R2CML
03h
Read T1R2CMH
Read T2R2CMH
04h
Read T1R1CML
Read T2R1CML
05h
Read T1R1CMH
Read T2R1CMH
06h
Read T1CNTB
Read T2CNTB
07h
Read T1CNTA
Read T2CNTA
08h
Exchange CMP_B
09h
Exchange WKPND_B
0Ah
Write WKED_B
0Bh
Write WKEN_B
0Ch
Read ST_B
Read ST_C
Read ST_D
Read ST_E
0Dh
Read LVL_A
Read LVL_B
Read LVL_C
Read LVL_D
Read LVL_E
0Eh
Read PLP_A
Read PLP_B
Read PLP_C
Read PLP_D
Read PLP_E
0Fh
Read RA
Direction
Read RB
Direction
Read RC
Direction
Read RD
Direction
Read RE
Direction
10h
Clear Timer T1
Clear Timer T2
11h
12h
Write T1R2CML
Write T2R2CML
13h
Write T1R2CMH
Write T2R2CMH
14h
Write T1R1CML
Write T2R1CML
15h
Write T1R1CMH
Write T2R1CMH
16h
Write T1CNTB
Write T2CNTB
17h
Write T1CNTA
Write T2CNTA
18h
Exchange CMP_B