Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > UART/RS485 communication

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



UART/RS485 communication
Moderator:
ANCY

Post Reply
Follow this topic



UART/RS485 communication

stoyan posted on 14 Jan 2011 2:59 PM PST
Senior Member
14 Forum Posts

Hi all,

I am experiencing some troubles making RS485 communication through UART. I am using First Touch Kit and Ti ISO3086 driver. I am connecting the RE and DE short, and they are connected to Tx_E out of the UART. D of the driver is connected to the TX and R is connected to RX of the UART. The program code that I am using is quite simple.

test = UART_485_ReadRxData ();
        if (test !=0 )
        {
            UART_485_WriteTxData (test);
        }

I am missing something (probably in the configuration of the UART or in the firmware code). I have managed to make it send data (as a second device I am using RS485 to RS232 converter and Hyper Terminal), but can’t make it receive some data. The driver was configured as a Half Duplex. If I want to make it work as Full Duplex, how should I connect the output of the UART and the input of the driver? What should be the configuration of the UART in this case?

I will appreciate any help!

Thanks in advance!




Re: UART/RS485 communication

kiku posted on 18 Jan 2011 08:26 AM PST
Cypress Employee
61 Forum Posts

Hi,

 

Can you please attach your project file or create a Technical Support case with the project?

 

Regards,

Kishore.



Re: UART/RS485 communication

stoyan posted on 18 Jan 2011 09:10 AM PST
Senior Member
14 Forum Posts

Hi,

I have created technical support case. I am still working on the problem. If I have any success with it I will post.

Thanks,



Re: UART/RS485 communication

kiku posted on 18 Jan 2011 09:57 AM PST
Cypress Employee
61 Forum Posts

 Ok That's great !!

 

--

Kishore.



Re: UART/RS485 communication

Habib. posted on 20 Jun 2011 05:36 AM PST
Member
4 Forum Posts

Hi

I am also facing the same problem , I am able to receive it ,but problem is that it is not the same data what i am transmitting .

check at your end : to receive the code you have to make DIR (i.e - RE and DE both short)

when you are transmitting make it high and while receiving make it low .

if you found any other way inform me too ,I am working on same if i Get sucess i'll share it

 

Regards

Habib



Re: UART/RS485 communication

markus68 posted on 28 Nov 2011 08:33 AM PST
Member
9 Forum Posts

hello

I am diving in the same pool. ;-)

want to use RS-485 for easy machine-2-machine communications.

a few days passed by since this topic was started. any sucess in the meantime?

is there an AN or CE for that oftem to come demand ?

 

b.r.

Markus

 



Re: UART/RS485 communication

H L posted on 28 Nov 2011 02:52 PM PST
Top Contributor
679 Forum Posts

Can you specify what is your problem? uploading your project would be helpful for others to see what's wrong. :-)






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