完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我是一个正在学习控制设备课程的学生。我最近获得了一个PSOC 1评估试剂盒与CY8C29 466作为主要的UC为此。我有一个问题,我的评估工具包,我不能找到一个具体的原因:
在实验室实践中,我被指派去做一个555钢琴电路,这个标准不使用PSoC,但是目标是在IC的PUT1的电阻和引脚之间插入导线,同时,8个按钮使用下拉设置连接到端口1(修改在主代码中数据模式寄存器,端口0设置为HI-Z,直到按下P0的一个按钮,从而使P1的端口之一被调整为强和VCC(使用数据模式和数据寄存器),如果没有按钮被按下,则所有端口0都是HI-Z。只发生在按下一个按钮的时间。 我编写代码注意C和汇编程序中的要求,但是我对UC的程序部分有一个问题。首先,我把555个电路连接到评估板的插脚上,把JP1到JP3跳线、带有公共VCC的按钮和电路的正极引脚与电路板的接地板连接到EVE板的地上,这意味着,我将电路插入到Vcc。评估板,最后,按钮P0和电阻P1与这些共同的引脚7的555个IC。我首先在C中构建这个项目,打开程序窗口并尝试加载,但是问题出现了:板开始闪烁LED电源指示器和小窗口的红色LED,窗口说“忙”电源连接,迟了,我给了通信错误。然后我试着把汇编代码装入电路板,使555个电路连接起来,这次我给设计者一个通道,我打开电路板,按下按钮,但是只有1个或2个按钮给出了扬声器声音,另一个按钮没有,作为预防措施,我把P1跳线连接到了LeD1到LeD4,这些灯亮起来,但是如果我把它们还给钢琴,没有什么像0V一样。 我把代码发送给大学合作伙伴进行测试,他成功地为电路的所有按钮加载C代码和声音。此外,我试图改变电阻,解除代码,重新武装电路,但对于我的评估工具包与CY8C29 466安装从乞丐的做法是一个失败。 发生了什么事?这是工厂缺陷还是什么?我放弃了从内纳普利特连接的短路,因为我加载了一个程序的LCD,并连接输出到评估板的LED也与外部按钮输入测试,一切都有效。如果我在没有UC工作的情况下直接插入555电路的电源,但是如果我从评估板上取电源而不使用GPIO管脚,根本就没有声音,来自于重复使用的扬声器的静态,那么如果我按照前面所描述的连接,没有任何变化。 谢谢观看 问候语 以上来自于百度翻译 以下为原文 Hi, i'm a student who is taking a course of control devices. I recently acquired a PSoC 1 Evaluation Kit with the CY8C29466 as the main uC for this reason. I have a problem with my evaluation kit and i can´t found a specific reason: Doing a laboratory practice, i was assigned to do an 555 piano circuit, normaly this don´t make use of the PSoC but the objetive is to put wires between the resistances and the pins of the Port1 of the IC, at the same time, 8 buttons are connected to port 1 using Pull Down settings (Modifying the Data Mode registers in the main code) , the port 0 is setting to Hi-z, until one of the buttons of P0 are pressed thus gives that one of the ports of the P1 is adjusted to Strong and Vcc (Using Data Mode and Data registers), if no button is pressed, all port 0 is Hi-z. The change to Strong and Vcc occurs only for one button pressed at the time. I wrote the code taking note of the requirements both in C and Assembler, but i have a problem with the program part to the uC. First, i connected the 555 circuit to the pins of the evaluation board, disconnecting the JP1 to JP3 jumpers, the buttons with common Vcc, and the positive pins of the circuit to Vcc of the board with the ground of the circuit and board to the ground of the eval board, meaning, i plug my circuit to the evaluation board, finally, the buttons to P0 and resistances to P1 with the common of these to pin 7 of the 555 IC. I build the project in C first, open the program window and try to load but the problems appear: The board starts to blinking the LED power indicator and the red LED of the MiniProg with the windows saying BUSY|POWERED|CONNECTED, late, i give a communication error. Then i try to load the Assembler code into the board keeping the 555 circuit connected and this time i give a PASS in the Designer, i turn on the board and try by pressing the buttons but only 1 or 2 buttons give a speaker sound and the other nothing, as precaution i connected the P1 jumpers to the LED1 to LED4 and these light up, but if I return them to piano, nothing happens like if are 0V. I send the code to a college partner to testing and he gets success in load the C code and sound for all the buttons for the circuit. Also i try to change resistors, debbuging the code, reARMed the circuit but, for my Evaluation Kit with the CY8C29466 installed from the beggining the practice is a failure. What could have happened? It's a factory defect or something? I discard short circuits from innapropiate connections since i loaded a program for the LCD and connected the outputs to LEDs of the evaluations board also with the test of inputs with external buttons and everything worked. If i plug a power supply to the 555 circuit directly without uC works perfectly, but if i took power from the evaluation board without using the GPIO pins, no sound at all, ony static from a reused speaker, then if i connected as described before nothing changes. Thank you for viewing Greetings |
|
相关推荐
2个回答
|
|
你好,拉斐尔,
我知道你正在使用外部555电路使用来自评估板的电源。 如果没有连接外部电路,CY8C9466的编程就可以了。 如果该外部电路连接,CY8C9466的编程失败。 你能做一个接线图,以便我能更好地理解吗? 谢谢,问候, 萨姆普斯 以上来自于百度翻译 以下为原文 Hello Rafael, I understand that you are using an external 555 circuit using power from the evaluation board. Programming of CY8C29466 is OK if this external circuit is not connected Programming of CY8C29466 fails if this external circuit is connected. Can you make a wiring diagram, so that I can understand better? Thanks, and regards, Sampath |
|
|
|
嗨,山姆 对不起,大延迟,但我的问题得到解决,我留下连接到P11Y0到P11Y2引脚的连接电阻,就像设计师通过这个连接注入代码。所以,我解开这个引脚和编程工作。 无论如何谢谢 以上来自于百度翻译 以下为原文 Hi, Sam Sorry for the big delay, but my problem is solved, i leave connected resistors to P_1_0 to P_1_2 pins, seems like Designer inject the code throught this connections. So, i unwire this pins and the programming works. Thanks anyway |
|
|
|
只有小组成员才能发言,加入小组>>
738个成员聚集在这个小组
加入小组1972 浏览 1 评论
1728 浏览 1 评论
3499 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1662 浏览 6 评论
1441 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
208浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
112浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
312浏览 2评论
263浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
448浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-14 01:23 , Processed in 0.857364 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191