AT90CAN128 Sample Code

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Using an AT90CAN128 chip.

I'm looking for some sample GCC code that shows how to setup the CAN port (500K) and then send and receice raw can frame. I've searched the Forum and Projects page and saw a lot about LIN but not something simple for CAN.

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
I do have the sample code but its not in ansi "C"..
It is however in Bascom-AVR if you want it let me know...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks ALJ1108,
Yes, I would like to see how you setup the CAN ports, poll for incoiming messages and send out messages. If you could post you code here that would be great. Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well there used to be a CAN library, but I'm not able to find it any longer. The other links from this post should still be good:
https://www.avrfreaks.net/index.p...

The device page has this link to CAN GCC source, CAN based Bootloader for AT90CAN32, AT90CAN64 & AT90CAN128:
http://www.atmel.com/dyn/resourc...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay here you go:

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also that link:
http://www.atmel.com/dyn/resourc... ... xample.zip
Doesn't have the full code

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have a look at http://www.kreatives-chaos.com/artikel/universelle-can-bibliothek That URL is in German but it provides a universal CAN-Lib which handles the AT90CAN as well as several other CAN Chips. The library is completely written in C (avr-gcc)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

now only i started using AT90CAN128 chip in that i used some basic code for testing that works.

I looking for some simple coding for CAN Program.

stay foolish stay hungry