String not working on physical LCD?
Moderator: Benj
String not working on physical LCD?
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 (19.39 KiB) Viewed 2453 times
-
- Flowcode1.fcf
- (6.5 KiB) Downloaded 187 times
- 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?
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel