2 Replies Latest reply on Aug 6, 2013 2:08 PM by DAB

    PSoC 4 Pioneer Kit Community Project#066 – LED Blinky Revisited

    cy.wbz

      Hello!

       

      Today’s example we are going to revisit our basic LED Blinky project. This week we want to focus on more basic projects that showcase core PSoC functionality. In our past example we implemented a simple PWM used to drive an LED. In the previous example we implemented the LED Blinky example using only our hardware resources. We wanted to show another simple example using a Counter and a Look up Table component.

       

      001 - Project List in Workspace Explorer.png

       

      Forum Post Attachments:

       

      At the bottom of this post we are including the following items:

      • Example Project Zip File
      • Zip File of Images
        • Project Schematic
        • Component Configurations

       

      Components Used:

       

      The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

      • Counter
      • LUT
      • CyClock
      • CyPin

       

      Firmware Description:

       

      The main.c firmware is included in the example project. Please review the commented sections for more details.

       

      As stated earlier, there is no firmware for this project. This LED Blinky examples is a purely PSoC creation. You will not see this on other microcontrollers. We’re able to blink the LEDs using the configurable PSoC hardware with no firmware at all.

       

      Please take a moment to review the project schematic to see the hardware implementation of the LED flashing project. In this example we’ve connected up a simple 3-bit Counter driven by a clock source. The output of the 3 bit counter is driving the inputs on the Look Up Table component. Based on the counter value the LUT will control the outputs on the three LED pins.

       

      This is a great beginner’s example showcasing how the user can connect hardware elements that run independently of the source code to drive functionality. While this example is simple, the concepts here are key to understanding the value of a PSoC. The configurable hardware is designed to not only lower BOM costs by pulling external ICs into the PSoC, but also driving firmware into the hardware.

       

      Hardware Connections:

       

      This is a basic example that makes use of the existing RGB LED on the PSoC 4 Pioneer kit. No external hardware is needed.

       

      Test Your Project:

       

      Build and program the Pioneer kit with the sample project. See the LED’s scrolling through their selections.

       

      I hope this example can help you in your design.

       

      Best,

      Matt