45111 Parallax Inc, 45111 Datasheet - Page 105
45111
Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet
1.45111.pdf
(184 pages)
Specifications of 45111
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 105 of 184
- Download datasheet (2Mb)
The following code snippet demonstrates this:
Table
Main
MainLoop
;
Both table methods shown above will only access a maximum of 256 elements, however, the DW
method can easily be modified to access every possible address. If speed is desired, the DW method,
above, is 4 cycles shorter per element than the RETW method.
10.6 Dealing with Code Pages
10.6.1 Branching Across Pages
The SX chip’s program memory is organized into pages of 512 words each. If a program won’t fit within
a single page, special care must be taken when branching across page boundaries to avoid misdirected
jumps.
All instructions that perform a jump, except JMP W, JMP and PC+W, use a 9-bit address as the operand.
This limits the jump range to the current page only (512 words). To jump across a page boundary, the
page select bits (the upper bits of the Status register) must first be set to the appropriate page before
executing the jump. The SX assembler provides a convenient method of doing this, as shown below.
To jump across page boundaries:
Specify the jump command (JMP, JB, CJE, etc) with the page-set option (the @ sign preceding the
address).
RESET Main
Idx
; 8-bit data table
,
ORG
DW
DW
MOV
MOV
MOV
IREAD
{use the data}
INC
CJNE
EQU $08
$0
'ABCDEFG'
10, 300, 4095, 0 ; Store numbers
Idx, #Table
M, #Table>>8
W, Idx
Idx
Idx, #11, Main
; Define index symbol
; Store text
; Reset table index
; upper 4-bits of table address
; lower 8-bits of table index
; Retrieve data
; Increment table index
; Continue
10 SX Special Features and Coding Tips
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 105
Related parts for 45111
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Terminals 3 Pin Single Row Header (long)
Manufacturer:
Parallax Inc
Part Number:
Description:
Headers & Wire Housings 16 Pin Single Row Header
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: