參數(shù)資料
型號: CR16MCS9VJE8
英文描述: Microcontroller
中文描述: 微控制器
文件頁數(shù): 28/157頁
文件大小: 1256K
代理商: CR16MCS9VJE8
www.national.com
28
not permitted while ISP flash EEPROM program memory is
being programmed.
The ISP flash memory is divided into 192 pages, each page
containing 4 words (each 16 bits wide). Each page is further
divided into two rows. Erase is carried out one page at a time,
whereas programming is carried out one row (or one partial
row) at a time.
Once an erase or programming operation is started, the PG-
MBUSY bit in the MSTAT register is automatically set, and
then cleared when the operation is complete. All high-voltage
pulses and timing needed for programming and erasing are
provided internally. The program memory cannot be access-
ed while the PGMBUSY bit is set.
Erase Procedure
Erasing a page requires the following code sequence:
1. Verify that the MSTAT.PGMBUSY bit is cleared.
2. Set the DMCSR.ERASE bit to 1.
3. Locally disable interrupts.
4. Write proper key value to the ISPKEY register.
5. Write to any valid page to be erased.
6. Re-enable interrupts disabled in Step 3.
7. Set the DMCSR.ERASE bit to 0.
9.4.3
Programming is done by writing one byte or word at a time
and should be done on already erased memory.
Programming the ISP flash EEPROM program memory re-
quires the following code sequence:
1. Verify that the MSTAT.PGMBUSY bit is cleared.
2. Locally disable interrupts.
3. Write proper key value to the ISPKEY register.
4. Write a byte or word to the addressed location.
5. Re-enable interrupts disabled in Step 2.
Programmed values can be verified through normal read op-
erations.
If a reset occurs in the middle of an erase or programming
operation, the operation is terminated. The reset is extended
until the flash EEPROM memory returns to the idle state.
Programming Procedure
9.4.4
The program and erase timing are controlled by the flash EE-
PROM data memory logic.
Erase and Programming Timing
9.4.5
The last 8 bytes of the ISP memory are reserved for special
functions and some of these bytes provide memory protec-
tion and security for the flash EEPROM program memory.
Read and various types of write protection are provided.
During the reset stretch period, bytes located at E5FE and
E5FF are read out to the FLCTRL2 and FLSEC registers re-
spectively. Upon reset and before an instruction fetch, bytes
located at E5FC and E5FD are read out to the FLCTRL2 and
FLCTRL1 registers respectively. Parts of FLCTRL2 register
are loaded at different times.
Memory Control and Protection Features
E5FE Byte
Upon reset of the chip, the byte located at E5FE is read into
the FLCTRL2 register. It can be written in the ISP or test en-
vironments. It can also be written in the IRE environment
through a byte write instruction when the write instruction is
anywhere within the user boot ROM area (defined above) ex-
cept for the last two words. When the user boot ROM area
has been disabled, this word cannot be programmed in the
IRE environment. Note that when this word is erased for re-
programming, the other words in the same page must first be
saved, and then re-programmed.
7 5
4 2
EMPTY
Reserved
CODEAREA[9:8]
The 2 least significant bits in address E5FE
contains the two most significant bits of the 10-
bit CODEAREA field. The description of
CODEAREA is shown in the E5FC section.
The EMPTY status indicates if the flash EE-
PROM program memory array is empty or not.
It is located in the 3 most significant bits in ad-
dress E5FE. When two or more bits in the
EMPTY field are set, the flash EEPROM pro-
gram memory is empty. Upon reset of the de-
vice and the environment select pins are all
high, the device operates in ISP environment
rather than IRE environment. After the program
memory has been filled with user code, this
field should be cleared to 000
2
.
000, 001, 010, 100: Program memory contains user code
011, 101, 11x: Program memory is empty, do not start up in IRE
EMPTY
E5FF Byte
Upon reset, the byte located in the E5FF address is read into
the FLSEC register. This byte cannot be written to in the IRE
environment. The format of the E5FF byte is shown below:
7 4
FROMWR
The FROMRD and FROMWR fields in address location
E5FF respectively provide read and write security to the flash
EEPROM program memory array while executing instruc-
tions in all environments except IRE. The user should always
write 0000
2
to enable security feature.
0000, 0001, 0010, 0100, 1000: Security feature enabled
0011, 0101, 011x, 1001, 101x, 11xx: Security feature disabled
FROMRD
Upon reset of the chip, read security is enabled
and 0000 is returned in all environments except
IRE. The internal program code can only be ex-
ecuted in the IRE environment when read se-
curity is activated.
FROMWR
Upon reset of the chip, write security is enabled
and program and erase operations to the flash
EEPROM program memory in either program-
ming modes are prevented.
Once read/write security is enabled, the odd numbered bytes
from address E5F9 to E5FF cannot be erased. Once a secu-
rity feature has been enabled, it cannot be undone. To pre-
vent the security status from being erased, the ISP and data
memory array cannot be mass erased.
Note:
In flash memory test mode, this condition also pre-
vents the odd numbered bytes of the high endurance flash
EEPROM data memory (F001 to F07F) from being erased;
1 0
CODEAREA[9:8]
3 0
FROMRD
相關(guān)PDF資料
PDF描述
CR16MCS9VJE8Y Microcontroller
CR16MCT5VJE7Y Microcontroller
CR16HCS5VJE8 Microcontroller
CR16HCS9VJE7Y Microcontroller
CR16HCS9VJE8Y Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
CR16MCS9VJE8/NOPB 功能描述:16位微控制器 - MCU RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風(fēng)格:SMD/SMT
CR16MCS9VJE80 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Family of 16-bit CAN-enabled CompactRISC Microcontrollers
CR16MCS9VJE81 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Family of 16-bit CAN-enabled CompactRISC Microcontrollers
CR16MCS9VJE82 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Family of 16-bit CAN-enabled CompactRISC Microcontrollers
CR16MCS9VJE83 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Family of 16-bit CAN-enabled CompactRISC Microcontrollers