nrf51822教程系列 向nrf51822 flash中写入数据(flash write )

本文档介绍了如何向nrf51822微控制器的Flash中写入数据。首先,详细阐述了Non-Volatile Memory Controller (NVMC)的功能,强调在写入或擦除前必须正确配置CONFIG寄存器。接着,提到了Factory Information Configuration Registers (FICR)及其不可擦除的特性,这些寄存器包含芯片特定信息。然后,指导读者确定写入Flash的位置,通过读取FICR获取Flash页大小和页数,并在写入数据前执行必要的页面擦除操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前言 寄存器介绍

0 .1 Non-Volatile Memory Controller (NVMC)

Functional description
The Non-volatile Memory Controller (NVMC) is used for writing and erasing Non-volatile Memory (NVM).
Before a write can be performed the NVM must be enabled for writing in CONFIG.WEN. Similarly, before an
erase can be performed the NVM must be enabled for erasing in CONFIG.EEN. The user must make sure
that writing and erasing is not enabled at the same time, failing to do so may result in unpredictable behavior.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值