欢迎访问ic37.com |
会员登录 免费注册
发布采购

C8051F339 参数 Datasheet PDF下载

C8051F339图片预览
型号: C8051F339
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 234 页 / 3348 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F339的Datasheet PDF文件第95页浏览型号C8051F339的Datasheet PDF文件第96页浏览型号C8051F339的Datasheet PDF文件第97页浏览型号C8051F339的Datasheet PDF文件第98页浏览型号C8051F339的Datasheet PDF文件第100页浏览型号C8051F339的Datasheet PDF文件第101页浏览型号C8051F339的Datasheet PDF文件第102页浏览型号C8051F339的Datasheet PDF文件第103页  
C8051F336/7/8/9  
16.1.3. Flash Write Procedure  
Flash bytes are programmed by software with the following sequence:  
Step 1. Disable interrupts (recommended).  
Step 2. Erase the 512-byte Flash page containing the target location, as described in Section  
16.1.2.  
Step 3. Set the PSWE bit (register PSCTL).  
Step 4. Clear the PSEE bit (register PSCTL).  
Step 5. Write the first key code to FLKEY: 0xA5.  
Step 6. Write the second key code to FLKEY: 0xF1.  
Step 7. Using the MOVX instruction, write a single data byte to the desired location within the 512-  
byte sector.  
Step 8. Clear the PSWE bit.  
Steps 5–7 must be repeated for each byte to be written. After Flash writes are complete, PSWE should be  
cleared so that MOVX instructions do not target program memory.  
16.2. Non-volatile Data Storage  
The Flash memory can be used for non-volatile data storage as well as program code. This allows data  
such as calibration coefficients to be calculated and stored at run time. Data is written using the MOVX  
write instruction and read using the MOVC instruction. Note: MOVX read instructions always target XRAM.  
Rev. 0.2  
99