sujaypaichar
Newbie level 2
Dear friends, as title says, I want to read CAN signals from a CAN bus. My hardware connectionis like this.
CAN module (CAN HIGH and CAN LOW)----------->MCP 2551------------>MCP2515------------------->PIC microcontroller
MCP 2551 config:
TXD connected to TXD of MCP 2515
RXD connected to RXD of MCP 2515
Pin 7 connected to CAN HIGH
Pin 6 connected to CAN LOW
Pin 8 connected to ground through a 10 ohm resistor
Pin 2 and 3 connected to gnd and vcc-5v
MCP 2515 config:
SCK connected to SCK of PIC microcontroller
SI to SO of PIC
SO to SI of pic
CS to Port C.0 of PIC
Microcontroller: Amicus PIC 18F25K20 (Programming software- Amicus IDE)
I also have NXP P89V51RD2 8051 microcontroller.
I got many example programs in the net but I am not able to read the CAN signals.
It would be very helpful if someone can send me the programs if you have it. Even if the programming lang is 'C', it is acceptable. I am trying to complete this from past 1 month
I need to read the data from CAN bus and send data at particular time. The CAN bus may send signals at 500Kbaud or 1MBaud rate. It might be standard CAN or extended CAN.
Please somebody help me with this.
If any other details are required, please let me know.
CAN module (CAN HIGH and CAN LOW)----------->MCP 2551------------>MCP2515------------------->PIC microcontroller
MCP 2551 config:
TXD connected to TXD of MCP 2515
RXD connected to RXD of MCP 2515
Pin 7 connected to CAN HIGH
Pin 6 connected to CAN LOW
Pin 8 connected to ground through a 10 ohm resistor
Pin 2 and 3 connected to gnd and vcc-5v
MCP 2515 config:
SCK connected to SCK of PIC microcontroller
SI to SO of PIC
SO to SI of pic
CS to Port C.0 of PIC
Microcontroller: Amicus PIC 18F25K20 (Programming software- Amicus IDE)
I also have NXP P89V51RD2 8051 microcontroller.
I got many example programs in the net but I am not able to read the CAN signals.
It would be very helpful if someone can send me the programs if you have it. Even if the programming lang is 'C', it is acceptable. I am trying to complete this from past 1 month
I need to read the data from CAN bus and send data at particular time. The CAN bus may send signals at 500Kbaud or 1MBaud rate. It might be standard CAN or extended CAN.
Please somebody help me with this.
If any other details are required, please let me know.