Hi, I'm trying to port a RS-485 application con CAN usign the 18F2580 and 18F4580. Currently, I have two nodes connected and I'm having some trouble making them work, perhaps someone can help me a little. Here's what I have done: The schematic is prety simple, the MCP2551 has its right 5V supply, the TX pin is to the corresponding TX pin at the PIC and the RX at the '2551 is at the Rxpin at the PIC. The pin RS is tied to VSS, that should be "high speed mode". Now the software. I think I mess up a little, so I started over. This is what I'm doing. 1) All port pins are set to 1. All ports are set to digital pins. TRISA = TRISB = TRISC = 0xFF; ADCON1 = 0x0F; 2) CAN registers are initialized (here is where I guess I have an error) CANCON = 0x80; // Request configuration mode while( (CANSTAT & 0xE0) != 0x80 ); // wait for configuration mode ECANCON = 0x00; // Set for Mode 0 (Legacy) RXB0CON = 0x60; // Set to ignore all filters, masks // and errors and still get the mesages BRGCON1 = 0xFF; // Baud rate set to slowest WAKDIS = 1; // Disable WakeUp on CAN CANCON = 0x00; // Request Normal Mode (leave configuration) while( (CANSTAT & 0xE0) != 0x00 ); // Wait for Normal Mode 3) The above is done on both nodes the same exact way. Now I have to options: a) TRANSMITTER: Sends a counter: TXB0D0 = counter; // Load a counter on the transmition register counter += 1; // Increment the counter TXB0SIDL = 0x60; // Load de identifier TXB0SIDH = 0x24; // Load the identifier TXB0REQ = 1; // Request transmition of buffer 0 while( TXB0REQ ); // Wait until transmition is complete togle( LED ); // Togles a led DelayS(1); NOTE: The led does toggle, only when the other node, the receiver is connected to de bus. b) RECEIVER if( RXB0FUL ) { RXB0FUL = 0; togle( LED ); PORTB = RXB0D0; } DelayMs(50); The LED does blinks very little time (3.8uS) when the Transmiter toggles the state of LED, but the RXB0D0 register is always 0x00.... Any tips? Regards, Mauricio -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist