45300 Parallax Inc, 45300 Datasheet - Page 94

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
10 SX Special Features and Coding Tips
and the flag indicating this will remain set until the program clears it. Additional transitions on that pin
will not cause interrupts until the associated bit in the Pending register is cleared.
To configure the I/O pins for wake-up (interrupt) edge detection:
The following code snippet demonstrates this:
Interrupt
Start
Main
Page 94 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
1) Set I/O pin edge detection as desired. (See Edge Detection, above, for more information).
2) Set the MODE register to $0B (the value for Wake-Up Enable register configuration).
3) Use the port configuration instruction to enable the individual pins for wake-up interrupts. A high
4) Set I/O pin directions as necessary.
5) Clear the Pending register to enable new interrupts.
bit (1) disables interrupts and a low bit (0) enables interrupts.
RESET Start
ORG
MODE $09
MOV
RETI
; Wake-Up Edge Detection Configuration
;
MODE $0A
MOV
MODE $0B
MOV
MODE $0F
MOV
MODE $09
MOV
NOP
JMP
$0
!rb,%00000000
!rb,#%11111111 ; Port B bits 0-7 to falling edge
!rb#%11110000 ; Port B bits 4-7 to normal, 0-3 to Wake-Up
!rb,#%11111111 ; Port B bits 0-7 to input
!rb,%00000000
Main
; Interrupt routine (must be at address $0)
; Set Mode for Pending register
; Clear Pending/get current status in W
; rest of interrupt routine goes here
; Set Mode to allow Edge configuration
; Set Mode to allow Wake-Up configuration
; Set Mode to allow Direction configuration
; Set Mode for Pending register
; Clear register to allow new interrupts
; rest of main routine goes here

Related parts for 45300