45300 Parallax Inc, 45300 Datasheet - Page 107

BOARD PROTO SX48

45300

Manufacturer Part Number
45300
Description
BOARD PROTO SX48
Manufacturer
Parallax Inc
Type
MCUr
Datasheets

Specifications of 45300

Contents
Board
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SX48
For Use With
130-28029 - KIT PARTS SMART SENSORS45111 - MANUAL FOR SX-KEY/BLITZ VER. 2.028850 - CARRIER BOARD BOARD OF EDU USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
453001
Manufacturer:
LITTELFUSE/力特
Quantity:
20 000
Part Number:
453002
Manufacturer:
LITTELFU
Quantity:
1 000
The following code snippet demonstrates this:
Sub1
Sub2
Start
Continue
_Sub1
_Sub2
The first CALL in the Start routine calls the Sub1 address in the jump table. The JMP command at Sub1
then jumps to the _Sub1 subroutine (in page 2) which eventually returns to the line following the CALL.
The RETP command used to return from the subroutine resets the page select bits to the page of the
calling routine (exactly as intended).
The @ symbol preceding the addresses causes the SX editor to insert a PAGE instruction just before the
JMP and CALL commands to set the page select bits appropriately. The first CALL, in the Start routine,
would function the same without an @ symbol, as shown above, since the destination address is within
the current page. See Chapter 15.2.16 – Calling Across Pages for more information.
ORG
; Define the subroutine jump-table
;
JMP
JMP
; Start of main routines
;
CALL
JMP
ORG
CALL
JMP
ORG
; Subroutine 1 code goes here
;
RETP
; Subroutine 2 code goes here
;
RETP
$0
@_Sub1
@_Sub2
@Sub1
@Continue
$200
@Sub2
@Start
$400
10 SX Special Features and Coding Tips
; This routine is in page 0
; Set page and jump
; Call the Jump Table
; This routine is in page 1
; Call the Jump Table
; This routine is in page 2
; Return and reset page
; Return and reset page
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 107

Related parts for 45300