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

      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 Reply Quote 0
      • B
        Bernard
        last edited by

        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 Reply Quote 0
        • S
          Sato @Bernard
          last edited by

          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 Reply Quote 0
          • G
            gammda @Sato
            last edited by

            @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

              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

                @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 Reply Quote 0
                • S
                  Sato @kl3m3n
                  last edited by

                  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
                  • First post
                    Last post