Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Formatted String Over UART has an error.

(you are viewing a thread; or go back to list of threads)

Formatted String Over UART has an error. (by Ihor Nehrutsa)
This error is SELF-starting of "Formatted String Over UART" instruction.
It's displayed in LDmicro simulation mode.
It is visible if microcontroller are programmed and connected to a COM port of a computer.
"Formatted String Over UART" start to sending a string every time after reset.
Correct operation in this case is: no characters should not be sent to the UART port.
Please examine LDmicro with attached file.
Thu Mar 3 2016, 09:59:32, download attachment frmt_err.ld
(no subject) (by MGP)
It's an old bug, see this topic at the end.

http://cq.cx/ladder-forum.pl?action=viewthread&parent=3532
Thu Mar 3 2016, 10:22:45
(no subject) (by MGP)
That is why the last rung must always be "clear screen" at startup (with a OSR) if you use an LCD.

Can you fix that?
Thx
Thu Mar 3 2016, 10:37:17
(no subject) (by Ihor Nehrutsa)
Thanks, I looked.
But, IMHO, this is another error.
In this case, obviously no characters to be sent in UART.
Rungs has 'Open-Circuit'
and 'Formatted String Over UART' should not work.
Thu Mar 3 2016, 11:19:40, download attachment frmt_err.png
(no subject) (by Ihor Nehrutsa)
image 1
Thu Mar 3 2016, 11:23:39, download attachment frmt_err.png
(no subject) (by MGP)
It is "normal", I have it too.
You cannot, in any way, avoid this.

At startup it's send all the strings and characters to the UART even with open rungs.
Thu Mar 3 2016, 12:47:24
tft display (by smei)
LED (BACKLIGHT) 3.3v
SCK (SCLK) pin 13
SDA (MOSI) pin 11
A0 (DC) pin 9
RESET (RESET) pin 8
CS (CS) pin 10
GND (GND) GND
VCC (VCC) 5v
how to program 1.44 lcd please send me code
Sat Mar 5 2016, 01:18:46, download attachment 1.44tft.jpg
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):