- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello sir ,
I have cy8ckit -049-42xx Psoc 4 prototyping KIt. I am begainer, recentally I have done LED blinking Project.. now I want to do some more projects. I have Ds1307 real time clock Ic. I want to interface RTC with psoc 4
My task
LED will turn on for 1 houre
LED will turn off for 10 minute
LED will turn on for 20 seconad
I looked component data log But there no RTC component. I don't understand how to make Top design on psoc creator
could someone help me please ..........!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might help -
http://www.cypress.com/forum/psoc-4-architecture/real-time-clock-module
There are Arduino RTC boards that could work with PSOC Pioneer board.
https://www.sparkfun.com/products/12708
Regards, Dana.
** 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do a google search "element14 psoc real time clock", there
are several projects with code you can consider.
Regards, Dana.
PSOC 4 element14.com
|
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many tutorial videos here -
http://www.cypress.com/?id=1162&source=home_support Video Training
The 101 series good starting place.
http://www.cypress.com/psoccreator/ Creator
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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-a....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SCL and SDA are clock and data respectively on the DS1307.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you open in Creator the .cydwr file, you will see that your I2C_1 component already is connected to pins P1_7 and P1_5 which is the default.
You may place an output pin on your schematic, name it LED, remove the "Hardware Connection" check and select in .cydwr Pin1_6 which is the LED. Now you can use LED_Write(1) to turn the LED on and LED_Write(0) to turn it off.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In PSOC 4 some pins have fixed assignments, others are GPIO, like your
LED pin, and in the pins tab you can place it on another pin (non conflicting
with other assignments) by editing the pin assignment. Table in this ap note
of fixed assignments -
http://www.cypress.com/?rID=93401 AN86439 - PSoC® 4 - Using GPIO Pins
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would make the R's for the SCL, SDA pullups more like 4.7K.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my schematic of CY8CKIT-049-42xxx the LED is connected between pin P1_6 and GND, does yours look different?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same schematic, the LED I had not assigned when I posted.
Generic discussion, I do not care what GPIO LED is connected to, one
on the board or external....
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Dana, I fully agree with you. But I was talking about the other side of the LED which is connected to GND while in your schematic it hangs on VDD
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If one is going to drive an LED much better to drive with
N Channel than P Channel, so mentally I always drive
an LED to ground. Unless of course one likes dim
(dimer) LEDs. And by driving to ground more accurate
current control occurs due to the lack of source bulk effect
that otherwise would affect current in the P CMOS output
transistor. Just one more variable to alter design current,
when using P Channel for drive.
And generally lower chip Pdiss due to lower Rdson in the
N Channel.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again,
can someone check my component that I am going to use in my circuit
1. ds1307 Ic
2. resistor 5.6K
3 crystal 32.7.68 kHZ
Thank you for your every help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The resistor color code picture makes them look like 56 ohm,
just double check with an ohmmeter. If you are going to use
1 R for LED, calculate from Rled = (Vdd - Vled) / Iled
Vled typicaly 2V or more.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, I double checked with multimeter . That is 5.6 K resisters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make sure you xatl for the 1307 meets -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the design manual http://www.maximintegrated.com/en/app-notes/index.mvp/id/504.Crystal info and how to hook them up to the IC http://www.maximintegrated.com/en/app-notes/index.mvp/id/58.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This chip has a 1Hz, 4kHz, 8kHz, 32kHz output on pin 7 depending on how it is programmed I was thinking that you could count the 1hz signal in a counter on the psoc and then trigger the LED when you have counted 600 pulses you can light the led and then send it to another counter to count the off and on times. Then you would not need to decode the time from the clock registers. It would be less programming. Here is the data sheet on the RTC and how to program pin 7,http://www.maximintegrated.com/en/products/digital/real-time-clocks/DS1307.html#popuppdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how do you work the psoc 4?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can look at pinterest and type in how you can work the psoc 4 and click on the picture then click on the picture again and it will take you to the website and it will show how to work the psoc4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A site with substantial embedded activity and a lot of PSOC 4 projects
is www.element14.com
|
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello cutty Bear
welcome to this Forum. I am also begainer. I like this kit. I hope you will enjoy working with Psoc 4 .
here are greate peoples that are ready to help you ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stuffs = animal food?????? My translator seems to choke.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh Bob , I am really sorry for my bad wording . actually I want to say that here are many members that are ready to help
anyway , I am attaching project file with hardware picture
external 5 v dc
pin 1, 2 connected with crystal
pin 3 connected with 3.3 v battery
pin 4 connected with ground
p3.0 SCL connected with pin 5
p3.1 SDA connected with pin 6
pin 8 connected with vcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Of course you have to connect power and ground,
and grounds shared.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you look that cydsn projrct File ? all components connections are correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your wiring should look like this -
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
now all work is completed. I only need c code. I did google search, I found all about LCD display. but I need code for LED
My task
LED will turn on for 20 seconad
LED will turn off for 1 houre
LED will turn on for 10 minute
LED will turn off for 1 hours
how to write c program for minute , hours , day and monts ?