![Sino Wealth SH61F83 Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/sino-wealth/sh61f83/sh61f83_manual_1283060021.webp)
SH61F83
21
Port resume reset example 2:
Assume that PORT2 is resume source and F/W issues K-State when Resume Reset occurs.
PWRDN_FW:
MOV
PORT2
#FFH ; initialize PORT2 resume source to be high.
MOV
P2WK
#FFH ; Enable PORT2 resume ability.
MOV
PORT0
#00H ; Pull low PORT0.
MOV
P0WK
#00H ; Disable PORT0 resume ability.
ORL
DFC #10H
; RSU_SEL = 1, FW issue K-State
ORL
DFC,
#02H ; ERWUP = 1, Enable Remote Wake Up function.
MOV
CLRWDT #55H ; Clear Watch-Dog Timer.
ORL
PCON
#02H ; Set POWER DOWN mode.
MOV
SUSLO
#55H ; Enter POWER DOWN mode.
NOP
; 3 NOP instruction (make sure program will executes properly)
NOP
NOP
Power-down
Mode
P2WK
Port2.x
ERWUP
RSU_SEL
Reset
5.4ms
F/W
issues
K-state
FW_K
Figure 5-8. Select F/W Issues K-State by Resume Ports Reset