This might help -
There are Arduino RTC boards that could work with PSOC Pioneer board.
** 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.
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.
Do a google search "element14 psoc real time clock", there
are several projects with code you can consider.
PSOC 4 element14.com
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?
Hello Mr. Dana
I have seen , you are one of the most helpful member. I think you didn't understand what I said. look at this in another way
I have uploaded images in my last Post I already said about my project.
I used two comonents in my design bootlodable and I2C I know I need another component . I am asking about component. I don't understand which components I have to used in my design.
could you please tell me the name of components that are going to used in design ?
The only additional component you need will be the output pin that is controlling your LED. Uncheck the "Hardware Connection" and use Pin_Write() to switch the LED on and off (Look at datasheet). Compare your blinking example to see to which pin-number the pin has to be connected.
Hello Mr. Bob
thank you for your quick reply
as you said I am uploading my work. but still confusing. because I have to use RTC chip with PSoC 4 but why we are not using RTC chip in Design ?
Depending on what RTC chip you use it will communicate via
I2C or SPI or UART or 1 Wire ......so you only need the com component
on the schematic, which is what will interface to the RTC chip.
When you upload your work, please use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file. That is more than a picture, the file contains all of your settings, code and wiring.
Your RTC chip has got an I2C interface, so you may rename yours to reflect that as "RTC" or something similar. You will have to make 4 external connections to the chip, I2C clock, data and power.
Why there is no RTC component? I assume there are some 100 different RTCs on the market with various interfaces, commands and connections. So it is easier to let us designers decide which one to take and program the interface ourselfes.
Here is an example that moves the time around the screen with a joy stick. It is a good example and has a good interface to the RTC. http://www.element14.com/community/thread/25071/l/psoc-4-pioneer-kit-community-project035-uart-i2c-and-spi-joystick-example.
If you open the .cydwr file in your workspace explorer then
select the pins tab bottom of screen you will see where
Creator assigned the I2C clk and data pins. Those pins
in turn you wire to your RTC chip, and of course the grounds
between PSOC and RTC must be common.
By the way look at the other tabs, this is general config
for PSOC chip you will use in designs. As an aside the
analog view shows you routing and has an ohmmeter
tool that allows you to measure routes from pins to
components and other interconnected analog stuff.
SCL and SDA are clock and data respectively on the DS1307.