Author |
Message |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 3:27 pm Subject: need help with RS485 |
Thank you Ttelmah.
It was physical layer problem. Start working after biasing. |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 2:28 pm Subject: need help with RS485 |
Yes, the RE/DE line of SP485E connected to RA0 (J1 in position 1_2).
And this is the code. No echo.
When I hit keyboard on PC, pin A0 changing state from 1 to 0 for 1ms.
I can see data on pin C7, ... |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 1:56 pm Subject: need help with RS485 |
One more thing. kbhit() returning TRUE constantly in RS485 mode. |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 1:54 pm Subject: need help with RS485 |
Compiler version 4.068
#include <16F876A.h>
#device *=16
#fuses HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTECT, PUT
#use delay(clock=18432000, xtal=18432000)
//#use rs232(baud=9600 ... |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 1:39 pm Subject: need help with RS485 |
PCM programmer, thank you for reply.
The hardware is ok. Output of SP485 routed to the 5 pin terminal block (SJ5 and SJ4 are soldered). The terminated resistor R7 is connected (Jumper J3 is ON).
R ... |
Topic: need help with RS485 |
w6bvb
Replies: 11
Views: 18940
|
Forum: General CCS C Discussion Posted: Mon Mar 09, 2009 11:32 am Subject: need help with RS485 |
Hi,
I can not make it work for some reason.
The hardware: http://www.modtronix.com/product_info.php?cPath=108_109&products_id=111
Controller: PIC16F876A
RS485 driver: SP485E connected to PIC a ... |
|