- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
I tried to write a simple project to see if I can use the rtc component in psoc 5lp - 059.
I attached here my project can someone please help me and tell me why the rtc data (min,sec....) stay the same.
***I used uart to see the data on my computer screen.
Thanks!
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I haven't loaded your project (I'm running Creator 4.2 and project won't load from Creator 4.3), but I took a quick look at main.c
You should place RTC_Start() ahead of any calls to the component. So, try placing this line of code immediately after UART_1_Start();
And, did you install a 32.768kHz crystal? The RTC component won't work without it.
Good luck with your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I haven't loaded your project (I'm running Creator 4.2 and project won't load from Creator 4.3), but I took a quick look at main.c
You should place RTC_Start() ahead of any calls to the component. So, try placing this line of code immediately after UART_1_Start();
And, did you install a 32.768kHz crystal? The RTC component won't work without it.
Good luck with your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello to you!
I installed a 32.768kHz crystal before and also tried to place rtc_start() immediately after UART_1_Start();
but it still not working. maybe someone else have a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Although I may be missing the point, (if it's the case, I'm sorry),
I wonder if you have enabled XTAL 32kHz.
To do it, please try
(1) From Workspace Explorer
Select
<Project> > Design Wide Resource > Clocks
Then Double Click inside <Project>.cydwr
When Configure System Clocks Window appears,
please make sure that "XTAL 32kHz" is enabled.
Hopefully this will start your RTC...
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry I already done that it still not working...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> sorry I already done that it still not working...
I'm sorry for hearing that.
Since my CY8CKIT-059 does not have 32kHz Crystal,
I have just tried with CY8CKIT-050, which has on board crystals.
I only changed the place of RTC_Start() to before setTime()
and changed the device to CY8C5868AXI-LP035.
Then the program worked as below
So the good news is that your program works OK with only changing the place of RTC_Start()
then the bad news is that there could be some problem with your hardware,
possibly the connection of the crystal.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry but I enabled the xtal32 and steel not working I dont know what to do
(and change tthe RTC_START(); to the top)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Since the program itself seems to be OK,
I'd think that the 32kHz crystal may not be generating clock.
If you have not done so, referencing the following Application Notes may be of some help.
moto