完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
170110/------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------我们正在使用的EEPROM是FM24C64 IC,在其中我已经编写了一个代码来读取和读取100字节。2。临时缓冲区加载了tempbuf[100]数组中的模拟数据,其中我加载了递增的0x01数据,并将该值存储在tempbuf中直到0x64或100(十进制)。IE 0x01,0x020x03…0x64。这个值我写在EEPROM上的间隔为5SES。4。稍后,我读取了间隔为10秒&加上0x05&在测试报告图像上显示的数据:170110_Eeprom100BWritetest_0X03FF,这样0x01,0x02,0x03将被检索为0x06,0x07,0x08.....5。0字节6。但是观察表明在38字节之后读出的数据是不正确的。请任何人帮我写并取回多达512字节的长字节,因为我知道任何选择主地址的规则。我还附上我为PIC32MZ和声P写的代码。IC324ECM100
以上来自于百度翻译 以下为原文 170110//-------------------------------------------------------------------------------------------------------- 1. Eeprom we are using is FM24C64 ic in which I have made a code to write & read 100bytes. 2. Temp buffer is loaded with a mock data in an tempbuf[100] array in which I have loaded the data of 0x01 incremented and stored the value in tempbuf upto 0x64 or 100(decimal). ie 0x01,0x02,0x03.......0x64 3. This value I have written on eeprom in an interval of 5secs. 4. Later on I have read the data with an interval of 10sec & added 0x05 & displayed it on uart the test report image: 170110_Eeprom100BWritetest_0X03FF.such that 0x01,0x02,0x03 will retrieved as 0x06,0x07,0x08..... 5.I have written the data in the eeprom from starting address of 0x03ff up to 100 bytes 6.But the observation showed that after 38bytes the data read was incorrect after this 38 bytes. Please any one help me how to write & retrieve the long bytes upto 512Bytes,alos aware me of any rule for selecting the memory address.I have also attached my code written for PIC32MZ hARMony PIC32048ECM100 Attached Image(s) Attachment(s) mI2CdevicesCfile.txt (9.60 KB) - downloaded 164 times |
|
相关推荐
1个回答
|
|
这个问题解决了,我正在使用1usec定时器ISR,基本错误是在接收之后清除接收缓冲区。
以上来自于百度翻译 以下为原文 This problem is resolved,I was using 1usec timer ISR, basic mistake that i was clearing the receive buffer after reception.grin: |
|
|
|
只有小组成员才能发言,加入小组>>
5029 浏览 9 评论
1931 浏览 8 评论
1867 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3081 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2153 浏览 5 评论
593浏览 1评论
458浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
489浏览 0评论
388浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
870浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-31 20:19 , Processed in 1.141380 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191