完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我是新的PSoC创建者软件。我通过网站进行了培训。我从培训中得到了一些帮助,但在编写框架时仍然遇到麻烦。我无法编写适当的API函数或如何为项目选择函数。如何获取API或C函数的列表? 例如,如果我想检查一个引脚的状态,我应该使用哪个功能? 谢谢。 以上来自于百度翻译 以下为原文 Hello, I am new to psoc creator software. I have gone through the training from the website. I got some help from that training but still getting trouble in writing the framework. I am not able to write the proper api fuction or how to select the function for my project. How do i get the list of api's or the c functions? For example if i want to check the status of a pin which fuction should i use? Thanks. |
|
相关推荐
14个回答
|
|
如果在组件上右击,通常有一个数据表
一个API部分,描述每个API及其调用、参数等。 还有一部分与该部分相关联的AP注释和一段视频。 在网站上培训图书馆。 HTTP://www. CyPress?COM/?RID=93401 AN864—PSOC®4 -使用GPIO引脚 HTTP://www. CyPress?COM/?RID=57571 AN72282-使用PSoC®3和PSoC 5LP GPIO引脚 HTTP://www. CyPress?COM/?RID=38267 AN54060-PSoC®3、PSoC 4和PSoC 5LP中断 HTTP://www. CyPress?COM/?ID=1162和源= HOMETH支持视频培训 HTTP://www. CyPress .COM/PSoCoCalto/C造饰者 HTTP://www. CyPress?COM/?RID=60890 AN77 79-从PSoC®5LP开始 HTTP://www. CyPress?COM/?RID=43337 AN61290-PSoC®3和PSoC 5LP硬件设计考虑 以上来自于百度翻译 以下为原文 If you right click on component there is typically a datasheet with an API section in it describing each API and its call, parameters, etc. Also there are a # of ap notes associated with the part, and a video training library on web site. http://www.cypress.com/?rID=93401 AN86439 - PSoC® 4 - Using GPIO Pins http://www.cypress.com/?rID=57571 AN72382 - Using PSoC® 3 and PSoC 5LP GPIO Pins http://www.cypress.com/?rID=38267 AN54460 - PSoC® 3, PSoC 4, and PSoC 5LP Interrupts http://www.cypress.com/?id=1162&source=home_support Video Training http://www.cypress.com/psoccreator/ Creator http://www.cypress.com/?rID=60890 AN77759 - Getting Started with PSoC® 5LP http://www.cypress.com/?rID=43337 AN61290 - PSoC® 3 and PSoC 5LP Hardware Design Considerations |
|
|
|
你好。。我只是想做一个简单的项目,就像我按下一个开关,然后LED应该打开。
这里我面临的问题…我想检查一下我已经分配了开关的PIN的状态,但是我不能读取状态。应该怎么办? 一级邮编 1.8兆字节 以上来自于百度翻译 以下为原文 hi.. i am just trying to do a simple project like when i press a switch then led should be turned on. Here i am facing problem.. i want to check the status of the pin where i have assigned the switch, but i am not able to read the status. What should be done?
|
|
|
|
当你查看程序中的警告时,你会看到你的“IF”没有身体来执行,因为你用半冒号结束了它。我还建议您实现另一个分支来关闭LED。
提示:改变每一个程序,以便没有错误和警告。你有什么开发工具? 鲍勃 以上来自于百度翻译 以下为原文 When you look at the warning in your program you'll see that your "if" has no body to execute because you ended it with a semi-colon. I would further suggest you to implement an else branch to switch off the LED. A tip: alter every program so that there are no errors nor warnings. What kind of development kit have you got? Bob |
|
|
|
这可能有帮助
HTTP://www. CyPress?COM/?RID=57571 AN72282-使用PSoC®3和PSoC 5LP GPIO引脚 也要看系统的参考指南,帮助菜单下的创造者,对API来控制。 GPIO。 问候,Dana。 以上来自于百度翻译 以下为原文 This might help - http://www.cypress.com/?rID=57571 AN72382 - Using PSoC® 3 and PSoC 5LP GPIO Pins Also look at system reference guide, under Creator help menu., for APIs to control GPIO. Regards, Dana. |
|
|
|
我有PSoC 5LP工具包。我写的代码是正确的吗?我已经做出了你所指出的变化。还是不起作用…在我犯错误的地方,我找不到它。
以上来自于百度翻译 以下为原文 i'm having psoc 5lp kit. Is my code which i have written is correct ? i have made the changes which u have pointed out.. still it is not working... where i have made mistake i couldnt find it. |
|
|
|
你检查外部连接了吗?
和:在您的工具箱开关连接到GND AFAIK,所以选择输入引脚的模式“电阻拉”初始驱动状态“高” 我看不清您的程序是否正确,请上传实际版本。 鲍勃 以上来自于百度翻译 以下为原文 Did you check the external connections? And: The switch in your kit connects to GND afaik, so select for the input pin's mode "Resistive pull up" initial drive state "High" I cannot see whether your program is correct, please upload the actual version. Bob |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
是的,我已经完成了“否则”语句。如果工作…但有一个问题。代码中的逻辑是相反的。比如0,它显示逻辑1,逻辑1显示逻辑0。
我刚才做了一个项目。这就像你的SW1 LED开始闪烁,当你按下SW2 LED停止闪烁。 但是开关状态和“IF”语句不匹配。逻辑是相反的。如何纠正? 我正在上传我的第二个项目…只是看看。 一、二、邮编 2兆字节 以上来自于百度翻译 以下为原文 yes i have done with "else" statement. if working.. but with one problem. the logic in the code is opposite.. like for 0 it showing logic 1 and for logic 1 it showing logic 0.. i have done one more project just now.. it is like if you sw1 led starts to blink and when u press sw2 led stops blinking. but the switch state and the "if" statement is not matching.. logic is opposite. how o rectify it? i am uploading my second project.. just have a look.
|
|
|
|
工作与psoc5试剂盒和使用一些内部作为一个开关,它始终是最好看的图的时候(已经安装在您的系统)。在那里你会看到你的开关连接到GND(0V)按下的时候,你会在这种情况下一个合乎逻辑的零读。当开关被释放,你会读到一个嗨,因为我们为一个上拉电阻,引脚定义。这是没有什么可以改变,因为这是焊接在硬件。
所以,当你交换在if和else分支都会很好的线。你甚至可以通过写作避免IF 莱德写(!)切换到LED的否定值 鲍勃 以上来自于百度翻译 以下为原文 When working with the PSoC5 Kit and using some of the internals as a switch it is always advisable to have a look into the schematics (have already been installed on your system). There you will see that your switch connects to GND (0V) when pressed, so you would read a logical zero in this case. When the switch is released you will read a Hi because we defined a pullup resistor for that pin. This is nothing you could change, since that is soldered in the hardware. So, when you swap the lines in the if and else branches all would be good. You even might avoid the if by writing LED_Write(!SW_INP_Read()); // Write negated value of switch to LED Bob |
|
|
|
谢谢鲍伯。我将在我的下一个项目中使用它。
以上来自于百度翻译 以下为原文 thank u Bob.. i will use this in my next project. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3665 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
561浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
413浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
906浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 09:23 , Processed in 1.288595 second(s), Total 104, Slave 88 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号