W78E58BP-40 Nuvoton Technology Corporation of America, W78E58BP-40 Datasheet - Page 32

no-image

W78E58BP-40

Manufacturer Part Number
W78E58BP-40
Description
Manufacturer
Nuvoton Technology Corporation of America
Datasheet

Specifications of W78E58BP-40

Lead Free Status / Rohs Status
Supplier Unconfirmed

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
W78E58BP-40
Manufacturer:
WINBOND
Quantity:
5 530
Part Number:
W78E58BP-40
Manufacturer:
WINBOND
Quantity:
5 120
Part Number:
W78E58BP-40
Manufacturer:
RAMTRON
Quantity:
48
Part Number:
W78E58BP-40
Quantity:
2 781
Part Number:
W78E58BP-40
Manufacturer:
WINBOND/华邦
Quantity:
20 000
11. APPLICATION NOTES
11.1 In-system Programming Software Examples
This application note illustrates the in-system programmability of the Nuvoton W78E058B ROM
microcontroller. In this example, microcontroller will boot from 32KB APROM bank and waiting for a
key to enter in-system programming mode for re-programming the contents of 32KB APROM. While
entering in-system programming mode, microcontroller executes the loader program in 4KB LDROM
bank. The loader program erases the 32KB APROM then reads the new code data from external
SRAM buffer (or through other interfaces) to update the 32KB APROM.
EXAMPLE 1:
;*******************************************************************************************************************
;* Example of 32K APROM program: Program will scan the P1.0. if P1.0 = 0, enters in-system
;* programming mode for updating the content of APROM code else executes the current ROM code.
;* XTAL = 16 MHz
;*******************************************************************************************************************
MAIN_32K:
PROGRAM_32K:
;************************************************************************
;* TIMER0 SERVICE VECTOR ORG = 000BH
;************************************************************************
;************************************************************************
;* 32K APROM MAIN PROGRAM
;************************************************************************
ORG 100H
MOV A, P1
ANL A, #01H
CJNE A, #01H, PROGRAM_32K; IF P1.0 = 0, ENTER IN-SYSTEM PROGRAMMING MODE
JMP NORMAL_MODE
.chip 8052
.RAMCHK OFF
.symbols
CHPCON
CHPENR
SFRAL
SFRAH
SFRFD
SFRCN
ORG
LJMP
ORG
CLR
MOV
MOV
RETI
MOV CHPENR, #87H
MOV CHPENR, #59H
MOV CHPCON, #03H
00BH
0H
100H
TR0
TL0, R6
TH0, R7
EQU
EQU
EQU
EQU
EQU
EQU
BFH
F6H
C4H
C6H
C7H
C5H
; CHPENR = 87H, CHPCON REGISTER WRTE ENABLE
; CHPENR = 59H, CHPCON REGISTER WRITE ENABLE
; CHPCON = 03H, ENTER IN-SYSTEM PROGRAMMING MODE
; JUMP TO MAIN PROGRAM
; TR0 = 0, STOP TIMER0
; SCAN P1.0
- 32 -
W78E58B/W78E058B
Publication Release Date: April 22, 2008
Revision A9

Related parts for W78E58BP-40