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 - Receiving data from the UART

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

Receiving data from the UART (by Gigi)
Hi
I'm making a project with PIC16F886 where i need to measure a value by a strain gauge and send the data to a control unit.
The control unit send an address to the PIC with a string of data with other information that should be loaded into memory.
When the address is recognized the PIC reply and sends the data.
The problem is that the UART RECEIVE instruction should have an output that goes to 1 when the data has been received and remain at 1 for one cycle of PLC, instead the output remains always at 0 and there is no way to know when a character is received.
I also tried with the UART RECV: IS AVAIL? but the output remains at 0.
There are bugs on these instructions?
Wed Aug 30 2017, 03:20:02
(no subject) (by MGP)
There are no bugs, the output stays 1 cycletime high when a char is received.
You need to insert a TOF if the output has to stay high for extra time.

Also you can use a set-reset coil.
Wed Aug 30 2017, 08:43:50, download attachment Test- ReceiveChar.ld
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):