当前位置:网站首页>STC8H内部EEPOM讲解
STC8H内部EEPOM讲解
2022-04-22 12:56:00 【梦想当极客的小芦】
文章目录
前言
配置STC8H3k64S4的内置EEPROM。
一、EEPROM大小及地址

我使用的是STC8H3k64S4,内部EEPOM有64k大小,使用IAP方式操作。IAP 方式可对EEPROM 执行读、写、擦除操作。从图示来看,地址从0x0000h到0xFFFFh。
其中擦除操作是以扇区为单位进行操作,每扇区为 512 字节,即每执行一次擦除命令就会擦除一个扇区,而读数据和写数据都是以字节为单位进行操作的,即每执行一次读或者写命令时只能读出或者写入一个字节。

这个型号可以用STC_ISP设置EEPROM大小。
二、EEPROM配置
我需要存储电压保护范围,电流保护范围,功率保护范围。每一项里面有2个参数,为了不导致误操作(擦除扇区,把不想删除的也删除了),设置6个扇区。故将EE2PROM设置为3k大小。

总结
基础硬件操作程序设计,参考官方手册即可。
附上链接:http://www.stcmcudata.com/STC8F-DATASHEET/STC8H.pdf
版权声明
本文为[梦想当极客的小芦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/lu_fresh_student/article/details/124340964
边栏推荐
- 百度地图结合vr全景,全景地图模式让你出行更放心
- 智慧文旅逐渐数字化,vr全景推动文旅一体化发展
- Use R language_ Xlsx function export and write dataframe data to excel file
- ABAQUS model of local stress of bottom plate and web under the action of steel box girder jacking
- 396. Fonction de rotation
- VR全景婚礼给你别样的浪漫,记录婚礼的甜蜜瞬间
- Machine learning 7- logistic regression to realize the binary classification of watermelon dataset 2.0
- Embedded development: three techniques for verifying sensors and communication data in embedded systems
- JS foundation 11
- C# 是否管理员权限运行运行软件
猜你喜欢

每日一题系列:公共子串计算

【生活杂谈】中体平台教你如何提高彩票中奖率

摆脱 AI 生产“小作坊”:如何基于 Kubernetes 构建云原生 AI 平台

Detailed explanation of C language preprocessing

书城项目注册页面和邮箱验证

C#之SQL数据库操作(源码)

R语言把dataframe拆分为两个或多个dataframe实战(Splitting tables):使用R原生方法、data.table、dplyr等方案

Write your own compiler: build a syntax tree through syntax compilation and realize intermediate code generation

Machine learning 7- logistic regression to realize the binary classification of watermelon dataset 2.0

396. Rotation function
随机推荐
Novartis Nebula updated its prospectus and continued its listing process. Is the "academic school" gaining momentum step by step?
线程相关问题
Vnpy importing CSV data locally
四种方式实现对OpenCV的MAT类矩阵元素的遍历
Verify whether the form is empty
给自己成功的可能性
R语言使用qlogis函数生成Logistic分布分位数函数数据、使用plot函数可视化Logistic分布分位数函数数据(Logistic Distribution)
C# 是否管理员权限运行运行软件
企业级代码静态测试工具Helix QAC——技术规格
Leetcode 1608. Eigenvalues of special arrays
ORB_ Slam3 learning: introduction to tracking thread
R语言使用rowSums函数计算dataframe中的所有数据行的行数据加和值
解决CMD命令不能连续执行的问题
Use R language_ Xlsx function export and write dataframe data to excel file
C#自定义Button实现源码
Shopping form making
R语言使用merge函数对两个dataframe数据进行左连接(Left join)
R语言ggplot2可视化:ggplot2可视化将图像的图例(legend)移动到图像内部、自定义图例所处的位置
R语言把dataframe拆分为两个或多个dataframe实战(Splitting tables):使用R原生方法、data.table、dplyr等方案
IDE import project