G r e e n E m b e d d e d S y s t e m
G E S - 5 5 0 0 F
Appendix A Programming the Watchdog Timer
A-9
CALL Write_Configuration_Data
RET
Exit_Configuration_Mode ENDP
Check_Chip PROC NEAR
MOV AL,20h
CALL Read_Configuration_Data
CMP AL,87h
JNE Not_Initial
MOV AL,21h
CALL Read_Configuration_Data
CMP AL,81h
JNE Not_Initial
Need_Initial:
STC
RET
Not_Initial:
CLC
RET
Check_Chip ENDP
Read_Configuration_Data PROC NEAR
MOV DX,WORD PTR CS:[C04h]
OUT DX,AL