參數(shù)資料
型號: SX28
廠商: Electronic Theatre Controls, Inc.
英文描述: Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
中文描述: 配置通信控制器與電子工程/閃存程序存儲器,在系統(tǒng)編程能力和片上調(diào)試
文件頁數(shù): 18/52頁
文件大?。?/td> 688K
代理商: SX28
2000 Scenix Semiconductor, Inc. All rights reserved.
- 18 -
www.scenix.com
SX18AC/SX20AC/SX28AC/SX18AC75/SX20AC75/SX28AC75
7.2
The WKPND_B register comes up with a random 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 regis-
ter).
Below is an example of how to read the WKPND_B regis-
ter to determine which Port B pin caused the wakeup or
interrupt, and to clear the WKPND_B register:
Port B MIWU/Interrupt Configuration
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 config-
ures the RB0, RB1, and RB2 pins to operate as Multi-
Input Wakeup/Interrupt pins, sensitive to falling edges:
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 pro-
gram segment is executed, the device can receive inter-
rupts 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.
mov
clr
mov
M,#$09
W
!RB,W
;W contains WKPND_B
;contents of W exchanged
;with contents of WKPND_B
mov M,#$0F
;prepare to write port data
;direction registers
;load W with the value 07h
;configure RB0-RB2 to be inputs
mov W,#$07
mov !RB,W
mov M,#$0A
;prepare to write WKED_B
;(edge) register
;W contains the value 07h
;configure RB0-RB2 to sense
;falling edges
;prepare to access WKPND_B
;(pending) register
;clear W
;clear all wakeup pending bits
mov !RB,W
mov M,#$09
mov W,#$00
mov !RB,W
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
相關PDF資料
PDF描述
SX28AC Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
SX18AC75 Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
SX48BD Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability, and On-Chip Debug
SX52BD Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability, and On-Chip Debug
SX493 Photomicrosensor
相關代理商/技術參數(shù)
參數(shù)描述
SX2800 制造商:Samson Technologies 功能描述:900W SX Series Rack Mount Stereo Amplifier
SX282 制造商:Mallory Sonalert Products Inc 功能描述:Cap Film 0.0082uF 500V PS 5% (15 X 22mm) Axial 70°C
SX28AA100-I/DP 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
SX28AA100-I/PQ 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
SX28AA100-I/SO 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug