You are here

Configure system Clock | Cypress Semiconductor

Configure system Clock

Summary: 30 Replies, Latest post by Dheeraj.Kurada_1603981 on 11 Mar 2016 10:27 AM PST
Verified Answers: 2
Last post
Log in to post new comments.
user_444739275's picture
User
106 posts

Hello

actually I want to do following example project

Psoc creator -> File -> Example Project -> rtc design  (psoc 3)

I am trying to setup system clock for psoc 4

How to setup system clock for RTC  ( Psoc 4)

 

 

Attachments: 
user_1377889's picture
User
10803 posts

On the start page of Creator 3.2 use "Find Example Project", select from Device Family "PSoC 4200" or 4200M whichever you've got) and choose project name "RTC...".

The PSoC4 implementation differs much from the PSoC3/5. Do not expect much accuracy without a crystal and keep in mind that RTC will not work when powered off.

 

Bob

user_444739275's picture
User
106 posts

I did same as you told  , please  look at image,  my question is How to setup system clock for RTC  ( Psoc 4)

user_242978793's picture
User
1485 posts

Here is a program example and it has a Pdf file included with it that explains how to set up the clocks.

user_242978793's picture
User
1485 posts

Vead: Bob is right if you want the clock to be accurate then you will need to add a crystal to the PSOC 4. I found this example to be fairly accurate but it did loose some time after a few days.  Read the clock on this example with a terminal program such as PUTTY.

user_444739275's picture
User
106 posts

 

 

 

I just want to see that PSOC can work with RTC software component.  I saw project example. .  I will post program in my next  post.I tried to set RTC clock  Please look following images.

Q1 where to connect LCD  PORT pins ?

user_1377889's picture
User
10803 posts

@vead

When you provide us with your complete project as an archive it is quite more easier for us to help you. All datasheets we have to check will be just a mouse-click away, some modifications and a build and we can see if that was correct and in the last stage when your project was built for one of those development kits we can check that also.

Regarding the character LCD: That component needs one port (7 bits) which you may select from the available, but spare port4 (it has got special routing) and port2 (which is mostly used for analog and Mux). There is a component that does not depend on a single port, so have a look here.

 

Bob

user_444739275's picture
User
106 posts

Ok I am posting my project . my code is incomplete and also I am not sure that my pin configuration is correct. please check my project

Attachments: 
user_1377889's picture
User
10803 posts

It would be much easier for you to modify the example project as I showed in my first response. You will only have to change the UART output to the appropriate LCD APIs.

One thing is a bit weird: You are using a BootLoadable component version 1.40 while in my latest update of Creator 3.2 SP1 I can only get a BootLoadable v 1.30

Do you have got a character LCD or are you using an LCD glass? (Link to datasheet)

 

Happy coding

Bob

user_444739275's picture
User
106 posts

There are four example projects for RTC . are you talking about RtcDesign or RTC_P4_WDT_Example ? which one I have to modify ?

I have a jhd 162A LCD

 

user_1377889's picture
User
10803 posts

I provided you with exact steps to select the appropriate project in my first post:

"On the start page of Creator 3.2 use "Find Example Project", select from Device Family "PSoC 4200" and choose project name "RTC..."." This will leave you with only a single RTC-project. The clock settings are made in software.

The character LCD component is made for a Hitachi 44780 standard controller and I am not quite sure if this will work together with your 162a LCD. *** Update *** I just found a thread showing that you got the LCD working ***

Which development kit / prototype board have you got? CY8CKIT??????? please specify exact number.

Are you already using Creator 3.2 SP1? If not, use Cypress Update Manager to get the latest version.

 

Happy coding

Bob

Log in to post new comments.