RS-485 UART help please

Status
Not open for further replies.

haxan

New Member
Hi,

I have done RS-485 based UART communication on Atmel 8051 but am not able to do so well in PIC18F4480. The problems i am facing are:

1. I am not able to understand the interrupt handler for Rx.
2. How to send address byte (Which register to modify).
3. How to check if the node was found on BUS.

In 8051, there is a bit TB8 which when set means address bit is received.
And to check if the Node was found, i used to check the bit SM2.

Can please someone tell me which are the register bits in PIC18F.
 
How to set Baud rate in PIC18 in C language?

also, even though i am clearing the Interrupt Flag but somehow it keeps on going in the interrupt over and over again.

Here is my code so far.

 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…