• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
GUI-O Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login

BASACOM and CAN BUS

Scheduled Pinned Locked Moved
General Discussion
4
7
492
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sato
    last edited by 6 Jun 2023, 12:19

    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

    K 1 Reply Last reply 18 Jun 2023, 18:45 Reply Quote 0
    • B
      Bernard
      last edited by 6 Jun 2023, 20:56

      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

      S 1 Reply Last reply 9 Jun 2023, 15:50 Reply Quote 0
      • S
        Sato @Bernard
        last edited by 9 Jun 2023, 15:50

        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

        G 1 Reply Last reply 12 Jun 2023, 13:43 Reply Quote 0
        • G
          gammda @Sato
          last edited by 12 Jun 2023, 13:43

          @Sato
          Maybe something like this:

          https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13842&highlight=canmob

          1 Reply Last reply Reply Quote 0
          • B
            Bernard
            last edited by 12 Jun 2023, 15:43

            Hello,
            I have never used CAN BUS . In the bascom help in "CONFIG CANBUSMODE" there is an example....
            Bernard

            1 Reply Last reply Reply Quote 0
            • K
              kl3m3n @Sato
              last edited by 18 Jun 2023, 18:45

              @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 regards

              How about using a CAN transciever, e.g., MCP2551?

              https://www.microchip.com/en-us/product/MCP2551

              Best regards,
              kl3m3n

              S 1 Reply Last reply 19 Jun 2023, 13:21 Reply Quote 0
              • S
                Sato @kl3m3n
                last edited by 19 Jun 2023, 13:21

                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

                1 Reply Last reply Reply Quote 0
                4 out of 7
                • First post
                  4/7
                  Last post