Hello,hello,hello my friends,
My project is to read a protocol from a device and display the DISPLAY DATA using the PIC 16F84A.
That is the code like :
ELECTRICAL
RS 422/ RS 485
8 bit data
1 stop
even parity
38.4k baud
----------------------------------------------------------------
| HEADER | CONTROL BYTE | DISPLAY DATA |
----------------------------------------------------------------
Header (1 byte) Display address (0-126) + 80 hex
( control byte and display data will be sent )
Control (1 byte) bit 0 =contact 1 ( 1=on, 0=off )
bit 1 = contact 2 ( 1=on, 0=off )
bit 2 = don't care
bit 3 = don't care
bits 4-5 = brightness data
bit 4 = 0, bit 5 = 0 (0 brightness)
bit 4 = 0, bit 5 = 1 (1/7 brightness)
bit 4 = 1, bit 5 = 0 (1/2 brightness)
bit 4 = 1, bit 5 = 1 (full brightness)
bit 6 = reserved (clear to 0)
bit 7 = cleared to 0
Display Data(16 bytes) 16 displayable ASCII characters
in the range 20 hex to 7E hex.All 16 characters must be sent.
Any idea how I can I read that data info using my 16f84a?
Bookmarks