Microchip
直播中

宫昊

8年用户 237经验值
私信 关注
[问答]

为什么从M25P16串行闪存读取数据时会在MISO引脚上接收不可预测的数据?

你好,我使用的是PIC32 MX795F512L和M25P16 SPI闪存。时钟被拉下来,MISO通过10K电阻被拉起来。我写的是“读ID命令=0x9F”,然后跟着20个虚拟时钟周期读取MISO引脚上的数据。我用的是SPI3,CLock模式是Clock 3(CPOL=1,CPHA=1),波特率是1MHz。问题是闪光灯响应是可预测的,如所附波形图所示。硬件设计有什么问题吗?还是我用错误的方式编程?

以上来自于百度翻译


      以下为原文

    Hi,
I am using the PIC32MX795F512L with M25P16 SPI Flash. The Clock is pulled  down and MISO is pulled up via 10k resistor. I was writing the 'Read ID command = 0x9f' and then followed by 20 dummy clock cycle to read data on MISO pin. I'm using SPI3, CLock mode is Clock 3 (CPOL = 1, CPHA = 1) and baudrate is 1MHz.
The problem is response by flash is up predictable as shown in attached waveform image.
Is there anything wrong with hardware design? Or am I programming it in wrong way?
   Attached Image(s)

回帖(2)

薄坤坤

2019-7-25 14:46:08
重复张贴-请不要张贴同样的问题多次。我已经提供了答复,在另一个线程之前,我看到这个-不快乐,因为你浪费每个人的时间!苏珊

以上来自于百度翻译


      以下为原文

    Duplicate post - please do NOT post the same question multiple times.
I have already provided a response on the other thread before I saw this one - NOT HAPPY as you waste everyones time!
Susan
举报

张珊珊

2019-7-25 15:15:37
嗨,Aschen,我只是发送命令读取设备的ID。根据数据表,我们只需要发送0x9f(读取ID的命令),然后发送1至20个虚拟字节用于读取MISO管脚上的数据。这意味着要传输1字节,要接收20字节,因为我们不需要地址字节。

以上来自于百度翻译


      以下为原文

    Hi Aschen, I am just sending command for reading the ID of the device. According to datasheet, We have to send only 0x9f (command for reading ID) and then 1 to 20 dummy bytes for reading the data on MISO pin. That means 1 byte to be transmitted and 20 bytes to be received, for that we don't require the address bytes.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分