依据2008年9月英文第4版翻译。本译文仅供参考,如有翻译错误,请以英文原稿为准
STM32F10xxx闪存编程
页2/22
目录
1 概述...................................................................................................................................................4
1.1 特性 ........................................................................................................................................4
1.2 闪存模块组织..........................................................................................................................4
2 读/编写STM32F10xxx内置闪存 .........................................................................................................7
2.1 简介 ........................................................................................................................................7
2.2 读操作.....................................................................................................................................7
2.2.1 取指令..........................................................................................................................7
2.2.2 D-Code接口 .................................................................................................................7
2.2.3 闪存访问控制器............................................................................................................7
2.3 闪存编程和擦除控制器(FPEC)................................................................................................8
2.3.1 键值..............................................................................................................................8
2.3.2 解除闪存锁...................................................................................................................8
2.3.3 主闪存编程...................................................................................................................8
2.3.4 闪存擦除 ......................................................................................................................9
2.3.5 选择字节编程 .............................................................................................................10
2.4 保护 ......................................................................................................................................12
2.4.1 写保护........................................................................................................................12
2.4.2 读保护........................................................................................................................12
2.4.3 选择字节块写保护 ......................................................................................................13
2.5 选择字节说明........................................................................................................................13
3 寄存器说明 ......................................................................................................................................15
3.1 闪存访问控制寄存器(FLASH_ACR)......................................................................................15
3.2 FPEC键寄存器(FLASH_KEYR)............................................................................................16
3.3 闪存OPTKEY寄存器(FLASH_OPTKEYR) ............................................................................16
3.4 闪存状态寄存器(FLASH_SR)................................................................................................17
3.5 闪存控制寄存器(FLASH_CR) ...............................................................................................18
3.6 闪存地址寄存器(FLASH_AR)................................................................................................19
3.7 选择字节寄存器(FLASH_OBR).............................................................................................19
3.8 写保护寄存器(FLASH_WRPR) .............................................................................................20
3.9 闪存寄存器映像 ....................................................................................................................21