Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > 8-bit Serial Communication

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



8-bit Serial Communication
Moderator:
ARVI

Post Reply
Follow this topic



8-bit Serial Communication

Srinath posted on 06 Feb 2012 4:46 AM PST
Top Contributor
34 Forum Posts

 I'm trying to read data from the windows hyperterminal and display it on an LCD but was stuck with this code

Can u please help, the zipped file is posted below. Thank you guys 

 




Re: 8-bit Serial Communication

Bob Marlowe posted on 06 Feb 2012 09:11 AM PST
Top Contributor
1768 Forum Posts

First : do you use a level-shifter (Max232 or similar) to convert the 0-5V fromPSoC to +- 12V used for the serial interface on a PC?

It looks a bit that your Baud-rate is off the usual settings. I would prefer to use a 16-bit timer to generate baud-rate, makes you a bit independant from the VC1,2 and 3 dividers.

You are using the command-feature implemented in software which is (yet) no longer supported in PSoC3 and 5. This feature "eats" some of your characters you type which you may not want. I would suggest to try:

Disable the RxCmdBuffer

Do not enable the Interrupt.

Remove all references to  CmdReset()

Do not test the status for a hex-value, use RX8_RX_COMPLETE instead, this helps when using different hardware.

Hope that helps

Bob



Re: 8-bit Serial Communication

Bob Marlowe posted on 06 Feb 2012 01:05 PM PST
Top Contributor
1768 Forum Posts

I just see, I have forgotten to disable the command-buffer.

Bob






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20