- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello
I am trying to work with RTC component of Psoc 4. I already done LED based project now I want to set alarm for LED using RTC component. but I am getting problem
/* Alarm Date: 29/06/2015 */ D/M/Y
Alarm Time: 15:44:00 */ ( H/M/S)
I am attaching project workspace my program is incomplete tell me atleast five mistakes so that I can reduce the error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Your global interrupts not enabled
2) You need to enable generation for the alarm APIs by ticking the
check box -
You need to setup the clock for the RTC -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. * Enable global interrupts */
CyGlobalIntEnable;
2. alarm APIs
3. how to setup the clock for the RTC ?
when I click on clock component. I show following option thats different from your example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In workspace explorer is yourprojectname.cydwr file, double click that,
then pick clocks tab, edit clock at top, LF clocks tab following that.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Start debugging. See if RTC running, then write test code and try it.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I showed the wrong clock config screen, thats for a BLE part.
Basically you set as follows -
Then in WDT ISR you use the RTC_Update(void) function to inc the clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could use a uart component and read it on the computer or add an LCD component and read the data there. As you are using an CY8CKIT-049-42xx you can't debug the program unless you have a Miniprog3. That is the draw back in using the Cy8Ckit -049-4200 boards. You can also add print statements in the program and read that on the Computer using the Uart component.
BobGoar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Miniprog3 permits you to debug. Unless you are using
a CY8CKIT-042 and that debug is handled by a second processor,
a 5LP family part.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I looked at back side of kit cy8ckit -049-42xx
anyway please look my project work space tell me , can I check RTC component without LCD interacing? I am setting Alarm for LED. If the LED will on for specific alarm I will sure that I am going on correct way
I tryied but I don't understand why LED is not turn On for specific Alarm
vead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you trying to light the Led connected pin_red when an alarm occurs? The PWM_1 is not triggered in the program and You have no code in the program that will trigger an Alarm led.and no way to trigger PWM_1 to light the led. I made a clock program last night for the PSOC 4M and it worked fine. The alarm led came on when the alarm time was reached and lasted for one minute The program also lights a Led each second to tell you it was running. . The program displayed the clock on the Putty terminal on my computer and it seemed to work very well. The PSOC family is great but it takes a lot of though and engineering to get a program to work. You don't have an easy way to debug your program as you are using the PSoc4 4200 kit it makes it hard to troubleshoot your program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to this page, video.cypress.com/video-library/video/PSoC. choose PSOC 4, there are
two videos on blinking an LED.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello
I looked that link. this show the message '' The video you are trying to watch is currently unavailable please check back soon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just tried both videos right now, both showing correctly.
Bob