完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,先生,
我有CY8CITK-04942XX PSoC 4原型套件。我是初学者,我做过LED闪烁项目。现在我想做更多的项目。我有DS1307实时时钟Ic。我想将RTC与PSoC 4接口 我的任务 LED将开启1小时 LED将关闭10分钟 LED将打开20秒 我查看了组件数据日志,但没有RTC组件。我不知道如何在PSoC创建者上做顶级设计 能请人帮帮我吗? 以上来自于百度翻译 以下为原文 Hello sir , I have cy8ckit -049-42xx Psoc 4 prototyping KIt. I am begainer, recentally I have done LED blinking Project.. now I want to do some more projects. I have Ds1307 real time clock Ic. I want to interface RTC with psoc 4 My task LED will turn on for 1 houre LED will turn off for 10 minute LED will turn on for 20 seconad I looked component data log But there no RTC component. I don't understand how to make Top design on psoc creator could someone help me please ..........! |
|
相关推荐
48个回答
|
|
这可能有帮助
HTTP://www. CyPress .COM/FUMU/PSOC-4体系结构/实时时钟模块 有ARDINO RTC板可以与PSoC先锋板合作。 HTTPS://www. SPARKFUN.COM/PROSPIDS/12708 问候,Dana。 ** Weil编辑。我已经改变了第一个链接到CyPress论坛条目Dana想要链接到。原来的链接是开玩笑的。CGSLB。COM并不是真正的CyPress半导体网络特性。 以上来自于百度翻译 以下为原文 This might help - http://www.cypress.com/forum/psoc-4-architecture/real-time-clock-module There are Arduino RTC boards that could work with PSOC Pioneer board. https://www.sparkfun.com/products/12708 Regards, Dana. ** Edit made by Weil. I have changed the first link to the Cypress.com forum entry Dana wanted to link to. The original link was for joker. ccgslb. com which is not a real Cypress Semiconductor web property. |
|
|
|
向量元素加我以为你只是想在1小时的指示把LED然后转了10分钟然后再次打开20秒。这就是第一篇文章中所说的。我的解决方案仍将为任何时间的PWM工作将运行在一个有争议的模式。但如果你想设置警报,其他时间就需要一个软件解决方案。
以上来自于百度翻译 以下为原文 Vead I thought that you just wanted to have an indication at 1 hour turn led on then turn led off for 10 minutes and then turn it on again for 20 sec. That was what was stated in the first post. My solution would still work for any tine as the PWM would run in a contentious mode. But if you want to set the alarms for other times then you would need a software solution. |
|
|
|
|
|
|
|
当您在Cyror的CyDWR文件中打开时,您将看到I2CY1组件已经连接到默认的P1P7和P1Y5引脚。
您可以将输出引脚放置在您的示意图上,命名为“LED”,移除“硬件连接”检查并选择。现在,您可以使用LeDyWrad(1)打开LED和LeDyWrad(0)关闭它。 鲍勃 以上来自于百度翻译 以下为原文 When you open in Creator the .cydwr file, you will see that your I2C_1 component already is connected to pins P1_7 and P1_5 which is the default. You may place an output pin on your schematic, name it LED, remove the "Hardware Connection" check and select in .cydwr Pin1_6 which is the LED. Now you can use LED_Write(1) to turn the LED on and LED_Write(0) to turn it off. Bob |
|
|
|
欢迎来到论坛!
当您进入“DS1307”在“关键字搜索”字段的顶部时,您会发现一些提示将RTC与PSoC4接口。 要启动一个新的顶层设计,使用创建者& GT;文件& GT & GT;项目…,然后选择PSOC4 4000/4200项目并打开“高级”选项卡。在此选择一个可引导加载的项目。您可以根据需要修改新项目的名称和位置,然后单击“确定”。 鲍勃 以上来自于百度翻译 以下为原文 Welcome in the forum! When you enter " Ds1307 " in the "Keyword Search" field at top of this page you will find some hints to interface the RTC with a PSoC4. To start a new top design use Creator -> File -> New -> Project..., then select a PSoC4 4000/4200 project and open the "Advanced" tab. Select here a Bootloadable project. You may modify the name and the location of your new project to your needs, then click OK. Bob |
|
|
|
你好,
我在网上搜索过。我试着自己写程序。但我不确定我会走上正确的轨道吗? 设置报警10秒(自动打开LED 10秒) C程序 无效I2CyIn(){SL==1;SCL=1;}启动I2C{SDA=0;SCL=0;} I2CX Wrad()/ /发送数据到DS1307 {I2CX写(0xD0);/ /地址为DS1307)I2CX写入(0x00);/ /秒寄存器I2CX写入(0x10);和/ 10数据为10秒}无效I2CyAck(){SDA的= 0;SCL = -1;SCL = 0;SDA = -1;无效i2c_stop() /停止I2C { SCL = 0;SDA = 0;SCL SDA = = 1;1;} { void i2c_start() SDA = 0;SCL = 0;} i2c_read() { i2c_write(0xd1);该DS1307 / /地址)i2c_write(0x00);秒登记i2c_write /地址(0x10);/ /十DAT一个10 i2c_nak() {二}无效SDA = 1;SCL = 1;SCL SDA = 1 = 0;}无效;i2c_stop() /停止I2C { SCL = 0;SDA = 0;SCL = 1;SDA = 1;} 以上来自于百度翻译 以下为原文 Hello, I did some search on internet. and I tried to write program myself . but I am not sure that I am going on right track ? Set alarm for 10 second (automatically turn on LED for 10 second ) C Program void I2C_Init() { SDA = 1; SCL = 1; } void I2C_Start() // start I2C { SDA = 0; SCL = 0; } I2C_write() // send data to Ds1307 { I2C_write(0xD0); // address of the DS1307 ) I2C_write(0x00); // address of seconds register I2C_write(0x10); // 10 data as 10 second } void I2C_Ack() { SDA = 0; SCL = 1; SCL = 0; SDA = 1; void I2C_Stop() // stop I2C { SCL = 0; SDA = 0; SCL = 1; SDA = 1; } void I2C_Start() { SDA = 0; SCL = 0; } I2C_read() { I2C_write(0xD1); // address of the DS1307 ) I2C_write(0x00); // address of seconds register I2C_write(0x10); // 10 data as 10 second } void I2C_Nak() { SDA = 1; SCL = 1; SCL = 0; SDA = 1; } void I2C_Stop() // stop I2C { SCL = 0; SDA = 0; SCL = 1; SDA = 1; } |
|
|
|
您可以查看Pinterest和类型,您可以如何工作的PSoC 4,然后点击图片,然后点击图片再次,它会带你到网站,它将显示如何工作PSoC4。
以上来自于百度翻译 以下为原文 You can look at pinterest and type in how you can work the psoc 4 and click on the picture then click on the picture again and it will take you to the website and it will show how to work the psoc4 |
|
|
|
在PSoC 4中,有些引脚有固定的分配,其他的是GPIO,就像您的
LED引脚,在引脚标签,你可以把它放在另一个引脚(非冲突) 通过分配PIN赋值来完成其他任务。本AP表格中的表格 固定分配- HTTP://www. CyPress?COM/?RID=93401 AN864—PSOC®4 -使用GPIO引脚 问候,Dana。 以上来自于百度翻译 以下为原文 In PSOC 4 some pins have fixed assignments, others are GPIO, like your LED pin, and in the pins tab you can place it on another pin (non conflicting with other assignments) by editing the pin assignment. Table in this ap note of fixed assignments - http://www.cypress.com/?rID=93401 AN86439 - PSoC® 4 - Using GPIO Pins Regards, Dana. |
|
|
|
|
|
|
|
打开创建者,使用“查找示例项目”,并查看如何
完成了I2C项目。 问候,Dana。 以上来自于百度翻译 以下为原文 Open up Creator, use "Find Example Project", and look at how an I2C project is done. Regards, Dana. |
|
|
|
|
|
|
|
|
|
|
|
谢谢你帮助我
我做了谷歌搜索,发现了很多结果。我正在阅读一些PDF文件。一般来说,我知道我需要控制器,电阻器,外部振荡器,RTC IC。但我不明白如何在Psoc creator上设计设计? 如何创建设计,我需要在设计中使用什么组件? 以上来自于百度翻译 以下为原文 thank you for helping me I did google search I found many results. I am reading some pdf files. as general I know I need controller , resistor , external oscillator, RTC IC.. etc but I don't understand how to create design on Psoc creator ? how to create design , what component I have to use in design? |
|
|
|
好吧,我看了一些项目之后,我做了一些工作。
启动I2C 启动DS1307 DS1307的写入地址 第二寄存器的写入地址 韦尔特数据(10秒) 读取DS1307的地址 阅读注册地址 读取数据(10秒) 打开LED 10秒 包括: 包括“UTIL.H” 空隙I2Cin(空隙) { /启动I2CHW I2CHWWSTART(); //启用I2C中断 I2CHWYNEABLIN(); //启用主配置中的I2CHW模块 I2CHWYNEABLAMP(); } /*启动RTC */ RTCSSTATE(); RTCI写入文件(0x07); //必须写入数据的字地址 设置时间:地址=0x00; //此函数用于设置时间和日期。 /设置秒(BCD格式) 设定时间秒=0x10; 以上来自于百度翻译 以下为原文 ok I saw some project after that I did some work start I2C start ds1307 write address of ds1307 write address of second register werite data (10 second ) read the address of ds1307 read the address of seond register read data (10 second ) turn on LED for 10 seconds #include #include "utils.h" void I2C_Init(void) { // Start the I2CHW I2CHW_Start(); // Enable the I2C interrupt I2CHW_EnableInt(); // Enable I2CHW module in Master configuration I2CHW_EnableMstr(); } /* Start RTC */ RTC_Start(); RTC_WriteReg(0x07); //Word Address from where data has to be written SetTime.Address = 0x00; // This function is used to set the time and date. // Set the seconds (BCD format) SetTime.Seconds = 0x10; |
|
|
|
你好可爱的熊
欢迎来到这个论坛。我也是初学者。我喜欢这个套装。我希望你能享受PSoC 4的工作。 这里是那些乐于助人的贪婪的人们… 以上来自于百度翻译 以下为原文 Hello cutty Bear welcome to this Forum. I am also begainer. I like this kit. I hope you will enjoy working with Psoc 4 . here are greate peoples that are ready to help you ... |
|
|
|
我会让R的SCL,SDA拉普拉更像4.7K。
问候,Dana。 以上来自于百度翻译 以下为原文 I would make the R's for the SCL, SDA pullups more like 4.7K. Regards, Dana. |
|
|
|
许多教程视频在这里-
HTTP://www. CyPress?COM/?ID=1162和源= HOMETH支持视频培训 101系列好起点。 HTTP://www. CyPress .COM/PSoCoCalto/C造饰者 问候,Dana。 以上来自于百度翻译 以下为原文 Many tutorial videos here - http://www.cypress.com/?id=1162&source=home_support Video Training The 101 series good starting place. http://www.cypress.com/psoccreator/ Creator Regards, Dana. |
|
|
|
动物食品???????我的翻译似乎哽咽了。
鲍勃 以上来自于百度翻译 以下为原文 Stuffs = animal food?????? My translator seems to choke. Bob |
|
|
|
在我的CY8CKIT-04942XXX的示意图中,LED连接在引脚P1Y6和GND之间,你们的外观是否不同?
鲍勃 以上来自于百度翻译 以下为原文 In my schematic of CY8CKIT-049-42xxx the LED is connected between pin P1_6 and GND, does yours look different? Bob |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2113 浏览 1 评论
1858 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1793 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
580浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
432浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
444浏览 2评论
391浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
993浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 01:10 , Processed in 1.720009 second(s), Total 115, Slave 98 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号