本译文仅供参考,如有翻译错误,请以英文原稿为准
目录
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 主闪存编程...................................................................................................................9
2.3.4 闪存擦除 ......................................................................................................................9
2.3.5 选项字节编程 .............................................................................................................10
2.4 保护 ......................................................................................................................................11
2.4.1 读保护........................................................................................................................11
2.4.2 写保护........................................................................................................................12
2.4.3 选项字节块写保护 ......................................................................................................12
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)................................................................................................16
3.5 闪存控制寄存器(FLASH_CR) ...............................................................................................17
3.6 闪存地址寄存器(FLASH_AR)................................................................................................18
3.7 选项字节寄存器(FLASH_OBR).............................................................................................18
3.8 写保护寄存器(FLASH_WRPR) .............................................................................................19
3.9 闪存寄存器映像 ....................................................................................................................19
4 版本修订记录...................................................................................................................................20
STM32F10xxx闪存编程(参照英文第6版翻译)
页2/21