完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,
我在PSoC上很新。现在我使用CY8C38 66 AXI通过SPI来控制TLC5922。这需要将SPI的数据宽度从8变为7,反之亦然。SpimthDATA宽度是在SPIM .H中自动生成的,那么,如何改变它呢?谢谢您! 以上来自于百度翻译 以下为原文 Hi, I'm pretty new in using the PSOC. Now I'm using CY8C3866AXI to control TLC5922 through SPI. This needs to change the data width of the spi from 8 to 7 or vice versa time to time . but SPIM_DATA_WIDTH is generated automatically in SPIM.h. So,how can change it ? thank you! |
|
相关推荐
7个回答
|
|
你不能时不时地改变SPIM数据。这是一个特殊的要求,但我认为是可行的。使用2个SPIM(7位,8位)并行或切换时间,通过控制信号。怎么样?
以上来自于百度翻译 以下为原文 You can't change SPIM DATA WITH in time to time. That is a especial requirement, but doable, I think. Use 2 SPIM (7bit, 8bit) in parallely Or switching time to time, by control signal. How's it? |
|
|
|
阅读数据表,我不需要7位传输。TLC5922想要得到16位(2字节)或112位(14字节)。第一个数量为1位每LED,第二到7位每LED。但是对于这两个,您可以使用配置为8位字的SPI主机。
以上来自于百度翻译 以下为原文 Reading the data sheet, I don't see the need for 7 bit transfer. The TLC5922 wants to get either 16 bits (2 bytes) or 112 bits (14 bytes). The first amounts to 1 bit per LED, the second one to 7 bit per LED. But for both you can use a SPI master configured to 8-bit-words. |
|
|
|
几种可能性
1)从现有模块或LUT+逻辑中创建自己的SPI。 组件作者指南将有所帮助。也有关于组件的视频 创作- HTTP://www. CyPress?COM/?RID=49025 HTTP://www. CyPress?COM/?RID=48413 2)我在TRM中找了一个登记簿,我找不到,但是看看哪里 在项目中使用的SPIXDATAWIDWITH,可能指向寄存器 控制宽度。然后查看Rig-TRM的用法。 3)仅使用SPI,用LUT控制其输出以改变? 问候,Dana。 以上来自于百度翻译 以下为原文 Several possibilities - 1) Create your own SPI out of existing module or a LUT + Logic. Componet author guide will help. There are also videos on component authoring - http://www.cypress.com/?rID=49025 http://www.cypress.com/?rID=48413 2) I looked for a register in TRM, I could not find, but look at where SPI_DATA_WIDTH is used in project, maybe that will point to register that controls width. Then look in Reg TRM for its usage. 3) Using just SPI, control its output with a LUT to alter ? Regards, Dana. |
|
|
|
上面的DANA看到-甚至不需要7位传输,因为TLC5922期望一组完整的值,所以可以使用8位模式…
以上来自于百度翻译 以下为原文 @dana see above - there is not even the need for 7bit transfer, since the TLC5922 expects a whole set of values, so one can use 8bit mode always... |
|
|
|
这里需要注意的一点是:由于需要发送超过4字节(硬件FIFO的长度),因此您将增加SPI组件的缓冲区大小。然后,这将改变实现,使用内部ISR来填充硬件缓冲器。
如果你使用SPIM组件来控制从选择信号,即使缓冲区不是空的,这个信号也会变高。这是因为如果SPI太快,则硬件缓冲区在ISR能够重新填充之前运行空。要么减少SPI时钟频率,要么通过控制寄存器手动控制从选择线。 以上来自于百度翻译 以下为原文 One thing to note here: since you need to send more than 4 bytes (the length of the hardware FIFO), you propably will increase the buffer size of the SPI component. This will then change the implementation to use an internal ISR to fill the hardware buffer. If you then use SPIM component to control the slave select signal, this signal might go high even when the buffer is not empty. This is because if the SPI is too fast, the hardware buffer runbs empty before the ISR was able to re-fill it. Either you reduce the SPI clock frequency, or you control the slave select line manually via a control register. |
|
|
|
谢谢大家的帮助。但我有10个TLC5922S控制在一个单一的SPI链。所以我在ISR中填写FIFO。但现在看来,这行不通。我在找预告片。
以上来自于百度翻译 以下为原文 Thank you all for your help. but I have 10 TLC5922s to control in a single SPI chain. So I do fill the FIFO in a ISR. but now, it seems doesn't work. I'm trying to find out the preblom. |
|
|
|
你能正确控制至少一个TLC5922吗?SPI时钟频率是多少?你的SPI大师是如何建立的?
只是说“它不起作用”是没有用的,因为我的水晶球还在修理中: 也许你上传你的项目让我们看看? 以上来自于百度翻译 以下为原文 Are you able to control at least one TLC5922 properly? What is the SPI clock frequency? How is your SPI master set up? Just stating 'it doesn't work' is not helpful, since my crystal ball is still in repair :( Maybe you upload your project for us to look? |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1510 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
508浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
358浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
855浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 20:13 , Processed in 0.907227 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号