You are here

How do I get different outputs on LCD display an in hyperterminal | Cypress Semiconductor

How do I get different outputs on LCD display an in hyperterminal

Summary: 3 Replies, Latest post by StudentA on 23 Sep 2015 12:35 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
StudentA's picture
53 posts

Hello Community,

I am working PSoC 5LP and I am still a beginner so I hope my problem is a simple one for you. I managed to let my attached lcd display show me the results of a simple resistance measurement. I want to collect the values of my measurements for further studies. Therefore I am also using a hyperterminal to watch my output data. So far this is no problem. But unfortunately the display only knows hex-code. So by using hex-code for the lcd display for a degree sign I totally mess up the output data which is shown on the hyperterminal. So my collected data is not usable anymore.

Now my question: How do I manage I get my measured data correctly shown both on my display and in the hyperterminal.

Basically I think the output data is coming first, just the values the PSoC is throwing out. And secondly the lcd display is taking the data and is showing them. Is this simple line of thought right or am I totally wrong?

Thank you very much in advance for your answers!


user_1377889's picture
9281 posts

The magic word is "sprintf()".

The LCD routines already have got a conversion routine for integer to numbers. To read data in HyperTerm (or PuTTY) you need to convert the data to printable ASCII characters which is done best with sprintf(). Instructions for use here.

In Project -> Build settings set Use newlib-nano and use newlib-nano float formatting to TRUE.

In .cydwr -> System make sure that heap is at least 0x0100


Happy coding!


StudentA's picture
53 posts

Thank you!

user_14586677's picture
7646 posts

The formatting string used in sprintf/printf, see attached ref material.


Regards, Dana.

Log in to post new comments.