W78E516B40DL Nuvoton Technology Corporation of America, W78E516B40DL Datasheet - Page 32

no-image

W78E516B40DL

Manufacturer Part Number
W78E516B40DL
Description
IC MCU 8-BIT 64K FLASH 40-DIP
Manufacturer
Nuvoton Technology Corporation of America
Series
W78r
Datasheet

Specifications of W78E516B40DL

Core Processor
8052
Core Size
8-Bit
Speed
40MHz
Connectivity
EBI/EMI, UART/USART
Peripherals
POR
Number Of I /o
32
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
W78E516B40DL
Manufacturer:
WINBOND
Quantity:
5 530
Part Number:
W78E516B40DL
Manufacturer:
WINBOND
Quantity:
5 120
Part Number:
W78E516B40DL
Manufacturer:
TI
Quantity:
6 249
Part Number:
W78E516B40DL
Manufacturer:
WINBOND/华邦
Quantity:
20 000
11. APPLICATION NOTE
11.1 In-system Programming Software Examples
This application note illustrates the in-system programmability of the Winbond W78E516B Flash
EPROM microcontroller. In this example, microcontroller will boot from 64 KB APROM bank and
waiting for a key to enter in-system programming mode for re-programming the contents of 64 KB
APROM. While entering in-system programming mode, microcontroller executes the loader program
in 4KB LDROM bank. The loader program erases the 64 KB APROM then reads the new code data
from external SRAM buffer (or through other interfaces) to update the 64KB APROM.
EXAMPLE 1:
;*******************************************************************************************************************
;* Example of 64K 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 = 40 MHz
;*******************************************************************************************************************
MAIN_64K:
PROGRAM_64K:
;************************************************************************
;* TIMER0 SERVICE VECTOR ORG = 000BH
;************************************************************************
;************************************************************************
;* 64K APROM MAIN PROGRAM
;************************************************************************
ORG 100H
MOV A, P1
ANL A, #01H
CJNE A, #01H, PROGRAM_64K ; 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
MOV TCON, #00H
00BH
0H
100H
TL0, R6
TH0, R7
TR0
EQU
EQU
EQU
EQU
EQU
EQU
C5H
BFH
F6H
C4H
C6H
C7H
; JUMP TO MAIN PROGRAM
; TR0 = 0, STOP TIMER0
; CHPENR = 87H, CHPCON REGISTER WRTE ENABLE
; CHPENR = 59H, CHPCON REGISTER WRITE ENABLE
; CHPCON = 03H, ENTER IN-SYSTEM PROGRAMMING MODE
; TR = 0 TIMER0 STOP
; SCAN P1.0
- 32 -
W78E516B

Related parts for W78E516B40DL