Download SN8F27E64
Transcript
SN8F27E60 Series 8-Bit Flash Micro-Controller with Embedded ICE and ISP 13.3 ISP FLASH ROM PROGRAM OPERATION ISP flash ROM program operation is to write data into flash ROM by program. Program ROM doesn’t limit written ROM address and length, but limits 32-word density of one page. The number of ISP flash ROM program operation can be 1-word ~ 32-word at one time, but these words must be in the same page. ISP flash ROM program ROM map is as following: ISP ROM MAP ROM address bit5~bit15 (hex) 0000 0020 0040 0060 0080 00A0 00C0 00E0 0100 0120 … 1000 1020 … 1700 1720 … 1780 ROM address bit0~bit4 (hex) 0000 0001 0002 … 000F 0010 … 001E 001F This page includes reset vector and interrupt sector. We strongly recommend to reserve the area not to do ISP erase. One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page One ISP Program Page This page includes ROM reserved area. We strongly recommend to reserve the area not to do ISP erase. ISP flash ROM program page density is 32-word which limits program page boundary. The first 32-word of flash ROM (0x0000~0x001F) includes reset vector and interrupt vectors related essential program operation, and the last page 32-word of flash ROM (0x1780~0x17FF) includes system reserved ROM area, we strongly recommend do not execute ISP flash ROM program operation in the two pages. Flash ROM area 0x0020~0x177F includes 187-page for ISP flash ROM program operation. ISP flash ROM program operation is a simple memory mapping operation. The first step is to plan a RAM area to store programmed data and keeps the RAM address for IS RAM addressing. The second step is to plan a ROM area will be programmed from RAM area in ISP flash ROM program operation. The RAM addressing is through PERAML[9:0] 10-bit buffer to configure the start RAM address. The RAM data storage sequence is down-up structure. The first RAM data is the low byte data of the first word of flash ROM. The second RAM data is the high byte data of the first word of ROM, and so on. ISP programming length is 1-word~32-word. ISP flash ROM programming length is controlled by PERAMCNT[7:3] bits which is 5-bit format. Before ISP ROM programming execution, set the length by program. PEROML [7:0] and PEROMH [7:0] define the target starting address [15:0] of flash ROM. Write the start address into PEROML and PEROMH registers, set PECMD register to “0x5A”, and the system start to execute ISP flash ROM program operation. If the programming length is over ISP flash ROM program page boundary, the hardware immediately stops programming flash ROM after finishing programming the last word of the ROM page. So it is very important to plan right ROM address and programming length. SONiX TECHNOLOGY CO., LTD Page 160 Version 1.4