完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问题解决了。这个问题是在我的EEPROM内存调用中运行的DAC芯片选择CS。这损坏了我的内存数据。简单的代码位解决了PIC32、MPLAB 3.45、和声1.06(我也使用和声驱动……DRVYSST25VF020B用于EEPROM芯片)。我有一个SPI1 WI实例。第3个客户端,所有在动态模式下,用下面的代码打开句柄://StuteNeNordLe1= DAC芯片/sSpMeNeDeNeLe2= SPI温度计//StuteNeNeDeLe3=EEPROM存储器CHIPsStuteNoReLe1= DRVYSST25VF020BYOPEN(DRVYSST25VF2020BXIDEXOR0 0,DRVIIOION ITENtiN Read Wrrad DRVIOION ITENTIN非阻塞DRVYIIOI).SpEntHANDLe2= DRVYSST25VF020BYOPEN(DRVYSST25VF20BI索引X0,DRVIIOION EntEntRead Wrad DRVIIOION EntIn非阻塞DRVVIOION ITENTIN共享);StEngHANDURL3= DRVYSST25VF020BYOPEN(DRVYSST25VF2020BXIDEXX0 0,DRVIIOION EntEntRead Wrrad DRVIIOION EntIn非阻塞DRVVIOION ITEN共享)智能共享除了DAC和ErpOM芯片之间存在干扰之外,所有的工作都有。当我把数据写入EEPROM芯片保存并读取它时,数据每次都会被轻微地破坏,例如,我写下“我走狗”的字符串。当我读到这篇文章的时候,我得到了“我的狗”。当我禁用DAC时,内存写的工作正常。我如何阻止SPI的实例相互干扰?我试过的东西…我试着减慢SPI时钟…没有Goodii尝试& DrvyIOION EntEngBull≫and lt;DrvyIoItIntIn独家& Gt;…不好。
以上来自于百度翻译 以下为原文 Problem solved. The issue was the the DAC Chip select CS, was running during my eeprom memory call. This was corrupting my memory data. simple bit of code solved this Pic32, mplab 3.45, hARMony 1.06 (I am also using the harmony driver...DRV_SST25VF020B for the eeprom chip ) I have one instance of SPI1 with 3 clients , all in dynamic mode I open the handles with the following code: //sstOpenHandle1 = DAC chip //sstOpenHandle2 = SPI Thermometer //sstOpenHandle3 = EEPROM memory chip sstOpenHandle1 = DRV_SST25VF020B_Open(DRV_SST25VF020B_INDEX_0, DRV_IO_INTENT_READWRITE | DRV_IO_INTENT_NONBLOCKING | DRV_IO_INTENT_SHARED ); .sstOpenHandle2 = DRV_SST25VF020B_Open(DRV_SST25VF020B_INDEX_0, DRV_IO_INTENT_READWRITE | DRV_IO_INTENT_NONBLOCKING | DRV_IO_INTENT_SHARED ); sstOpenHandle3 = DRV_SST25VF020B_Open(DRV_SST25VF020B_INDEX_0, DRV_IO_INTENT_READWRITE | DRV_IO_INTENT_NONBLOCKING | DRV_IO_INTENT_SHARED ); I have everything working except that there is interference between the DAC and the EERPOM chip. When I write data to the eeprom chip to save it and read it back ,, the data is slightly corrupted, in a random way each time. For example , I write the string "I walk the dog" . When I read this back I get something like, "I y thy dog". When I disable the DAC, the memory writes work correctly.. How do I stop the instances of the SPI interfering with each other? Things I tried... I tried slowing down the SPI clock..no good I tried |
|
相关推荐
1个回答
|
|
我接通了信号分析器,看到了这个问题。附加的屏幕闪烁,DAC SPI在我的EEPRM呼叫中运行,把它们搞乱了。一个简单的代码阻止了这个…http://www. Doffbox…com /L/SPI%20LI.jPG?DL=0
以上来自于百度翻译 以下为原文 Solved. I hooked up the signal analyser and saw the issue..attached screenshot The DAC SPI was running thru my EEPRM calls, messing them up..a simple bit of code stopped this.. https://www.dropbox.com/s...l/spi%20lines.JPG?dl=0 |
|
|
|
只有小组成员才能发言,加入小组>>
5255 浏览 9 评论
2038 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3219 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2268 浏览 5 评论
796浏览 1评论
689浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
619浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
687浏览 0评论
587浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-31 03:08 , Processed in 1.365970 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号