English
Language : 

W78E054D Datasheet, PDF (28/89 Pages) List of Unclassifed Manufacturers – 8-bit microcontroller
W78E054D/W78E052D Data Sheet
mov
CHPCON,#00000011b
mov
EAPAGE,#00h
;clear EAPAGE
clr
TF0
clr
TR0
ret
Erase_LDROM:
mov
EAPAGE,#02h
;set EAPAGE is LDROM
mov
SFRCN,#ERASE_ROM
mov
TL0,#LOW (65536-ERASE_TIME)
mov
TH0,#HIGH(65536-ERASE_TIME)
setb TR0
mov
CHPCON,#00000011b
mov
EAPAGE,#00h
;clear EAPAGE
clr
TF0
clr
TR0
ret
Chip Control
Bit: 7
6
5
4
3
2
1
0
SWRST
-
-
-
-
-
ISP
ENP
Mnemonic: CHPCON
Address: BFh
Bit Name
Function
7
SWRST
1
ISP
0
ENP
When this bit is set to 1 and ENP is set to 1. It will enforce microcontroller
reset to initial condition just like power on reset. This action will re-boot the
microcontroller and start to normal operation.
The ISP function Select. When this bit is set to 1 and ENP is set to 1. It will run ISP
function.
When this bit is set to 1 and SWRST is set to 1. It will enforce microcontrol-
ler reset to initial condition just like power on reset.
When this bit is set to 1 and ISP is set to 1. It will run ISP function
Note1: CHPCON = 0x81, it is Software reset
Note2: CHPCON = 0x03, ISP function is enabled.
External Interrupt Control
Bit: 7
6
5
4
3
2
PX3
EX3
IE3
IT3
PX2
EX2
Mnemonic: XICON
BIT NAME
FUNCTION
7 PX3
External interrupt 3 priority is higher if set this bit to 1
6 EX3
Enable External interrupt 3 if set this bit to 1
1
0
IE2
IT2
Address: C0h
- 28 -
Publication Release Date: Jun 9, 2015
Revision A13