完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,
我已经挣扎了好几天,试图让UART样本在我的PSoC3板上工作。 我现在开始怀疑UART是否可以与MYCY8CKIT-03起动器套件一起使用。 我想做的是,通过超终端将加速度计数据(X,Y,ORZ)显示在我的计算机上。 请帮助!一个与CY8CITK-03一起工作的例子会有很大帮助! 非常感谢! 阳光充足 以上来自于百度翻译 以下为原文 Hi, I have been struggling for days, trying to get the UART samples to work on my psoc3 board. I am now starting to wonder if UART can be used with my CY8CKIT-003 starter kit. All I am trying to do is, display the accelorometer data (X,Y,orZ) onto my computer via HYPER TERMINAL. Please help! A sample which works with CY8CKIT-003, would help a lot! THANKS SOO MUCH! -Sunny |
|
相关推荐
12个回答
|
|
阳光明媚,
它可以使用UART通信的加速度计读数从第一次接触试剂盒通过UART。 如果你看看第一次接触的试剂盒的示意图,你会发现,X,Y和Z轴的加速度计的输出连接到引脚P3 [ 5 ]、[ 6 ]和P3 P3 [ 7 ]分别。这在下面的快照中显示: 你需要使用三通道AMUX ADC转换为数字值,并发出值对UART的TX。 你需要如果你是connecteing到桌面PC的RS232端口,如果您使用的是外部USB-UART转换器基于MAX232的电压电平移位,然后可能会有一个规定的连接引脚直接输出。 以上来自于百度翻译 以下为原文 Hi Sunny, It is possible to use UART to communicate the Accelerometer readings from First Touch Kit via UART. If you look into the schematic of the First Touch Kit, you'll find that the X, Y and Z axis outputs of the accelerometer are connected to Pins P3[5], P3[6] and P3[7] respectively. This is shown in the snapshot below: You'll need to Use an ADC with 3 channel AMUX to convert to the digital values and send out the values on UART Tx. You'll need to do a level shift on the voltage using MAX232 if you are connecteing it to the RS232 port of your Desktop PC. If you are using an external USB-UART converter, then there might be a provision to connect the Pins output directly. |
|
|
|
你需要把PSoC的TX连接到外部的UB-UART加密狗的RX,并连接两个板的共同基础。
在船上的加速度计有3个模拟输出3针,X,Y和Z轴。 还有3个终端: 1)使能 2)模式 3)ST/MOT 这些引脚应该给出适当的信号,使加速度计正常工作。 正常运作模式: 使能=高 模式=高 ST/MOT=Low 以上来自于百度翻译 以下为原文 You need to connect the Tx of the PSoC to Rx of the external USB-UART dongle and connect the common grounds of the two boards. The Accelerometer available on board has 3 pins for 3 analog output - X, Y and Z axis. There are also 3 more terminals: 1) Enable 2) Mode 3) ST / MOT These pins should be given appropriate signal for the Accelerometer to function properly. For normjal mode of operation: Enable = High Mode = High ST / MOT = Low |
|
|
|
创建一个项目,使用UART在超级终端上显示加速度计读数。
超级终端快照如下所示: 该项目附随此职位。 加速度计 301 K 以上来自于百度翻译 以下为原文 A project was create to display the Accelerometer readings on the hyperterminal using UART. The Hyperterminal snap-shot is as shown below: The project is attached along with this post
|
|
|
|
嘿,Dasg,
非常感谢您的回复,以及您提供的样例代码。 我把样本编程到我的板上,但是当我连接超终端从板上获取值时,我什么也看不见。 我不确定,如果这是我的电脑设置,或者如果我需要一个附件到我的董事会。下面是我正在使用的电路板的图像。你用同一块木板吗? 非常感谢! 阳光充足 623.66Fig4.jPG 124.2 K 以上来自于百度翻译 以下为原文 Hey Dasg, Thank you soo much for replying, and the sample code that you have provided. I programmed the sample to my board, but when I connect hyper terminal to get the values from the board I am not seeing anything. I am not sure, if it is my computer settings or if I need an accesory to my board. Below is the image of the board I am using. Are your using this same board? Thanks so much again! -Sunny
|
|
|
|
阳光明媚,
我也使用PSoC3第一触控套件(CY8CITK-03)来创建项目。 以下是一些可以帮助你解决这个问题的亮点: 1)您使用桌面PC上可用的RS232连接器来使用超级终端进行通信吗?如果是这样,那么也必须使用诸如M232的电平转换器来转换到THHE RS232电平。 2)我使用外部UB-UART加密狗进行测试。对于这种设置,不需要使用电平转换器。PSOC的TX连接到软件狗的RX。应该注意的是,RX TX连接总是交叉交叉(RX-GT;Tx,TX-GT;RX)。FTK和UB-UART冬音的场地应该连接在一起以形成共同的地面。 3)超终端设置的波特率是多少?在PSoC的UART配置为波特率为9600,没有奇偶校验位,1停止位和无流量控制。同样的设置也应该设置在超级终端配置中。 以上来自于百度翻译 以下为原文 Hi Sunny, I too used the PSoC3 First Touch Kit (CY8CKIT-003) to create the project. Here are some of highlights which might help you solve the issue: 1) Are you using the RS232 connector available on the Desktop PC to communicate using hyperterminal? If so, then you must also use a level converter such as MAX232 to convert to trhe RS232 level. 2) I tested using an external USB-UART Dongle. For this setup, the use of level converter was not required. The Tx of PSoC was connected to Rx of the dongle. Care should be taken that the Rx-Tx connection is always criss-cross (Rx -> Tx, Tx -> Rx). The grounds of the FTK and USB-UART dongle should be connected together for common ground. 3) What is the baud rate set in the hyper terminal? The UART in PSoC is configured for a baud rate of 9600 with no parity bit, 1 stop bit and no flow control. The same setting should also be set in the hyperterminal configuration. |
|
|
|
下图显示了硬件连接。
PSoC & G.UB-UART东乐& GT;笔记本电脑 以上来自于百度翻译 以下为原文 The snap below shows the hardware connection made. PSoC -> USB-UART Dongle -> Laptop |
|
|
|
抱歉,我不能把快照放在前面的帖子里。我附上了这个评论的快照。
光电2244.JPG 690.5 K 以上来自于百度翻译 以下为原文 Sorry, I wasn't able to put the snapshot in the previous post. I have attached the snap along with this comment.
|
|
|
|
超级终端配置的快照附于此注释。
让我们知道这是否有帮助。 超末端 1.4兆字节 以上来自于百度翻译 以下为原文 The snapshot of the Hyperterminal configuration is attached along with this comment. Let us know if this helps.
|
|
|
|
DASG已经清除了所有重要的点,但是如果你想用中断来实现UART,我会在几周前写一些代码来帮助你。
KMMAKAD.BogSPo.com /2011/12/PSoC3-Basic -UAR.HTML. (它是在PSoC创建者2上写的,对于CY8CITK-01) 以上来自于百度翻译 以下为原文 dasg has already cleared up all the important points,but if youre looking to implement UART with Interrupts,heres some code I wrote a few weeks back that could help you out. kmmankad.blogspot.com/2011/12/psoc3-basic-uart.html (It was written on PSoC Creator 2.0,and for the CY8CKIT-001) |
|
|
|
嘿,Dasg,
你的第一个问题是我的问题!我没有一个RS232连接器。我的印象是,我可以保持USB连接,这是我用来编程板,也可以使用串行端口(愚蠢的我!). 我将订购UB-UART冬瓜。你使用的是从柏树获得的吗?谢谢你的帮助,先生! @ kMunkad: 我可能需要使用UART中断后,我得到我的当前问题解决。谢谢你的榜样! 阳光充足 以上来自于百度翻译 以下为原文 Hey Dasg, Your first point is my problem! I do not have a RS232 connector. I was under the impression that I could keep the u*** connected, which I used to program the board, to also use a serial port (silly me!). I will order the USB-UART Dongle. Is the one you are using, available to get from cypress? Thank you for all your help Sir! @kmmankad: I might be needing to use the UART with Interrupts after I get my current issue resolved. Thank you for the example! -Sunny |
|
|
|
阳光明媚,
我使用的狗爪是本地购买的。您可以使用这样的软件狗连接PSoC到您的笔记本电脑的USB端口。如果您使用的是台式电脑,您可以使用RS232连接器在电压电平转换器MX232之后。 以上来自于百度翻译 以下为原文 Hi Sunny, The dongle which I used was purchased locally. You can use such a dongle to connect PSoC to the USB port of your laptop. If you are using a desktop PC, you can use the RS232 connector after voltage level translator MAX232. |
|
|
|
你好,帕祖祖213,
可以使用第一触摸工具箱本身使用UB-UART进行通信。这就要求你对董事会进行一周的审核。在论坛上发布了一个话题,讨论了在FTK上使用USB的问题。 以上来自于百度翻译 以下为原文 Hi pazuzu213, It is possible to use the First Touch Kit itself to communicate using USB-UART. This requires you to tweek the board a little. A topic was posted in the forum where the use of USB on FTK was discussed. |
|
|
|
只有小组成员才能发言,加入小组>>
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 17:23 , Processed in 1.225129 second(s), Total 100, Slave 84 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号