完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!我使用FPGA XC3S1400AN(Spartan-3AN系列)。我尝试将两个字节写入(读取)内部闪存(ISF)。我的接口是UART Master SPI(简单FPGA逻辑)ISF。写入模式
:页面编程通过缓冲区(将缓冲区写入缓冲区与页面编程与内置擦除命令相结合)通过缓冲区1(0x82命令代码)表4-1和表4-6 ug333。读取模式:随机读取(随机读取字节) -addressedlocations,所有读取操作均为33 MHz或更低) - 0x03命令代码(表3-1和表3-3以及图3-3 ug333)。波形图显示为附加“fig01.png”。我使用16- 位字(通过UART和主SPI)。 因此TW12 = TR12 = TW23 = TR23 = TW34 = TR34 = TW45 = TR45 = TW56 = TR56 = 0. Clk = 32 MHz,VS [2..0] = {1,0,1}。不幸的是,Wtiting / reading操作工作 偶尔正确的。 但主要是我的设计不能正常工作(我读了所有'0xFFFF ...':所有数字都是'1'二进制)。 我想这个问题是不符合要求的时间Tpep = 17 ms(或最大40 ms) - 表4-4 ug333。波形上的任何时间间隔(在“fig01.png”上)必须相等( 或更多)到Tpep进行ISF的稳定写入/读取操作? 是时间'TW12'(写入事务的第1个字节代码命令之后)? 或者它是'T sleep'(写入和读取事务之间的时间)? 它是什么?谁在他们的设计中使用了ISF(内部简单的主SPI逻辑)? 我的错误在哪里?提前感谢您的回复! 最好的问候,EugenP.S。:读取状态寄存器(表6-1命令代码0xD7)始终可以正常工作。 阅读ID(家庭代码/内存密度代码 - 命令代码0x9F)也有效.P.P.S。:对不起,我的英文不好。 ________________________________________________________错误制定的问题是答案的一半 以上来自于谷歌翻译 以下为原文 Hello all! I use board with FPGA XC3S1400AN (Spartan-3AN family). I try to write and read two bytes into (from) internal flash memory (ISF). My interface is UART <-> Master SPI (simple FPGA logic) <-> ISF. Write mode: Page Program Through Buffer (Combines Buffer Write with Buffer to Page Program with Built-in Erase command) through Buffer 1 (0x82 command code) table 4-1 and table 4-6 ug333. Read mode: Random Read (Reading bytes from randomly-addressed locations, all read operations at 33 MHz or less) - 0x03 command code (table 3-1 and table 3-3 and figure 3-3 ug333). Waveform diagram is shown in attach "fig01.png". I use 16-bits words (through UART and Master SPI). Therefore TW12 = TR12 = TW23 = TR23 = TW34 = TR34 = TW45 = TR45 = TW56 = TR56 = 0. Clk = 32 MHz, VS[2..0] = {1,0,1}. Unfortunately Wtiting/reading operations work correctly occasionally. But mostly my design does not work properly(I read all '0xFFFF...': all digits are '1' binary). I suppose that problem is in non-compliance of required time Tpep = 17 ms(or 40 ms max) - table 4-4 ug333. Which of the time interval on the waveform (on "fig01.png") must be made equal (or more than) to Tpep for stable write/read operations into/from ISF? Is it time 'TW12' (after 1th byte code command of write transaction)? Or is it 'T sleep' (time between write and read transactions)? What is it? Who used the ISF (with internal simple master SPI logic) in their designs? Where is my error? Thanks in advance for any reply! Best regards, Eugen P.S.: Reading of the status register (table 6-1 command code 0xD7) always works correctly. Reading ID (Family Code / Memory Density Code - command code 0x9F) works too. P.P.S.: Sorry for my bad english. ________________________________________________________ Correctly formulated question is a one-half of answer |
|
相关推荐
2个回答
|
|
嗨,
我使用模拟器时遇到同样的问题,我得到了相同的结果,检查状态繁忙的时间,我认为它必须至少持续40ms,如数据表中所述。 最好的祝福 以上来自于谷歌翻译 以下为原文 Hi, I've the same problem using the simulator, I obtain the same result, check for how much time the status is busy, I think it must be busy for at least 40ms as described in the datasheet. best regards |
|
|
|
Helloauricm!
谢谢你的答案。 我通过使用其他命令解决了我的问题。 所以我的算法: 写作 1写命令0x81和地址 2睡眠(ISFTpe + 1)mks 3写命令0x84和地址和数据 4写命令0x88和地址 5sleep(ISFTpp + 1)mks 读 1写命令0x03和地址 2读取数据 它工作正常。 我用它。 谢谢你们! 问候, 欧根 ________________________________________________________错误制定的问题是答案的一半 以上来自于谷歌翻译 以下为原文 Hello auricm! Thank you for answer. I solved my problem by using anothers commands. So my algorithm: WRITING 1 write command 0x81 and address 2 sleep (ISFTpe+1) mks 3 write command 0x84 and address and data 4 write command 0x88 and address 5 sleep (ISFTpp+1) mks READING 1 write command 0x03 and address 2 read data It works correctly. I use it. Thank you all! Regards, Eugen ________________________________________________________ Correctly formulated question is a one-half of answer |
|
|
|
只有小组成员才能发言,加入小组>>
2134 浏览 7 评论
2590 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2063 浏览 9 评论
3135 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2166 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
399浏览 1评论
1503浏览 1评论
在使用xc5vsx95T时JTAG扫片不成功,测量TDO无信号输出
2164浏览 0评论
495浏览 0评论
1618浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-3-29 14:31 , Processed in 0.852441 second(s), Total 46, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 深圳华秋电子有限公司
电子发烧友 (电路图) 粤公网安备 44030402000349 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号