English
Language : 

45111 Datasheet, PDF (172/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
15 Appendix E: SX Data Sheet
mov
M, #$0F
; Set up MODE for Direction configuration
mov
!RA, #$03 ; RA3:RA2 = Outputs, RA1:RA0 = Inputs
mov
M, #$0E
; Set up MODE for Pull-Up configuration
mov
!RA, #$01 ; RA3:RA1 = Normal, RA0 = Pull-up enabled
mov
M, #$0D
; Set up MODE for TTL/CMOS configuration
mov
!RA, #$02 ; RA3, RA2, RA0 = TTL, RA1 = CMOS
Table 32 – SX20/28 Mode Register, below, defines the allowed mode values and their functions for the
SX20/28 devices. The gray areas are undefined at this time.
m
$0F
$0E
$0D
$0C
$0B
$0A
$09
$08
$07…$00
Table 32 – SX20/28 Mode Register
SX20/28 MODE (m) Register and mov !r?, W
mov !ra, w
mov !rb, w
write TRIS_A
write TRIS_B
write PLP_A
write PLP_B
write LVL_A
write LVL_B
write ST_B
write WKEN_B
write WKED_B
swap W with WKPEN_B
swap W with COMP_B
mov !rc, w
write TRIS_C
write PLP_C
write LVL_C
write ST_C
Page 172 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.