參數(shù)資料
型號: W78ERD2A40DL
廠商: WINBOND ELECTRONICS CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8-BIT, FLASH, 40 MHz, MICROCONTROLLER, PDIP40
封裝: ROHS COMPLIANT, DIP-40
文件頁數(shù): 53/76頁
文件大?。?/td> 650K
代理商: W78ERD2A40DL
W78ERD2/W78ERD2A
Publication Release Date: February 14, 2007
- 53 -
Revision A10
15. IN-SYSTEM PROGRAMMING (ISP) MODE
The W78ERD2 is equipped with 64 KB of main flash EPROM (AP Flash EPROM) for the application
program and 4 KB of auxiliary flash EPROM (LD Flash EPROM) for the loader program. In normal
operation, the microcontroller executes the code in the AP Flash EPROM. If the code in the AP Flash
EPROM needs to be modified, however, the W78ERD2 allows the program to activate the In-System
Programming (ISP) mode to modify it.
The contents in the AP Flash EPROM can be modified by setting the CHPCON register.
The
CHPCON is read-only by default. The program must write two specific values, 87H and then
59H, sequentially to the CHPENR register to enable the CHPCON write attribute. Writing
CHPENR register with any other values disables the write attribute.
Setting the bit CHPCON.0
makes the W78ERD2 enter ISP mode when it wakes up from the next idle mode. It takes time to set
this up in idle mode, however, so the program may use a timer interrupt to wake up the W78ERD2
and enter ISP mode after an appropriate amount of time in idle mode.
To change the contents in the AP Flash EPROM, the existing contents must set the CHPCON register
and then enter idle mode. When the W78ERD2 wakes up, it switches from AP Flash EPROM to LD
Flash EPROM, clears the program counter, pushing 0000H to the first 2 bytes of stack memory and
executes the interrupt service routine in the LD Flash EPROM. Therefore, the first execution of RETI
instruction will make the program jump to 00H in the LD Flash EPROM. When the AP Flash EPROM
has been updated, the W78ERD2 offers a software reset to switch back to the AP Flash EPROM.
Setting CHPCON bits 0, 1 and 7 to logic-1 creates a software reset to reset the CPU
. A flowchart
for the LD Flash EPROM program is shown at the end of this section.
SFRAH, SFRAL:
The objective address of the on-chip flash EPROM in ISP mode. SFRFAH contains
the high-order byte, and SFRFAL contains the low-order byte.
SFRFD:
The program data in ISP mode.
SFRCN:
The control byte for ISP mode.
SFRCN (C7)
BIT
NAME
FUNCTION
7
-
Reserve.
6
WFWIN
On-chip flash EPROM bank select for in-system programming.
0: 64-KB flash EPROM bank is the destination for re-programming.
1: 4-KB flash EPROM bank is the destination for re-programming.
5
OEN
Flash EPROM output enable.
4
CEN
Flash EPROM chip enable.
3, 2, 1, 0
CTRL[3:0] Flash EPROM control signals; see below.
相關(guān)PDF資料
PDF描述
W78ERD2A40FL 8-BIT MICROCONTROLLER
W78ERD2A40PL 8-BIT MICROCONTROLLER
W78ERD2 8-BIT MICROCONTROLLER
W78ERD2A40DN 8-BIT MICROCONTROLLER
W78ERD2A40FN 8-BIT MICROCONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
W78ERD2A40DN 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W78ERD2A40FL 功能描述:IC MCU 8-BIT 64K FLASH 44-PQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:W78 標準包裝:300 系列:78K0R/Ix3 核心處理器:78K/0R 芯體尺寸:16-位 速度:40MHz 連通性:3 線 SIO,I²C,LIN,UART/USART 外圍設(shè)備:DMA,LVD,POR,PWM,WDT 輸入/輸出數(shù):27 程序存儲器容量:16KB(16K x 8) 程序存儲器類型:閃存 EEPROM 大小:- RAM 容量:1K x 8 電壓 - 電源 (Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 85°C 封裝/外殼:38-SSOP 包裝:托盤
W78ERD2A40FN 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER
W78ERD2A40PL 功能描述:IC MCU 8-BIT 64K FLASH 44-PLCC RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:W78 標準包裝:300 系列:78K0R/Ix3 核心處理器:78K/0R 芯體尺寸:16-位 速度:40MHz 連通性:3 線 SIO,I²C,LIN,UART/USART 外圍設(shè)備:DMA,LVD,POR,PWM,WDT 輸入/輸出數(shù):27 程序存儲器容量:16KB(16K x 8) 程序存儲器類型:閃存 EEPROM 大小:- RAM 容量:1K x 8 電壓 - 電源 (Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 85°C 封裝/外殼:38-SSOP 包裝:托盤
W78ERD2A40PN 制造商:WINBOND 制造商全稱:Winbond 功能描述:8-BIT MICROCONTROLLER