SX Users Manual Rev. 3.1
36
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 2 Architecture
After you write a value to the MODE register, that setting remains in effect until you change it by
writing to the MODE register again. For example, you can write the value 1Eh to the MODE register
just once, and then write to each of the three pullup configuration registers using the three mov !rx,W
instructions shown at the top of Table 2-4.
For detailed information on configuring and using the I/O ports, see Chapter 5.
Table 2-5 MODE Register Settings for SX48/52BD
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
19h
Exchange WKPND_B
1Ah
Write WKED_B
1Bh
Write WKEN_B
1Ch
Write ST_B
Write ST_C
Write ST_D
Write ST_E
1Dh
Write LVL_A
Write LVL_B
Write LVL_C
Write LVL_D
Write LVL_E
1Eh
Write PLP_A
Write PLP_B
Write PLP_C
Write PLP_D
Write PLP_E
1Fh
Write RA
Direction
Write RB
Direction
Write RC
Direction
Write RD
Direction
Write RE
Direction