Control Area Network (CAN) bus
Posted: Mon Jun 03, 2013 8:41 pm
Hello,
I am using PIC18F458 microcontroller. I am trying to design a small network using CAN bus. I read the microcontroller data sheet and I learned that RB3/CANRX and RB2/INT2/CANTX are two bus for data transmission. My understanding is that we need only two bus for data transmission and reception. When I add CAN module from Flowcode, I see that it is connected through RC6. I am confused here. I also read help file in Flowcode regarding CAN, but could not find answer.
I did some search regarding CAN in youtube and came up a simple microcontroller network. I am attaching a schematic here that I am trying to build. In the schematic there are three micrcontrollers. Microcontroller-1 is connected with a keyboard and two switches (SW); Microcontroller-2 is connected with a LCD display and Microcontroller-3 is connected with a LED. If anyone press a key from keypad, Microcontroller-2 will display that value in LCD. If anyone press SW-1(from microcontroller-1), Microcontroller-3 will turn on LED and by pressing SW-2(from microcontroller-1), LED will turn off.
Let me know if my idea is correct. Any kind of help will be highly appreciated.
I am using PIC18F458 microcontroller. I am trying to design a small network using CAN bus. I read the microcontroller data sheet and I learned that RB3/CANRX and RB2/INT2/CANTX are two bus for data transmission. My understanding is that we need only two bus for data transmission and reception. When I add CAN module from Flowcode, I see that it is connected through RC6. I am confused here. I also read help file in Flowcode regarding CAN, but could not find answer.
I did some search regarding CAN in youtube and came up a simple microcontroller network. I am attaching a schematic here that I am trying to build. In the schematic there are three micrcontrollers. Microcontroller-1 is connected with a keyboard and two switches (SW); Microcontroller-2 is connected with a LCD display and Microcontroller-3 is connected with a LED. If anyone press a key from keypad, Microcontroller-2 will display that value in LCD. If anyone press SW-1(from microcontroller-1), Microcontroller-3 will turn on LED and by pressing SW-2(from microcontroller-1), LED will turn off.
Let me know if my idea is correct. Any kind of help will be highly appreciated.