Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

SX28AC/DP Datasheet(PDF) 20 Page - Parallax Inc

No. de pieza SX28AC/DP
Descripción Electrónicos  Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
PDF  51 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  PARALLAX [Parallax Inc]
Página de inicio  https://www.parallax.com/
Logo PARALLAX - Parallax Inc

SX28AC/DP Datasheet(HTML) 20 Page - Parallax Inc

Back Button SX28AC/DP Datasheet HTML 16Page - Parallax Inc SX28AC/DP Datasheet HTML 17Page - Parallax Inc SX28AC/DP Datasheet HTML 18Page - Parallax Inc SX28AC/DP Datasheet HTML 19Page - Parallax Inc SX28AC/DP Datasheet HTML 20Page - Parallax Inc SX28AC/DP Datasheet HTML 21Page - Parallax Inc SX28AC/DP Datasheet HTML 22Page - Parallax Inc SX28AC/DP Datasheet HTML 23Page - Parallax Inc SX28AC/DP Datasheet HTML 24Page - Parallax Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 51 page
background image
Parallax SX20AC/SX28AC
www.parallax.com
© Parallax Inc.
Page 20 of 51
Rev 1.6 11/20/2006
7.2.
Port B MIWU/Interrupt Configuration
The WKPND_B register comes up with an unknown
value upon reset. The user program must clear the register
prior to enabling the wake-up condition or interrupts. The
proper initialization sequence is:
1. Select the desired edge (through WKED_B
register).
2. Clear the WKPND_B register.
3. Enable
the
Wakeup
condition
(through
WKEN_B register).
Below is an example of how to read the WKPND_B
register to determine which Port B pin caused the wakeup
or interrupt, and to clear the WKPND_B register:
mov
M,#$09
clr
W
mov
RB,W
;W contains WKPND_B
;contents of W exchanged
;with contents of WKPND_B
The final “mov” instruction in this example performs an
exchange of data between the working register (W) and
the WKPND_B register. This exchange occurs only with
Port B accesses. Otherwise, the “mov” instruction does
not perform an exchange, but only moves data from the
source to the destination.
Here is an example of a program segment that configures
the RB0, RB1, and RB2 pins to operate as Multi Input
Wakeup/Interrupt pins, sensitive to falling edges:
mov
M,#$0F
;prepare to write port data
;direction registers
mov
W,#$07
;load W with the value 07h
mov
RB,W
;configure RB0-RB2 to be inputs
mov
M,#$0A
;prepare to write WKED_B
;(edge) register
;W contains the value 07h
mov
!RB,W
;configure RB0-RB2 to sense
;falling edges
mov
M,#$09
;prepare to access WKPND_B
;(pending) register
mov
W,#$00
;clear W
mov
!RB,W
;clear all wakeup pending bits
mov
M,#$0B
;prepare to write WKEN_B (enable)
;register
mov
W,#$F8h ;load W with the value F8h
mov
!RB,W
;enable RB0-RB2 to operate as
;wakeup inputs
To prevent false interrupts, the enabling step (clearing bits
in WKEN_B) should be done as the last step in a
sequence of Port B configuration steps. After this
program segment is executed, the device can receive
interrupts on the RB0, RB1, and RB2 pins. If the device is
put into the power down mode (by executing the SLEEP
instruction), the device can then receive wakeup signals
on those same pins.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com