完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想在运行时更改或启用/禁用命令终止符。这是可能的吗?
以上来自于百度翻译 以下为原文 I would like to change or enable/disable the command terminator at runtime. Is this possible? |
|
相关推荐
14个回答
|
|
|
|
|
|
“命令终止符”是什么意思?
问候,Dana。 以上来自于百度翻译 以下为原文 What do you mean by "command terminator" ? Regards, Dana. |
|
|
|
对于pSOC1,我假设
命令终止符是文件uARTAR1.1.C中的一个等式,因此它不能在运行时被更改。 鲍勃 以上来自于百度翻译 以下为原文 ...and for the PSoC1, I presume The command terminator is an EQU in the file UART_1.INC, so it cannot be changed at runtime. Bob |
|
|
|
RX8的全局属性是命令缓冲区启用的标志。
我想,但在TRM中找不到,一个寄存器写会处理这个问题。 如果没有人评论一个案件得到答复- 在柏树创建一个技术案例 CyPress网站 “支持” “技术支持” “创造一个案例” 你必须先在赛普拉斯网站上注册。 问候,Dana。 以上来自于百度翻译 以下为原文 In global properties for the RX8 is a flag for enable of the command buffer. I would think, but cannot find in TRM, that a register write would handle this. If no one else comments post a CASE to get answer - To create a technical case at Cypress - www.cypress.com “Support” “Technical Support” “Create a Case” You have to be registered on Cypress web site first. Regards, Dana. |
|
|
|
Dana,也许缓冲区的使用是由中断使能控制的?
以上来自于百度翻译 以下为原文 Dana, Maybe the use of the buffer is controlled by the interrupt enable? |
|
|
|
这是在立案时要问的问题。
如果你不介意回到论坛,你发现了什么。 问候,Dana。 以上来自于百度翻译 以下为原文 Thats a question to ask in the CASE filing. If you would not mind post back to forum what you find out. Regards, Dana. |
|
|
|
Dana,什么是TRM?谢谢你建议开一个案子。我明天就去做。
鲍伯,PSC代表电力系统控制…我在一家电力公司工作。 汤姆 以上来自于百度翻译 以下为原文 Dana, What is TRM? Thanks for suggesting to open a case. I'll do that tomorrow. Bob, PSC stands for Power System Control... I work for a power company. Tom |
|
|
|
技术参考手册
以下是与PSOC1相关的链接 HTTP://www. CyPress?COM/?ID=1573和rTID=117 享受 以上来自于百度翻译 以下为原文 TRM = Technical Reference Manual Here are the links to PSoC1 related http://www.cypress.com/?id=1573&rtID=117 Enjoy |
|
|
|
也许我没有把它说得很清楚,我查阅了资料,发现:
在中断处理程序中,当接收到字节时,将与命令终止符进行比较。 命令终止符是一个汇编等式(等值),因此它不能改变(除了通过修改Flash中的代码) 最简单的方法是:使用自己的中断处理程序,禁用原来的中断处理程序。这听起来可能比实际情况要复杂得多。在PSoC1中,有一些暗示要服从一个处理者的工作,但是如果你想这样做,我们会让你通过。 鲍勃 以上来自于百度翻译 以下为原文 Probably I didn't state it quite clearly, I went through the sources and found out: In the interrupt handler when a byte is received it is compared to the command terminator The command terminator is an assembly EQU (equate) so it caqnnot be changed (except by modifying code in flash) Easiest way out: Wirte your own interrupt handler and disable the original one. This may sound more complicated than it is. In PSoC1 there are some hints to obey to get a handler to work, but if you'd like to go this way we are going to get you through. Bob |
|
|
|
在PSoC设计器中,如果您求助于“帮助”、“文档”,则存在体系结构TRMS。
那里。注意每个家庭还有一个寄存器TRM,你必须在CyPress网站上找到它。 这覆盖了用于配置PSoC的所有寄存器。 问候,Dana。 以上来自于百度翻译 以下为原文 In PSOC Designer if you go to "Help", "Documentation", there are Architecture TRMs there. Note there is also a Register TRM for each family, that you have to get at cypress.com This covers all the registers used to configure PSOC. Regards, Dana. |
|
|
|
谢谢!你们都帮了大忙。在讨论的推动下,我找到了等价物,然后看了中断处理程序代码。我考虑写我自己的处理程序。也许我可以在代码的不同部分移动“把你的代码放在这里”的部分。这样我就可以添加我的修改而不必重写(复制粘贴)整个事情。我认为通知是存在的,以便在重新生成项目时保留用户修改。我想这是行不通的,因为修改后的代码将在再生代码的不同部分结束。
我想在我开发的UI之上覆盖Modbus协议。我打算实现Modbus RTU,它需要二进制传输。这就是为什么我想终止终止字符。现在,我想我将实现ASCII Modbus。ASCII的Modbus命令终止时就与UI兼容。如果我需要二进制传输看来我轻松的选项是禁用中断和轮询新人物到。我的挑战将是读他们赶上或超过他们到达。 以上来自于百度翻译 以下为原文 Thanks! You've all been so very helpful. Motivated by the discussion, I found the equate and then took a look at the interrupt handler code. I thought about writing my own handler. Maybe I could move the section that states "Place your code here" in a different section of the code. That way I could add my modifications without having to re-write (copy-paste) the whole thing. I suppose that notice is there so that it preserves the user modifications when the project is re-generated. I suppose that won't work because the modified code will end up in a different section of the regenerated code. I want to overlay modbus protocol on top the UI that I developed. I was going to implement Modbus RTU which requires binary transmissioin. That is why I wanted to diable the terminating character. Instead, now I think I will implement ASCII modbus. ASCII Modbus commands terminate with CRLF so it will be compatible with the UI. If I do need binary transmission then it looks like my easy option is to disable the interrupt and poll for new characters to arrive. My challenge will be to read them as fast or faster than they arrive. |
|
|
|
你开了一个案子吗?我很想知道这个。
仍然可以通过寄存器写入完成。如果你没有,我会的。 问候,Dana。 以上来自于百度翻译 以下为原文 Did you open a CASE on this, I am curious to know if this can still be done by register writes. If you did not then I will. Regards, Dana. |
|
|
|
Dana——我想鲍伯的回答总结了这一点。因为它是一个等式,然后参数在Flash中被硬编码。人们必须知道闪存中的值出现在哪里,然后重写它们。我认为这需要一个块写。这就产生了一种“找到另一种方法”的选择:找到一种使用终止符的方法;不要使用缓冲区;重新编写中断程序。
我没有开过一个案子,几天之内就无法胜任。如果你能而且愿意,我会感激的。请张贴回复。 -汤姆 以上来自于百度翻译 以下为原文 Dana- I think Bob's reply sums it up. Since it's an EQU then that parameter is hard-coded in the flash. One would have to know where the value(s) appear in flash and then re-write them. I think this would require a block write. This yields a 'find another way' option which is: Find a way to use utilize the terminator ; Don't use the buffer; Re-write the interrupt routine. I did not open a case and won't be in a position to do so for a few days. If you can and will, I'd appreciate it. Please post the response. -Tom |
|
|
|
的情况下提出的,我会更新时,回答是。
问候,Dana。 以上来自于百度翻译 以下为原文 CASE filed, I will update when answer comes in. Regards, Dana. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2075 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1766 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
522浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
376浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
414浏览 2评论
361浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
871浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 19:10 , Processed in 1.289238 second(s), Total 105, Slave 88 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号