String not working on physical LCD?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
imtiaz9
Posts: 15
Joined: Sat Aug 10, 2013 7:16 am
Been thanked: 1 time
Contact:

String not working on physical LCD?

Post by imtiaz9 »

on pic16f886 and 2X16 lcd, i convert UINT veriable with value ( 50000) into string display on lcd. simulation is working correct in flwcode but not working on physical hardware. lcd show -15536 value. is this software issue or hardware?
Attachments
20171025_201308_HDR.jpg
20171025_201308_HDR.jpg (19.39 KiB) Viewed 2428 times
Flowcode1.fcf
(6.5 KiB) Downloaded 185 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: String not working on physical LCD?

Post by Benj »

Hello,

This is a software limitation. The ToString$ function converts to a signed int and the LCD Print Number function will do the same.

We fixed it in v6 and v7 so that you can print signed and unsigned numbers right up to 32-bit using the LCD.

The easiest way to fix the problem is to convert the number to a string yourself using a macro. Please see the attached example.
Flowcode1.fcf
(11.83 KiB) Downloaded 202 times

Post Reply