You are here

Where is Example Code for Simple 8-Bit UART Communication Ex. Located? | Cypress Semiconductor

Where is Example Code for Simple 8-Bit UART Communication Ex. Located?

Summary: 18 Replies, Latest post by ReneGarcia2_1764021 on 31 Aug 2016 12:14 PM PDT
Verified Answers: 1
Last post
Log in to post new comments.
ReneGarcia2_1764021's picture
User
10 posts

Pardon the ignorant question. I'm attempting to introduce myself to PSOC UART programming by studying the document entitled, "Simple 8-Bit UART Communication Example – PSoC® 3 / PSoC 5," at link, http://www.cypress.com/file/50321/download. I have one simple question: Where exactly can I find the code examples that it is referring to, such as in the Design Wide Resources section of page 3, which says to " Refer to the Example_UART.cydwr file for the settings," or under the Operation section of the same page, which says, "In this example a flag, ‘flag_keyPress’ is set inside ISR_UART.c."? 

The answer must be obvious, but I'm pulling my hair out trying to find this example code, which is not included in the document. This is totally new to me so I was hoping to study an existing code example this document is referring to.

Thank you.

user_1377889's picture
User
10710 posts

Welcome in the forum!

Creator Start Page -> Find example project

Creator Component Catalog: right click on the component and select "Open Example project"

Creator topdesign right click on the component and select "Open Example project

I would suggest you to set Tx and Rx buffer sizes to ~100 which will use internal interrupts to fetch the data. Use _GetRxBufferSize() and GetTxBufferSize APIs to see if there are already (Rx) or still (Tx) bytes in the buffer.

 

Happy coding

Bob

ReneGarcia2_1764021's picture
User
10 posts

Thank you!

ReneGarcia2_1764021's picture
User
10 posts

In the Creator Component Catalog, I don't find the component, "ADC_DelSig". I previously imported that component into my project, so it shows up in the Workspace Explorer area of Creator, but not in the Component Catalog. I'm not sure how to get it to show up in the component catalog so that I can "Open Example project". Also, I can't drag the ADC_DelSig component from the Workspace Explorer into the TopDesign alongside the UART component, which is why I'm trying to get it into the component catalog.

user_242978793's picture
User
1457 posts

What device are you using? That example no longer exist on the Cypress web site I will try and construct a program for you if you can tell me what device you are using an if you want the ADC or just a TX/RX Uart.

ReneGarcia2_1764021's picture
User
10 posts

Thank you very much for your help, and as I mentioned, I'm looking for code that I can use to learn from since I'm very new to this, so thank you. I'm using Cypress board CY8C5B08LTI-LP097. I appreciate your help.

As a seperate question, does there exist any example on the Cypress website with a simple 8-bit UART where communication is being done between the keyboard, the Cypress board, and a hyperterminal? I'm just curious. I'm also curious why the document itself didn't include the code that it was referring to in the first place.

ReneGarcia2_1764021's picture
User
10 posts

Oh, I forgot to answer the second part to your question. I would like a Tx/Rx Uart which uses the ADC and writes to hyperterminal using interrupts to write something in a write buffer, such as "you pressed the wrong key" if an 's' is not pressed, and writes to hyperterminal an 's' if 's' is pressed, or something like that. This is all so foreign to me. Should I be able to come up with this from scratch? Feeling a bit dumb right now.

user_242978793's picture
User
1457 posts

That is a very old example program and the components are old that is why it is not provided.  Do you mean a CY8C5888LTI-LP097 kit board?

ReneGarcia2_1764021's picture
User
10 posts

Yes, that is exactly it.

user_242978793's picture
User
1457 posts

ADC_DelSig is not used in the PSOC 5LP  it name in the Component catalog is Delta Sigma ADC.

ReneGarcia2_1764021's picture
User
10 posts

The only thing I see in the component catalog of PSOC Creator 3.3 under ADC is Sequencing SAR ADC [v2.40].

Log in to post new comments.