1 2 3 4 Previous Next 48 Replies Latest reply on Apr 12, 2015 2:28 AM by user_444739275

    PSoC 4 with Real Time Clcok

    user_444739275

      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 ..........!

        • 1. Re: PSoC 4 with Real Time Clcok
          user_14586677

          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. 

          • 2. Re: PSoC 4 with Real Time Clcok
            user_1377889

            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

            • 3. Re: PSoC 4 with Real Time Clcok
              user_14586677

              Do a google search "element14 psoc real time clock", there

                 

              are several projects with code you can consider.

                 

               

                 

              Regards, Dana.

                 

               

                 

                  

                 

                       

                 

               PSOC 4 element14.com

                 

                  

                 

                       

                 

                   

                 

                        

                                                         
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

              S No

              Date

              Project Title

              1

              01-May-2013

              Simple Blinking LED

              2

              02-May-2013

              CapSense Slider Example

              3

              03-May-2013

              PSoC 4 Pioneer Kit Annotation Library

              4

              06-May-2013

              USB-UART utility

              5

              07-May-2013

              USB-I2C Utility

              6

              08-May-2013

              Danger Shield with Light Sensor Control

              7

              09-May-2013

              Danger Shield with 7-segment display

              8

              10-May-2013

              Danger Shield Buzzer of Doom

              9

              13-May-2013

              Graphics LCD Display

              10

              14-May-2013

              LCD - Rotating Cube Demo

              11

              15-May-2013

              GLCD Paddle Game

              12

              16-May-2013

              Pioneer Board Oscilloscope

              13

              17-May-2013

              CapSense Button & LED Control with Bridge Control Panel

              14

              20-May-2013

              What was the value? - LED Memory Example

              15

              21-May-2013

              CapSense Proximity Detection

              16

              22-May-2013

              Proximity Theremin

              17

              23-May-2013

              2-Channel OScope with GraphicsLCD

              18

              24-May-2013

              'Catch the Shells' Game with ColorLCD Shield

              19

              28-May-2013

              LED Memory! Part Deux. Just Deux it!

              20

              29-May-2013

              Starter Designs

              21

              30-May-2013

              Fractional Frequency Synthesizer

              22

              31-May-2013

              “Kill The Ghost” Game

              23

              03-Jun-2013

              tinyprintf Example

              24

              04-Jun-2013

              XBee Router Loopback Example

              25

              05-Jun-2013

              XBee Direct IO

              26

              06-Jun-2013

              XBee API RxTx Example

              27

              07-Jun-2013

              XBee RGB CapSense Control

              28

              10-Jun-2013

              “WiFi? Why Not!” Arduino WiFi Shield Example

              29

              11-Jun-2013

              Bluetooth Home Automation System

              30

              12-Jun-2013

              Bluetooth with GLCD

              31

              13-Jun-2013

              Ethernet Shield

              32

              14-Jun-2013

              More Relay!

              33

              17-Jun-2013

              Sweet Music Everywhere! MIDI Shield

              34

              18-Jun-2013

              Resistive Touch Example

              35

              19-Jun-2013

              UART, I2C, and SPI Joystick Example

              36

              20-Jun-2013

              What? I can use the PSoC 5LP too?

              37

              21-Jun-2013

              PSoC With Friends! Word Scramble Game

              38

              24-Jun-2013

              Ultrasonic Distance Measurement

              39

              25-Jun-2013

              Two PWMs for the price of one

              40

              26-Jun-2013

              Pioneer PnP Sensors

              41

              27-Jun-2013

              Thermistor Example

              42

              28-Jun-2013

              Hangman Game

              43

              01-Jul-2013

              Rise of the Machines (Rolling Robot)

              44

              02-Jul-2013

              Run Away Run Away! (Proximity Robot)

              45

              03-Jul-2013

              Stepper Motor Example

              46

              05-Jul-2013

              “Paint The Night” Accelerometer Example

              47

              08-Jul-2013

              Obstacle Avoider Robot

              48

              09-Jul-2013

              Walk The Line! Robot Example

              49

              11-Jul-2013

              Android Device Controlled Robot

              50

              12-Jul-2013

              SD Card Example

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

              S No

              Date

              Project Title

              51

              15-Jul-2013

              Music Player

              52

              16-Jul-2013

              Strike A Pose! Digital Camera

              53

              17-Jul-2013

              PSoC Eye

              54

              18-Jul-2013

              Custom Component 4x4 Keypad

              55

              19-Jul-2013

              Parallel to Serial UDB Component

              56

              22-Jul-2013

              Accelerometer Level

              57

              23-Jul-2013

              Digital Audio From A Single Pin

              58

              24-Jul-2013

              An Introduction to Processing

              59

              25-Jul-2013

              But Wait There’s More! Single PWM with 3 Outputs

              60

              26-Jul-2013

              PSoC 4 Mini-Billboard

              61

              29-Jul-2013

              Nokia 5110 LCD Interface

              62

              30-Jul-2013

              Ready…Set…GO! PSoC Stopwatch

              63

              31-Jul-2013

              Some Like it Hot! PSoC Thermostat

              64

              01-Aug-2013

              Workspace Organization using PSoC Theromostat

              65

              02-Aug-2013

              New to PSoC or the Pioneer Kit? START HERE!

              66

              05-Aug-2013

              LED Blinky Revisited

              67

              06-Aug-2013

              PSoC 4 Getting Started Lab 1 (LED Blinky)

              68

              07-Aug-2013

              PSoC 4 Getting Started Lab 2 (PWM LED)

              69

              08-Aug-2013

              PSoC 4 Getting Started Lab 3 (CapSense UART)

              70

              09-Aug-2013

              PSoC 4 Getting Started Lab 4 (ADC)

              71

              12-Aug-2013

              Get Your Motor Runnin’!

              72

              13-Aug-2013

              TFT Touchscreen Shield

              73

              14-Aug-2013

              TFT Touchscreen Tic-Tac-Toe Game

              74

              15-Aug-2013

              PSoC Creator Training 110

              75

              16-Aug-2013

              PSoC Creator Training 111                                          

              76

              19-Aug-2013

              PSoC Creator Training 112

              77

              20-Aug-2013

              PSoC Creator Training 113

              78

              21-Aug-2013

              PSoC Creator Training 210

              79

              22-Aug-2013

              PSoC Creator Training 211

              80

              23-Aug-2013

              PSoC Creator Training 212/213/214

              81

              26-Aug-2013

              NFC/RFID Shield

              82

              27-Aug-2013

              RFID Reader and Writer Project #2

              83

              28-Aug-2013

              Raspberry Pi Integration

              84

              29-Aug-2013

              State Machines in PSoC 4

              85

              30-Aug-2013

              UART Bootloader in PSoC 4

              86

              03-Sep-2013

              GPS Algorithm

              87

              04-Sep-2013

              Gas Sensor Example

              88

              05-Sep-2013

              Simulation of Gas Sensor Example

              89

              06-Sep-2013

              GPS Example

              90

              09-Sep-2013

              Comparator Example

              91

              10-Sep-2013

              Infrared Remote Control

              92

              11-Sep-2013

              Serial Communications Examples

              93

              12-Sep-2013

              4 Channel Multiplexed Comparator

              94

              13-Sep-2013

              Opamp Dynamic Gain

              95

              16-Sep-2013

              Hibernate and Stop Power Modes

              96

              17-Sep-2013

              P4 Light Sensor Project Design

              97

              18-Sep-2013

              Rice Cooker

              98

              19-Sep-2013

              Thermal Printer

              99

              20-Sep-2013

              I2C Pass Though 'Smart Wire'

              100

              23-Sep-2013

              PSoC 4 Time Square Billboard

              • 4. Re: PSoC 4 with Real Time Clcok
                user_444739275

                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?

                   

                 

                • 5. Re: PSoC 4 with Real Time Clcok
                  user_14586677

                  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.

                  • 6. Re: PSoC 4 with Real Time Clcok
                    user_444739275

                    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 ?

                    • 7. Re: PSoC 4 with Real Time Clcok
                      user_1377889

                      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

                      • 8. Re: PSoC 4 with Real Time Clcok
                        user_444739275

                        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 ?

                           

                         

                        • 9. Re: PSoC 4 with Real Time Clcok
                          user_14586677

                          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.

                          • 10. Re: PSoC 4 with Real Time Clcok
                            user_1377889

                            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

                            • 11. Re: PSoC 4 with Real Time Clcok
                              user_242978793

                              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.

                              • 12. Re: PSoC 4 with Real Time Clcok
                                user_444739275

                                I am atteching zip file. I tried to upload workspace bundle but I couldn't due to some error. I don't understand how to connect component  

                                • 13. Re: PSoC 4 with Real Time Clcok
                                  user_14586677

                                  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.

                                     

                                   

                                     

                                  • 14. Re: PSoC 4 with Real Time Clcok
                                    user_14586677

                                     

                                       

                                     

                                       

                                    SCL and SDA are clock and data respectively on the DS1307.

                                       

                                     

                                       

                                    Regards, Dana.

                                    1 2 3 4 Previous Next