參數(shù)資料
型號(hào): COP8SCR9
廠商: National Semiconductor Corporation
英文描述: 8-Bit CMOS Flash Based Microcontroller with 32k Memory, Virtual EEPROM and Brownout(8位基于CMOS 閃速存儲(chǔ)器的帶32K存儲(chǔ)器,虛擬EEPROM和電壓過低復(fù)位的微控制器)
中文描述: 8位CMOS閃存為基礎(chǔ)的32K的內(nèi)存,虛擬EEPROM和欠壓(8位基于的CMOS閃速存儲(chǔ)器的帶32K的存儲(chǔ)器,微控制器虛擬的EEPROM和電壓過低復(fù)位的微控制器)
文件頁數(shù): 21/68頁
文件大?。?/td> 714K
代理商: COP8SCR9
5.0 In-System Programming
(Continued)
5.4 MANEUVERING BACK AND FORTH BETWEEN
FLASH MEMORY AND BOOT ROM
When using ISP, at some point, it will be necessary to
maneuver between the flash program memory and the
Boot ROM, even when using customized ISP routines.
This is because it’s not possible to execute from the flash
program memory while it’s being programmed.
Two instructions are available to perform the jumping back
and forth: Jump to Boot (JSRB) and Return to Flash
(RETF). The JSRB instruction is used to jump from flash
memory to Boot ROM, and the RETF is used to return
from the Boot ROM back to the flash program memory.
See 13.0 Instruction Set for specific details on the opera-
tion of these instructions.
The JSRB instruction must be used in conjunction with the
Key register. This is to prevent jumping to the Boot ROM
in the event of run-away software. For the JSRB instruc-
tion to actually jump to the Boot ROM, the Key bit must be
set. This is done by writing the value shown in Table 10 to
the Key register. The Key is a 6 bit key and if the key
matches, the KEY bit will be set for 8 instruction cycles.
The JSRB instruction must be executed while the KEY bit
is set. If the KEY does not match, then the KEY bit will not
be set and the JSRB will jump to the specified location in
the flash memory. In emulation mode, if a breakpoint is
encountered while the KEY is set, the counter that counts
the instruction cycles will be frozen until the breakpoint
condition is cleared. The Key register is a memory
mapped register. Its format when writing is shown in Table
10 In normal operation, it is not necessary to test the KEY
bit before using the JSRB instruction. The additional in-
structions required to test the key may cause the key to
time-out before the JSRB can be executed.
TABLE 10. KEY Register Write Format
KEY When Writing
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
1
0
0
1
1
0
X
X
Bits 7–2:
Key value that must be written to set the KEY bit.
Bits 1–0:
Don’t care.
5.5 FORCED EXECUTION FROM BOOT ROM
When the user is developing a customized ISP routine, code
lockups due to software errors may be encountered. There is
a hardware method to get out of these lockups and force
execution from the Boot ROM MICROWIRE/PLUS routine,
so that the customer can erase the Flash Memory code and
start over. The method to force this condition is to drive the
G6 pin to high voltage (2X V
) and activate Reset. The high
voltage condition on G6 must be held for at least 3 instruc-
tion cycles longer than Reset is active. This special condition
will start execution from location 0000 in the Boot ROM
where the user can input the appropriate commands, using
MICROWIRE/PLUS, to erase the flash program memory and
reprogram it.
While the G6 pin is at high voltage, the Load Clock will be
output onto G5, which will look like an SK clock to the
MICROWIRE/PLUS routine executing in slave mode. How-
ever, when G6 is at high voltage, the G6 input will also look
like a logic 1. The MICROWIRE/PLUS routine in Boot ROM
monitors the G6 input, waits for it to go low, debounces it,
and then enables the ISP routine. CAUTION: The Load clock
on G5 could be in conflict with the user’s external SK. It is up
to the user to resolve this conflict, as this condition is con-
sidered a minor issue that’s only encountered during soft-
ware development.
The user should also be cautious of
the high voltage applied to the G6 pin. This high voltage
could damage other circuitry connected to the G6 pin
(e.g. the parallel port of a PC).
The user may wish to
disconnect other circuitry while G6 is connected to the high
voltage.
5.6 RETURN TO FLASH MEMORY WITHOUT
HARDWARE RESET
After programming the entire program memory, including
options, it is necessary to exit the Boot ROM and return to
the flash program memory for program execution. Upon
receipt and completion of the EXIT command through the
MICROWIRE/PLUS ISP, the ISP code will reset the part and
begin execution from the flash program memory as de-
scribed in the Reset section. This assumes that the FLEX bit
in the Option register was programmed to 1.
5.7 MICROWIRE/PLUS ISP
National Semiconductor provides a program, which is avail-
able from our web site at www.national.com/cop8, that is
capable of programming a device from the parallel port of a
PC. The software accepts manually input commands and is
capable of downloading standard Intel HEX Format files.
Users who wish to write their own MICROWIRE/PLUS ISP
host software should refer to the COP8 FLASH ISP User
Manual, available from the same web site. This document
includes details of command format and delays necessary
between command bytes.
The MICROWIRE/PLUS ISP supports the following features
and commands:
Write a value to the ISP Write Timing Register. NOTE:
This
must
be
the
first
MICROWIRE/PLUS ISP mode.
Erase the entire flash program memory (mass erase).
Erase a page at a specified address.
Read Option register.
Read a byte from a specified address.
Write a byte to a specified address.
Read multiple bytes starting at a specified address.
Write multiple bytes starting at a specified address.
Exit ISP and return execution to flash program memory.
The following table lists the MICROWIRE/PLUS ISP com-
mands and provides information on required parameters and
return values.
command
after
entering
C
www.national.com
21
相關(guān)PDF資料
PDF描述
COP8SDR9 8-Bit CMOS Flash Based Microcontroller with 32k Memory, Virtual EEPROM and Brownout(8位基于CMOS 閃速存儲(chǔ)器的帶32K存儲(chǔ)器,虛擬EEPROM和電壓過低復(fù)位的微控制器)
COP8SER7-XE 8-Bit CMOS ROM Based and OTP Microcontrollers with 4k Memory and 128 Bytes EERAM
COP8SEC5 8-Bit CMOS ROM Based and OTP Microcontrollers with 4k Memory and 128 Bytes EERAM
COP8SEC516M 8-Bit CMOS ROM Based and OTP Microcontrollers with 4k Memory and 128 Bytes EERAM
COP8SEC520M 8-Bit CMOS ROM Based and OTP Microcontrollers with 4k Memory and 128 Bytes EERAM
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
COP8SCR9HLQ7 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS Flash Based Microcontroller with 32k Memory, Virtual EEPROM and Brownout
COP8SCR9HLQ8 功能描述:IC ADC FLASH 8BIT EE 44-LLP RoHS:否 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:COP8™ 8S 標(biāo)準(zhǔn)包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設(shè)備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲(chǔ)器容量:40KB(20K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 6x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
COP8SCR9HVA7 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS Flash Based Microcontroller with 32k Memory, Virtual EEPROM and Brownout
COP8SCR9HVA8 功能描述:8位微控制器 -MCU RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
COP8SCR9HVA8 NOPB 制造商:National Semiconductor 功能描述:MCU 8-bit COP8 CISC 32KB Flash 3.3V/5V 44-Pin PLCC Rail