W78E058DFG Nuvoton Technology Corporation of America, W78E058DFG Datasheet - Page 84

no-image

W78E058DFG

Manufacturer Part Number
W78E058DFG
Description
IC MCU 8-BIT 32K FLASH 44-PQFP
Manufacturer
Nuvoton Technology Corporation of America
Series
W78r
Datasheet

Specifications of W78E058DFG

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
W78E058DFG
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
W78E058DFG
Manufacturer:
ST
0
Part Number:
W78E058DFG
Manufacturer:
NUVOTON
Quantity:
20 000
Application Note: In-system Programming Software Examples
This application note illustrates the in-system programmability of the microcontroller. In this example,
microcontroller will boot from APROM bank and waiting for a key to enter in-system programming
mode for re-programming the contents of APROM. While entering in-system programming mode,
microcontroller excutes the loader program in 4KB LDROM bank. The loader program erases the
APROM then reads the new code data from external SRAM buffer (or through other interfaces) to
update the APROM.
EXAMPLE 1:
;*******************************************************************************************************************
;* Example of APROM program: Program will scan the P1.0. if P1.0 = 0, enters in-system
;* programming mode for updating the contents of APROM code else excutes the current ROM code.
;* XTAL = 40 MHz
;*******************************************************************************************************************
MAIN_:
PROGRAM_:
WAKE-UP FROM IDLE MODE
;************************************************************************
;* TIMER0 SERVICE VECTOR ORG=000BH
;************************************************************************
;************************************************************************
;* APROM MAIN PROGRAM
;************************************************************************
.chip 8052
.RAMCHK OFF
.symbols
CHPCON
CHPENR
SFRAL
SFRAH
SFRFD
SFRCN
MOV TCON,#00H
MOV A,P1
ANL A,#01H
CJNE A,#01H,PROGRAM_
JMP NORMAL_MODE
LJMP
ORG
CLR
MOV
MOV
RETI
ORG
MOV CHPENR,#87H
MOV CHPENR,#59H
MOV CHPCON,#03H
MOV IP,#00H
MOV IE,#82H
EQU
EQU
100H
TR0
TL0,R6
TH0,R7
100H
ORG
00BH
Preliminary W78E516D/W78E058D Data Sheet
EQU
EQU
EQU
EQU
0H
BFH
F6H
;TR0=0,STOP TIMER0
;IF P1.0=0, ENTER IN-SYSTEM PROGRAMMING MODE
;CHPENR=87H, CHPCON REGISTER WRTE ENABLE
;CHPENR=59H, CHPCON REGISTER WRITE ENABLE
;CHPCON=03H, ENTER IN-SYSTEM PROGRAMMING MODE
;TR=0 TIMER0 STOP
C5H
C4H
C6H
C7H
- 84 -
;JUMP TO MAIN PROGRAM
;TIMER0 INTERRUPT ENABLE FOR
;SCAN P1.0
;IP=00H

Related parts for W78E058DFG