完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好;
我正在尝试实现SPI接口来读取ADC值,但我无法成功。 我不想使用picoblaze。如果有人拥有用于ADC-SPI接口的VHDL代码,我将非常高兴。 请帮帮我... 谢谢 以上来自于谷歌翻译 以下为原文 Hello; I am trying to implement a SPI interface to read ADC values but I couldn't be succesful. I don't want to use picoblaze. If anybody have VHDL code for the ADC - SPI interface, I will be very glad. please help me... thanks |
|
相关推荐
9个回答
|
|
我想用斯巴达3e板和。
该板具有Linear Tech LTC1407A-1双A / D和Linear Tech LTC6912-1双通道。 请帮忙... 以上来自于谷歌翻译 以下为原文 I want to use spartan3e board's a/d. The board has Linear Tech LTC1407A-1 Dual A/D and Linear Tech LTC6912-1 Dual Amp. Please help... |
|
|
|
嗨,我正在做同样的任务,而我从ADC获取数据bt我正在使用micrlaze处理器为此目的...
您提到的相同套件和相同的ADC编号...... 我也使用带有SPI接口的EDK 10.1我可以将它连接到microblaze处理器.. 我建议你从ip catelogue找出SPI接口,而不是编写VHDL代码,因为它是一种简单的方法来实现它 谢谢 以上来自于谷歌翻译 以下为原文 hi i am doing the same task while i am to take data from ADC bt i am using microblaze processor for this purpose... the same kit and the same ADC number u mentioned... i am also using EDK 10.1 with SPI interface i can connect it to microblaze processor.. i suggest u to find out the SPI interface from the ip catelogue instead of writing VHDL code as its an easy way to implement it thanks |
|
|
|
嗨kajulkumar
你同时使用放大器和ADC ?? 我也试图使用XPS SPI内核并连接放大器和ADC,但我有一些疑问 - 我可以将一个XPS SPI内核用于ADC和放大器吗? 或者必须为每一个使用一个XPS SPI? - 放大器有芯片使能信号,但ADC只有SCK和MISO信号,或者AD_CONV信号被认为有芯片使能? 谢谢你的回答 问候 以上来自于谷歌翻译 以下为原文 hi kajulkumar You use both the amplifier and the ADC?? i am trying to use also XPS SPI core and connect both amplifier and the ADC, but i have some doubts - Can i use one XPS SPI core for ADC and amplifier?? or have to use one XPS SPI for each one?? - the amplifier has a chip enable signal but the ADC only has SCK and MISO signals, or the AD_CONV signal is considered has chip enable?? thanks for your answers regards |
|
|
|
|
|
|
|
LTC ADC没有经典的SPI接口,但您应该在调整低级SPI内核以控制LTC器件方面遇到一些麻烦。
COND引脚执行类似于传统SPI器件的SELn信号的功能是正确的,但需要一些额外的协调SPI时钟控制来传达'start convert','nap'和'sleep'命令。 吉姆布拉迪的代码非常小,你看了它的起点吗? 编写一个更高级别的状态机来控制低级SPI控制器,而不是使用PicoBlaze,应该非常简单。 在与放大器通信时将CONV引脚驱动为高电平将导致ADC停止转换,这可能不是您想要发生的。 因此,ADC的专用SPI_CLK和SPI_MOSI可能是谨慎的。 如果在执行转换时与SPI连接的放大器进行通信,则应选择两个独立的SPI接口。 如果在敲击ADC时不与放大器通信,则使用单个SPI接口应该不是问题。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 The LTC ADC does not have a classic SPI interface, but you should have little trouble adapting a low-level SPI core to control the LTC device. You are correct that the CONV pin performs a function similar to the SELn signal of a classic SPI device, but some additional coordinated SPI clock control is required to convey 'start convert', 'nap', and 'sleep' commands. Jim Brady's code is pretty small, have you looked at it for a starting point? Coding up a higher-level state machine to control the low-level SPI controller, instead of using a PicoBlaze, should be pretty straightforward. Driving the CONV pin HIGH while communicating with the amplifier will cause the ADC to stop converting, and this may not be what you want to happen. For this reason, a dedicated SPI_CLK and SPI_MOSI for the ADC may be prudent. If you are communicating with the SPI-connected amplifier while performing conversions, you should choose two separate SPI interfaces. If you don't communicate with the amplifier while banging on the ADC, using a single SPI interface should not be a problem. - Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
感谢您的回复,我将尝试您建议的VHDL代码。
我虽然可以使用XPS_SPI核心,因为kajulkumar发布他用micrlaze制作它。 另一个问题,那么XPS_DeltaSigma核心何时被使用??,在什么样的“硬件”? 再次感谢 以上来自于谷歌翻译 以下为原文 thanks for your response, i will try the VHDL code that you suggest. I though i can use XPS_SPI core because kajulkumar posted that he made it with microblaze. Another question, so XPS_DeltaSigma core when is used??, in what kind of "hardware"?? thanks again |
|
|
|
首先,你应该确保你已经成功地获得了收益。其次,你最好放慢速度。
由于时间紧张,很难从spi捕获数据。仔细阅读数据表,ad1407a在spi clk上升沿后至少8 ns输出数据。你可能会对某些信号实施约束。 祝你好运。 以上来自于谷歌翻译 以下为原文 First ,you should make sure you have sent the gain succesfully.Second , you'd better slow down the clk . It's hard to capture the data from ad throuh spi because the timing is tight.Read the datasheet carefully,ad1407a outputs data at least 8 ns after rising edge of spi clk.you may implement constrains on some signals. good luck. |
|
|
|
你可以参考spartan 3an的用户指南,我也做同样的事情,如果你在spartan3an找到关于spi的信息请发邮件给我
以上来自于谷歌翻译 以下为原文 you can refer the user guide of spartan 3an and i am also doing same thing ,if you found the information about spi in spartan3an please mail me |
|
|
|
rabil.310@gmail.com写道:
如果您在spartan3an中找到有关spi的信息,请发邮件给我 FPGA中的SPI仅仅是移位寄存器。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 rabil.310@gmail.com wrote:SPI in an FPGA is little more than a shift register. ----------------------------Yes, I do this for a living. |
|
|
|
只有小组成员才能发言,加入小组>>
2369 浏览 7 评论
2785 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2253 浏览 9 评论
3328 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2419 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
741浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
529浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
342浏览 1评论
746浏览 0评论
1947浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-13 12:33 , Processed in 1.347011 second(s), Total 92, Slave 76 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号