参数资料
型号: M30245FCGP
元件分类: 微控制器/微处理器
英文描述: 16-BIT, FLASH, 16 MHz, MICROCONTROLLER, PQFP100
封装: PLASTIC, LQFP-100
文件页数: 99/244页
文件大小: 3535K
代理商: M30245FCGP
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页当前第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页第221页第222页第223页第224页第225页第226页第227页第228页第229页第230页第231页第232页第233页第234页第235页第236页第237页第238页第239页第240页第241页第242页第243页第244页
CPU Rewrite Mode
Specifications in this manual are tentative and subject to change
Rev. E
MITSUBISHI MICROCOMPUTERS
M30245 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
188
CPU Rewrite Mode
In CPU rewrite mode, the on-chip flash memory can be read, programmed, or erased under control of the
Central Processing Unit (CPU). Only the user ROM area, shown in Figure 1.140, can be rewritten. The
boot ROM area cannot be rewritten. Make sure the program and block erase commands are issued only
for each block of the user ROM area.
The control program for CPU rewrite mode can be stored in either the user ROM or the boot ROM area.
Because the flash memory cannot be read from the CPU, the rewrite control program must be trans-
ferred to an area other than the internal flash memory before it can be executed.
Overview
In the CPU rewrite mode, the CPU erases, programs and reads the internal flash memory as
instructed by software commands. Operations are executed from a memory other than the
internal flash memory, such as the internal RAM.
When the CPU rewrite mode select bit (bit 1 at address 02F716) is set to “1”, transition to CPU
rewrite mode occurs and software commands can be accepted. Read and write software com-
mands and data to even-numbered addresses (“0” for address A0) in 16-bit units. For 8-bit mode,
always write 8-bit software commands to even-numbered addresses. Commands are ignored
with odd-numbered addresses. Use software commands to control program and erase opera-
tions. The status register can verify if a program or erase operation has terminated normally or in
error.
Figure 1.141 shows the flash memory control register 0. Figure 1.142 shows a flowchart for
enabling/disabling the CPU rewrite mode. Always follow the operation as indicated in these
flowcharts.
Bit 0 is the RY/BY status flag used exclusively to read the operating status of the flash memory.
During programming and erase operations, it is “0”. Otherwise, it is “1”.
Bit 1 is the CPU rewrite mode select bit. The CPU rewrite mode is entered by setting this bit to “1”
to make software commands accepted. In CPU rewrite mode, the CPU becomes unable to
access the internal flash memory directly so, write bit 1 in an area other than the internal flash
memory. To set this bit to “1”, it is necessary to write “0” and then write “1” in succession when
the NMI pin is “H” level. The bit can be set to “0” by only writing “0”.
Bit 2 is the lock bit disable bit. By setting this bit to “1”, it is possible to disable erase and write
protect (block lock) effected by the lock bit data. The lock bit disable select bit only disables the
lock bit function; it does not change the lock data bit value. However, if an erase operation is
performed when this bit = “1”, the lock bit data that is “0” (locked) is set to “1” (unlocked) after
being erased. To set this bit to “1”, it is necessary to write “0” and then write “1” in succession.
This bit can be controlled only when the CPU rewrite mode select bit = “1”.
Bit 3 is the flash memory reset bit used to reset the control circuit of the internal flash memory.
This bit is used when exiting CPU rewrite mode and when flash memory access has failed. When
the CPU rewrite mode select bit is “1”, writing “1” to this bit resets the control circuit. To release
the reset, set this bit to “0”.
Bit 5 is the user ROM area select bit that is effective only in boot mode. If this bit is set to “1”, the
accessed area is switched from the boot ROM area to the user ROM area. When the CPU
rewrite mode is used in boot mode, set this bit to “1”. If the microcomputer is booted from the
user ROM area, the user ROM area is always accessed and this bit has no effect. When in boot
mode, the function of this bit is effective regardless of whether the CPU rewrite mode is on or off.
Use a control program that is not running in the internal flash memory to rewrite this bit.
相关PDF资料
PDF描述
M30621FCAGP 16-BIT, FLASH, 16 MHz, MICROCONTROLLER, PQFP80
M30625MGM-XXXGP 16-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M30621MCM-XXXGP 16-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M30621FCMGP 16-BIT, FLASH, 10 MHz, MICROCONTROLLER, PQFP80
M3062GF8NGP 16-BIT, FLASH, 10 MHz, MICROCONTROLLER, PQFP100
相关代理商/技术参数
参数描述
M30245FCGP#U1 功能描述:IC M16C/24 MCU FLSH 128K 100LQFP RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:M16C™ M16C/20 标准包装:1 系列:87C 核心处理器:MCS 51 芯体尺寸:8-位 速度:16MHz 连通性:SIO 外围设备:- 输入/输出数:32 程序存储器容量:8KB(8K x 8) 程序存储器类型:OTP EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):4 V ~ 6 V 数据转换器:- 振荡器型:外部 工作温度:0°C ~ 70°C 封装/外壳:44-DIP 包装:管件 其它名称:864285
M30245FC-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245FC-XXXGF 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245FC-XXXGP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245FG 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER