完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想做一个等效设计从我的psoc4棱镜采用伪随机配置在psoc6 PWM(其目的就是能够昏暗的LED无闪烁效果明显)奇怪的是,我似乎无法得到输出模式的正确工作,和一些奇怪的原因我能建立比较的价值要高于周期值,并开始看到一个模式,更接近我想象的应该是。我用逻辑分析仪的确认信号更接近我想要的东西,但我不认为我应该能够设置比较要高于期。有什么bug吗?还是我误解了什么?我附上了我所看到的截图,谢谢!
屏幕截图(262) 69.6 K 以上来自于百度翻译 以下为原文 I am trying to make an equivalent design from my PSoC4 PRiSM by using the Pseudo Random configuration on the PWM in PSoC6 (its purpose is to be able to dim an LED without the apparent effect of blinking) What is odd is that I can't seem to get the output pattern to work correctly, and for some weird reason I am able to set the compare value to be higher than the period value, and begin to see a pattern that is closer to what I imagine it should be. I used a logic analyzer to confirm that the signal is closer to what I want, but I don't believe I should be able to set the compare to be higher than the period. Is there some sort of bug? Or am I misunderstanding something? I've attached a screenshot of what I'm seeing Thanks!
|
|
相关推荐
1个回答
|
|
你好,BNUDUVAY329 4706,
它看起来像我们的组件定制器中的一个bug(图中显示的是错误的)。谢谢你指点出来,我会出示一张缺陷票来改正。 伪随机模式下的TCPWM块的行为可以从器件结构TRM(第27.3.6节)中理解。 综上所述,PRS模式不使用周期寄存器来重置计数器。周期寄存器只用于在计数器等于周期寄存器值时产生中断(TC)。计数器使用16位或32位LFSR(取决于所选择的分辨率)来确定下一个计数器值(从而使计数器具有伪随机性质)。比较操作简单设置输出如果计数器的当前值小于比较值和清除否则--从而使输出波形的一个伪随机性质。 让我知道如果这有帮助,或者如果你有进一步的疑问。 当做, Meenakshi Sundaram R 以上来自于百度翻译 以下为原文 Hello bneduva_3294706, It appears like a bug in our component customizer (the diagram shown is wrong). Thanks for pointing it out - I will file a defect ticket to get it corrected. The behavior of the TCPWM block in Pseudo random mode can be understood from the Device Architecture TRM (Section 27.3.6). In summary, the PRS mode does not use the period register to reset the counter. The period register is only used to generate an interrupt (TC) when the counter equals the period register value. The counter uses either a 16-bit or a 32-bit LFSR (depending on the resolution selected) to determine the next counter value (thus giving the counter a Pseudo random nature). The compare operation simply sets the output if the current counter value is less than the compare value and clears otherwise - thus giving the output waveform a pseudo random nature. Let me know if this helps or if you have further queries. Regards, Meenakshi Sundaram R |
|
|
|
只有小组成员才能发言,加入小组>>
751个成员聚集在这个小组
加入小组2065 浏览 1 评论
1824 浏览 1 评论
3633 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1508 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
502浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
355浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
409浏览 2评论
354浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
851浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 16:51 , Processed in 0.767416 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号