45300 Parallax Inc, 45300 Datasheet - Page 93
![BOARD PROTO SX48](/photos/9/25/92507/mfg_45300_sml.jpg)
45300
Manufacturer Part Number
45300
Description
BOARD PROTO SX48
Manufacturer
Parallax Inc
Type
MCUr
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
Company:
Part Number:
453002
Manufacturer:
LITTELFU
Quantity:
1 000
- Current page: 93 of 184
- Download datasheet (2Mb)
The following code snippet demonstrates this:
Start
Main
The following are points to remember with edge detection:
10.2.6 Wakeup (Interrupt) on Edge Detection
Every I/O pin in port B can be set to cause an interrupt upon logic level transitions (rising edge or
falling edge). By configuring interrupts on input pins, the SX chip can respond to signal changes in a
quick and deterministic fashion. In addition, an interrupt of this sort will wake up the SX chip from a
SLEEP state. This can be configured by writing to the Edge Selection register (WKED_B) and the Wake-
Up Enable register (WKEN_B) and detected by monitoring the Pending register (WKPEN_B) in the
interrupt routine. The I/O pins have interrupts disabled and are set to detect falling edge transitions by
default.
As with edge selection, the Pending register bits will never be cleared by the SX alone; the running
program is responsible for doing so. This means if a desired edge is detected, the interrupt will occur
The edge detection feature is always enabled and the Pending register is always updated even if the
SX program does not configure or use it.
It is up to the SX program to clear the bits of the Pending register when detection of a future
transition is desired. The MOV !rb, #%00000000 instruction effectively clears all bits of the Pending
register at the same time that it stores the current edge detection status in W.
If the SX program is designed to handle only one edge detection event at a time (on two or more
pins), it will be necessary to get the status (as shown above), clear only the bit being attended to and
move the modified status back to the Pending register.
An edge detection event will not wake up the SX chip from a SLEEP mode unless the Wake-Up
Enable mode is also set. See below for more information.
; Edge Detection Configuration
;
MODE $0A
MOV
MODE $0F
MOV
MODE $09
MOV
JMP
!rb,#%11111111 ; Port B bits 0-7 to falling edge
!rb,#%11111111 ; Port B bits 0-7 to input
!rb,#%00000000 ; This line moves WKPND_B to W and
Main
; Set Mode to allow Edge configuration
; Set Mode to allow Direction configuration
; Set Mode for Pending register check
; writes all zeros to WKPND_B
; At this point, W should be checked for
; high bits, indicating a falling
; edge occurred
10 SX Special Features and Coding Tips
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 93
Related parts for 45300
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: