cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

roge_4738861
New Contributor

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!

0 Likes
7 Replies
BiBi_1928986
Contributor II

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.

KIT-059 RTC CrystalKIT-059 RTC Crystal

Good luck with your project.

 

roge_4738861
New Contributor

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?

0 Likes
MotooTanaka
Esteemed Contributor

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 

000-DWR-Clocks.JPG

When Configure System Clocks Window appears,

please make sure that "XTAL 32kHz" is enabled.

001-clock-configure.JPG

Hopefully this will start your RTC...

moto

0 Likes
roge_4738861
New Contributor

sorry I already done that it still not working...

0 Likes
MotooTanaka
Esteemed Contributor

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

002-TeraTerm-log.JPG

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

0 Likes
roge_4738861
New Contributor

sorry but I enabled the xtal32 and steel not working I dont know what to do 

(and change tthe RTC_START(); to the top)

 

0 Likes
MotooTanaka
Esteemed Contributor

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.

https://www.cypress.com/documentation/application-notes/an61290-psoc-3-and-psoc-5lp-hardware-design-...

moto

0 Likes