Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > UART on CY8C5588AXI

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



UART on CY8C5588AXI
Moderator:
ANCY

Post Reply
Follow this topic



UART on CY8C5588AXI

Doacn posted on 04 May 2011 5:48 AM PST
Member
10 Forum Posts

Hello,

 I have this new PSoC 5 FirstTouch starter kit and I have been play around with it. However, I can not find a tutorial session that will allow me to set up UART on this starter kit. I am wondering if anybody can help (guide) me through on how to set up UART on CY8C5588AXI PSoC 5 Device. I know so far how to get the UART component but as far as which pins need to be connect in order to enter ASCII through hyperterminal is where I am at the dead end. Thanks in advance for your help. I am the beginner of this product.  




Re: UART on CY8C5588AXI

Gautam Das posted on 05 May 2011 10:36 PM PST
Cypress Employee
742 Forum Posts

Hi Doacn,

 

You can refer to the example project available along with the Creator.

Right Click on the UART component in the component Catalog and choose 'Find Example Project'.

You can Choose UART_Rx or UART_Tx for project on Receiving or Transmitting respectively.

However you can tweak around with this basic project to fit your requirement.

 

To make this project work for PSoC5, choose the appropriate device.

In Workspace, right click on the project and select 'Device Selector'.

In the 'Select Device' tab that pops up, select the PSoC5 device which is available on the First Touch Kit (which is most likely tot be CY8C5588AXI-060).

 

Now, choose pins appropriately in the .cydwr of the project. FTK has pinouts in the form of headers. P0, P6, 4 pins of P4, and 4 pins of P12 are available. Choose the Rx and Tx pins from any of these pins according to your convenience. There is no restriction on which pin to use for Rx and Tx.

 

Once this is done, you need to communicate with the PC. If you are using a virtual COM Port having TTL pins available, then you can connect those pins to the Rx and Tx of FTK directly and Voltage level shifter is not required.

Else, you need to use external MAX232 Voltage level converter to convert the voltage level of PSoC5 pins to RS232 level.

 

Let us know if this works.

 

Regards,

dasg



Re: UART on CY8C5588AXI

kabhijit posted on 07 May 2011 06:44 AM PST
Top Contributor
31 Forum Posts

I was able to get a basic RX/TX working with the UART. However there's one thing thats got me flummoxed... The reset terminal on the UART block in the TopDesign.cysch is connected to a logic zero block. What if I want to assert a reset through software?

 

Thanks,

~Abhijit



Re: UART on CY8C5588AXI

Gautam Das posted on 08 May 2011 09:50 AM PST
Cypress Employee
742 Forum Posts

Hi Abhijith,

 

The UART component can be controlled using Control Register.

 

You can connect a Control Register at the Reset Terminal and control it through software by setting the Control Register value to either High or Low.



Re: UART on CY8C5588AXI

U2 posted on 08 May 2011 09:57 AM PST
Cypress Employee
589 Forum Posts

This can be achieved using a Control register as shown in the picture attached. A control register can be connected to the reset terminal, it can be configured for 1 bit. Writing a one followed by a zero using the API, Control_Reg_Write() will reset the UART component. However note that the reset pulse needs to be long enough for reset operation to occur. Also the reset input is a synchronous reset, hence setup time requirement should be met.

The reset input is synchronous, requiring at least one rising edge of the component clock. Setup time should be added to guarantee not missing the reset signal.

Please go through the UART component datasheet if more information is required about timing constraints of the component.



Re: UART on CY8C5588AXI

U2 posted on 08 May 2011 09:59 AM PST
Cypress Employee
589 Forum Posts


Re: UART on CY8C5588AXI

U2 posted on 08 May 2011 09:59 AM PST
Cypress Employee
589 Forum Posts

 Picture attached now.



Re: UART on CY8C5588AXI

kabhijit posted on 16 May 2011 04:38 AM PST
Top Contributor
31 Forum Posts

wonderful... thanks, both of you!

~Abhijit



Re: UART on CY8C5588AXI

Doacn posted on 20 May 2011 08:19 AM PST
Member
10 Forum Posts

Thanks Dasg,

  I am finally back on this project. I had done all the necessary steps using the PmodRS232 converter. However, I am not quite sure why I am not able to see the result through hyperterminal. I had done the necessary configuration in the hyperterminal, built and program into CY8CKIT. I am not sure what I am missing even I had followed through the steps. Any ideas that I might be missing?

Thanks in advance!

Doacn



Re: UART on CY8C5588AXI

Fernan posted on 01 Jun 2011 12:41 PM PST
Senior Member
13 Forum Posts

 Hi Doacn,

I am also a beginner in this technology, PSoCs, in order to do my final studies project.

My objective is also to comunicate, through RS232, psoc with hyperterminal in windows xp. I have achieve to send data from hypert. to psoc but not backward. I have the level shifter MAX232, do anybody know how to configure TTL in order to avoid the use of the level shifter?

Doacn, have you achieved to send data in any direction?

Greetings!



Re: UART on CY8C5588AXI

pavloven posted on 02 Jun 2011 12:25 AM PST
Top Contributor
78 Forum Posts

Hi Fernan,
It is possible to use the standard circuit.
But it is more convenient to me to use a cable from old phone on PL2303 it has TTL inputs and outputs.
My PC doesn't answer only for the speeds 19200 (CY8CKIT-014)
I hope the circuit has no errors ;)
Successes in study!



Re: UART on CY8C5588AXI

Fernan posted on 03 Jun 2011 01:19 PM PST
Senior Member
13 Forum Posts

 Hi pavloven,

Thank you for the schematic, I will check it as fast as possible.

Respect to the second option, it only consists in using this special cable (PL2303), doesn't it? I don't understand the explanation of Dasg, which says to use "a virtual COM Port with TTL pins available" and to connect them to the Rx and Tx, is it referring to the special cable PL2303 that you propose or something else?

Thank you!



Re: UART on CY8C5588AXI

pavloven posted on 04 Jun 2011 01:30 PM PST
Top Contributor
78 Forum Posts

Older phones like Samsung S220 Samsung C100 Samsun SGH X100 SAM300 and the Mot E365 and others had TTL Rx and Tx conclusions.

 they can be connected to a computer using a special cable that creates RS232_TTL. When you connect the cable to the PC creates a virtual COM port wrote about it Dasg.

If you have a similar cable as shown:


You should:

1. Install the driver:

http://www.prolific.com.tw/eng/downloads.asp?id=31


2. TTL Rx and Tx wire that connects to the phone connected to the Rx and Tx UART of CY8C5588AXI


I turned this cable into a universal device (Russian language):

http://mylab.wmsite.ru/moi-razrab/ustrojstva-na-usb/usb-rs232_ttl


And I did on CY8CKIT-014 PSoC ® 5 hardware for my simple single-channel oscilloscope:


PSoC_OSC_12bit.zip


There are other converters (FTDI 232, MOXA, etc) but I did not use them.

Good luck!

 



Re: UART on CY8C5588AXI

Fernan posted on 14 Jun 2011 10:32 AM PST
Senior Member
13 Forum Posts

Ok,

Thank you pavloven!

I have understood it, but I don't have any cable like that, so I keep trying with the MAX232 that I already have. I hope my problem of comunication PSOC -> Hypert. isn't because of the converter.

Thank you another time!

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20