Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Stopping LCD Output.

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



Stopping LCD Output.
Moderator:
RKRM

Post Reply
Follow this topic



Stopping LCD Output.

SenSok posted on 22 Jan 2012 11:46 PM PST
Member
6 Forum Posts

 

I am new to the Cypress PSOC 3. I am writing a ADC program to weigh things, but I am having problems with having the LCD display the last conversion. The program loops and averages the ADC to get an accurate output. I am able to write to the LCD screen, but after the program exits, there is still output on the LCD like the program is still running. How do I stop the program and the LCD at the same time?

 

Thanks in advance.




Re: Stopping LCD Output.

Bob Marlowe posted on 22 Jan 2012 12:53 AM PST
Top Contributor
1768 Forum Posts

The LCD is an electronical independant part and does (as long as there is power supplied) what you want. When you tell it to display something, it will. And if you tell it to display space characters (" ",0x20) it will do as well. so write a routine that clears (with space-characters) the two display-lines or write "Hello Customer" to the display. Afaik there is no explicit clear-function and I did not test if another LCD_Start() will work.

 

Bob



Re: Stopping LCD Output.

U2 posted on 22 Jan 2012 03:39 AM PST
Cypress Employee
589 Forum Posts

As told by Bob, the Character LCD is a dumb thing that does what you tell it to do. Once you print something on a char LCD(which is nothing but writing in to the data registers of the LCD) it gets latched and if the electronics unit(in this case PSoC) that is dricing it turns off the data is still held as long as the LCD does not lose power. There is LCD_Clear() routine that clears the char LCD. Open the Char_LCD.h file to gain access to APIs such as LCD_Clear() and more.






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