BASACOM and CAN BUS
-
Hello,
Does anyone have a functional example code in Bascom for an microcontroller like Atmega88 or other microcontroller from Atmel without intern CAN hardware to use CAN BUS communication
Thanks
Best regards -
Good morning Sato,
I'm not sure I understand your question! Are you looking for an example of Bascom code with or without CAN?Bernard
-
Hello @Bernard,
I look for a example code in Bascom that use CAN communication. I never used CAN BUS communication, but i needed it for a new project.
Best regards
-
@Sato
Maybe something like this: -
Hello,
I have never used CAN BUS . In the bascom help in "CONFIG CANBUSMODE" there is an example....
Bernard -
@Sato said in BASACOM and CAN BUS:
Hello,
Does anyone have a functional example code in Bascom for an microcontroller like Atmega88 or other microcontroller from Atmel without intern CAN hardware to use CAN BUS communication
Thanks
Best regardsHow about using a CAN transciever, e.g., MCP2551?
https://www.microchip.com/en-us/product/MCP2551
Best regards,
kl3m3n -
Hi @kl3m3n,
Thanks, I know this chip, but never used it
I have done in the last 20 years almost all my projects with Bascom and Atmega and Xmega microcontrollers, but there are no libraries like in the Arduino, you have to code everything from scratch. With the Esp32 this task is easier, for this there is the lib can.h and you only need the soic8 driver for the bus.
The advantage is that the Atmega88PA is cheaper than the Esp32 but I will still think about which one to choose
Thanks for the attempt to help
Regards