PDA

View Full Version : RS 485 using 16F84A



ngeronikolos
- 18th May 2005, 08:19
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?

ngeronikolos
- 18th May 2005, 14:46
A question?

Can I read the serial RS-485 stream using the 16F84A?Or I have to use PIC with hardware USART?

It is necessary to use rs485 converter?

Please help me