国产精品成人VA在线观看-国产乱妇乱子视频在播放-国产日韩精品一区二区三区在线-国模精品一区二区三区

參數資料
型號: W79E802A
廠商: WINBOND ELECTRONICS CORP
元件分類: 8位微控制器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8位微控制器
文件頁數: 81/115頁
文件大?。?/td> 1456K
代理商: W79E802A
W79E804A/803A/802A
Publication Release Date: July 16, 2007
- 81 -
Revision A2
17. TIME ACCESS PROCTECTION
The W79E804 series have a new feature, like the Watchdog Timer which is a crucial to proper
operation of the system. If left unprotected, errant code may write to the Watchdog control bits
resulting in incorrect operation and loss of control. In order to prevent this, the W79E804 series have a
protection scheme which controls the write access to critical bits. This protection scheme is done
using a timed access.
In this method, the bits which are to be protected have a timed write enable window. A write is
successful only if this window is active, otherwise the write will be discarded. This write enable window
is open for 3 machine cycles if certain conditions are met. After 3 machine cycles, this window
automatically closes. The window is opened by writing AAh and immediately 55h to the Timed Access
(TA) SFR. This SFR is located at address C7h. The suggested code for opening the timed access
window is
TA
REG 0C7h
;Define new register TA, located at 0C7h
MOV TA, #0AAh
MOV TA, #055h
When the software writes AAh to the TA SFR, a counter is started. This counter waits for 3 machine
cycles looking for a write of 55h to TA. If the second write (55h) occurs within 3 machine cycles of the
first write (AAh), then the timed access window is opened. It remains open for 3 machine cycles,
during which the user may write to the protected bits. Once the window closes the procedure must be
repeated to access the other protected bits.
Examples of Timed Assessing are shown below.
Example 1: Valid access
MOV
TA, #0AAh
MOV
TA, #055h
MOV
WDCON, #00h
Example 2: Valid access
MOV
TA, #0AAh
MOV
TA, #055h
NOP
SETB
EWRST
Example 3: Valid access
MOV
TA, #0AAh
MOV
TA, #055h
ORL
WDCON, #00000010B
Example 4: Invalid access
MOV
TA, #0AAh
MOV
TA, #055h
NOP
NOP
CLR
EWT
;3 M/C Note: M/C = Machine Cycles
;3 M/C
;3 M/C
;3 M/C
;3 M/C
;1 M/C
;2 M/C
;3 M/C
;3 M/C
;3M/C
;3 M/C
;3 M/C
;1 M/C
;1 M/C
;2 M/C
相關PDF資料
PDF描述
W79E802ADG 8-BIT MICROCONTROLLER
W79E802ASG 8-BIT MICROCONTROLLER
W79E803 8-BIT MICROCONTROLLER
W79E803A 8-BIT MICROCONTROLLER
W79E803ADG 8-BIT MICROCONTROLLER
相關代理商/技術參數
參數描述
W79E802ADG 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W79E802ASG 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W79E803 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W79E803A 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W79E803ADG 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER