完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我使用的PSoC WS2812配置6通道32 LED每通道。我是通过计算每个是一个循环程序的颜色值做一个慢闪(涉及整数乘法和除法)。
六频道数据已经损坏(我看除了第一LED绿色当我真的发送命令为红色)。 同时在五频道LED不与其他渠道同步。每个通道的输出端口,在我我有LED的LED可变数目。 CH1 24发光二极管。CH2 18 LED,CH3 19 LED,CH 4 19 LED,CH5 24 LED。 我有I2C总线在板上(禁用这没有帮助) 我的董事会也在一个CAN网络上。 在生成的代码上,我找到了这个 *定义WSLeDeLytimeT0H 300 U//逻辑0高,300美国 定义WSLeDeLyTimeT1H 700 U//逻辑1低,700美国 这些数字背后的原因是什么? 谢谢,Sravanthi 以上来自于百度翻译 以下为原文 I am using the PSOC 4 WS2812 configured with 6 channels- 32 LEDs per channel. I am doing a slow flash by computing the color value for each to be programmed in a loop(involving integer multiplication and division). The data on channel 6 is getting corrupted( I see green on all but first LED when I am acually sending command for red). Also the LEDs on channel 5 are not synchronized with the other channels. For each of the channels, on my output port I have variable number of LED's on the LED strip. Ch1 24 LED. Ch2 18 LED, Ch3 19 LED, Ch 4 19 LED, Ch5 24 LED. I have I2c bus on the board (disabling this did not help) Also my board is on a CAN network. On the generated code , I found this #define WS_LED_TIME_T0H 300U // Logic 0 high, 300 us #define WS_LED_TIME_T1H 700U // Logic 1 low, 700 us What is the reason behind these numbers? Thanks, Sravanthi |
|
相关推荐
5个回答
|
|
|
这个论坛帖子可能是有用的:
HTTP://www. CyPress .COM/CONTANT/313256 以上来自于百度翻译 以下为原文 This forum thread can be useful: http://www.cypress.com/comment/313256 |
|
|
|
|
|
@ ANKS -不确定你在这里指什么-我给组件添加了一个时钟-我只能添加12MHz。灯光总是白色的,它们没有按照我指挥的颜色更新。
以上来自于百度翻译 以下为原文 @anks - Not sure what you are pointing at here- I added a clock to the component - I can add only 12MHz. The lights are always white- they are not updating to the color I am commanding. |
|
|
|
|
苏州名之卓 发表于 2018-9-13 12:38 请上传您的项目 以上来自于百度翻译 以下为原文 Please upload your project |
|
|
|
|
|
截至目前,我不能上传项目。在YouTube上上传没有视频的视频是可能的吗? 我继续对我的项目做一些基本的测试——我剥离了所有的东西-定期更新LED像素并触发它。当我使用延迟来实现这一点时,它是有效的: (1) { () CyDelay(100); } 在UrSyLED中,我有SrPultSysPixele()和SrrPultSyTangGeor()函数。 当我把我的Urrled作为回调到SyBoe1ms定时器,并且我只调用SrPultSysPixele()和SrrPultSyTrGeGeor()之后,本地计数器递增到100(给我100ms),我的LED就损坏了。 如何处理SypLosiSyPixele()和SrPultSyTrGeGror()调用SyBoad回调中的方法? 谢谢, 斯拉夫塔尼 以上来自于百度翻译 以下为原文 As Of now I cannot upload the project. Is it possible to upload a video without hosting on youtube? I continued to do some basic test on my project- I stripped out everything - periodically updating the LED pixels and triggering it. It works when I use a delay to implement this : while(1) { USR_LED(); CyDelay(100); } In USR_LED I have the StripLights_Pixel() and StripLights_Trigger() functions. When I make my USR_LED as callback to systick 1ms timer, and I only call the StripLights_Pixel() and StripLights_Trigger() after a local counter increments to 100 (giving me 100ms), my leds get corrupted. What is the approach to handle the StripLights_Pixel() and StripLights_Trigger() calls inside a systick callback? Thanks, Sravanthi |
|
|
|
|
|
我能解决这个通过修改striplights组件代码。问题是由于所有的LED组件更新一次,这对我来说需要几毫秒,和我有一个SysTick中断每毫秒。修饰的方法是每次只做一个通道(小于1毫秒),在此期间禁用SysTick。
以上来自于百度翻译 以下为原文 I was able to solve this by modifying the striplights component code. The problem was arising because the component updates all the leds at once, which in my case takes a couple of milliseconds, and I have a systick interrupt interrupting every millisecond. The modification was to do only one channel at a time (less than 1 millisecond) and disable systick during this. |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7136 浏览 0 评论
2479 浏览 1 评论
2169 浏览 1 评论
4033 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2077 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7619浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6169浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
746浏览 2评论
714浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8021浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-4 06:57 , Processed in 1.209193 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2982