element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#04 - USB-UART Utility
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Cypress Kits requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 24 subscribers
  • Views 2158 views
  • Users 0 members are here
  • pioneer
  • 100projects
  • kit
  • arduino
  • cypress
  • 4
  • psoc
Related

PSoC 4 Pioneer Kit Community Project#04 - USB-UART Utility

cy.wbz
cy.wbz over 10 years ago

Hello folks!

 

Today's community project hightlights a very useful utility on the PSoC 4 Pioneer Kit. Often times, I like to spit out some data over UART, then read that data on my computer using a hyperterminal program - great for some quick and dirty debugging. This pioneer kit has a built-in USB-to-UART utility programmed on the PSoC 5LP device (the onboard debugger for the target PSoC 4) that allows you to do just that, over the USB port.

 

This project demonstrates UART communication over the kit USB-UART Bridge. The project uses the Serial Communication Block (SCB) based UART component which sends the string "CY8CKIT-042 USB-UART" and also loops back the data sent over the COM terminal software.

 

Project Schematic:

 

image

                           (Actual PSoC Creator   Schematic "TopDesign.cysch")

image

                                         (PSoC Creator   UART Component Configuration)

 

Software   Setup:

 

See Steps 1-6 from the main post.


The main.c firmware in this project is very simple, it simply sends character data over the UART whenever the TX buffer is filled.

image

                                                      (PSoC Creator main.c firmware)

 

 

 

Hardware   Connections:

You will need to wire the UART TX and RX pins between the PSoC 4 and the PSoC 5LP on the pioneer kit (See picture below).

PSoC 4 UART RX P0[4] --> PSoC 5LP P12  [7] (on J8)

PSoC 4 UART TX P0[5] --> PSoC 5LP P12  [6] (on J8)

 

image

 

Once programmed with this project, your PSoC 4 Pioneer Kit is setup to send data over USB-UART. The board enumerates as a COM Interface, the number of which can be seen in Windows Device Manager. In my case, it enumerated as COM8. You will need this COM# to allow a program like Putty or HyperTerm to communicate with your board.

image

(The PSoC 4 Pioneer Kit enumerates as a COM device - COM8 in my case, your COM number may be   different)

 

 

You can use any hyperterminal software you'd like. The example below shows how to setup Putty (freeware).

 

imageimageimage

 

(Putty Configuration - Setting up Serial Session, Selecting COM port, Forcing 'Local Echo' to "On")

 

 

Once the board is running and connected to Putty, pressing the reset button will display the string "CY8CKIT-042 USB-UART" in Putty's terminal window.

Typing any character will be echoed-back. You can see the "HHEELLOO AA BB CC...." text below as an example of what I typed in and was echoed-back by the PSoC 4.

image

             (Putty in action - displays the kit name string, also echos-back any characters typed)

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I hope this example can help you out in your design.

 

Best,

Matt

Attachments:
USB-UARTexample project.zip
  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 10 years ago

    Thx for your project! But after I downloaded the program,the computer showed that it doesn't have USB_UART drive.Can you help me?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 10 years ago in reply to Former Member

    Hello  Rui Zhang.

    please uninstall the psoc 4 kit and install again. i have test this project,  it works. Check in device manager the port number that is using the pioneer kit(in my own case it is using com13) to make the configuration of your system terminal, i am using hyperterminal.

     

    I hope my answer can help you.

     

    Best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jesusantoniocar
    jesusantoniocar over 10 years ago in reply to Former Member

    Hello  Rui Zhang.

    please uninstall the psoc 4 kit and install again. i have test this project,  it works. Check in device manager the port number that is using the pioneer kit(in my own case it is using com13) to make the configuration of your system terminal, i am using hyperterminal.

     

    I hope my answer can help you.

     

    Best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to jesusantoniocar

    Thank you very much.I changed my OS and solved the problem.

     

    Best,

     

    Rui Zhang.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube