# I have ported at90can128 to arduino

**URL:** <https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508>\
**Category:** Exhibition\
**Created:** [March 17, 2010, 1:43pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508 "2010-03-17T13:43:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 17, 2010, 1:43pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/1 "2010-03-17T13:43:21Z")

</div>

Hello,

A school project of mine was porting there existing development boards to the arduino IDE.

My school uses there own development board with a atmel at90can128 mcu.  
It has a onboard jtag ICE programmer based on a atmega16.  
It has 1 usbport emulation 2 comports (FTDI ft2232d) one is connected to the jtag programmer, and one is connected to a uart of the at90can  
And all the other stuff like power regulator leds and stuff.

Now I have made the core file for this board, but it should work with any at90can, you need maybe a different pins.  
It also supports CAN bus, I've used the atmel CAN library for this [http://www.atmel.com/dyn/resources/prod\_documents/at90CANLIB\_3\_2.zip](http://www.atmel.com/dyn/resources/prod_documents/at90CANLIB_3_2.zip).  
I have modified it so it works in the arduino IDE.  
Check the atmel library out how it works, with the examples.  
I have included 2 sketch's with CAN support.  
The CAN support works only with the at90can of course, its embedded in the mcu.

And as last to make it complete, it also has a bootloader.

Here are the core files: [http://85.12.32.240/~superkoe/arduino/at90can.zip](http://85.12.32.240/~superkoe/arduino/at90can.zip) It supports the arduino IDE 0018

---

<div class="post-metadata">

**Author:** ![Yot](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/yot/32/213746_2.png) [@Yot](https://forum.arduino.cc/u/Yot)\
**Post date:** [March 18, 2010, 7:51am UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/2 "2010-03-18T07:51:32Z")

</div>

Hi SuperCow,

Weird that no one replied as that there are some working on automotive related projects. Could you elaborate on what parts of the chip work with the arduino function names? analog read/write, Serial and Serial1 etc.  
I'm also interested in the schematic of the development board. Looks like there are quite a few 'addons'. Any chance that you could publish that?  
Could you explain how/why there is another processor connected to the jtag interface?

Even if i wouldn't use the particular controller i'm excited when there is news about arduino supporting more processors.

Jeroen

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 18, 2010, 11:22am UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/3 "2010-03-18T11:22:54Z")

</div>

Of course everything has the same naming, but compared to the atmega168/328 it has allot more pins, interrupt, pwm etc.

In the configuration of my development board, I have 45 I/O pins  
7 PWM ports, 8 external interrupts, 2 uarts, 8 analog (only 4 used other 4 by the jtag)

So this chip is between the atmega168/328 and the mega feature wise.  
But it does have 128kb program space, 4kb flash and 4kb memory.

The atmega16 is the jtag programmer, programmed as jtag ice1 programmer. see: [Build your own AVR JTAG ICE clone - Do It Easy With ScienceProg](http://www.scienceprog.com/build-your-own-avr-jtagice-clone/)

I dont have the schematics of this board, its development by my school. And its very expensive, around 100 euro.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 20, 2010, 8:15pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/4 "2010-03-20T20:15:01Z")

</div>

Hi SuperCow,

It´s very interesting your project... cool!

I have one olimex board, based on AT90CAN128 ( [Development Board for AT90CAN128 - AVR-CAN - DEV-08279 - SparkFun Electronics](http://www.sparkfun.com/commerce/product_info.php?products_id=8279) ).

 ![](https://europe1.discourse-cdn.com/arduino/original/4X/e/5/9/e59b31a07bc9dc6e680a500ea78b726f88c01491.jpeg)

Do you think your code could work on this board?

Thank you 😉

Regards,

**Igor R.**

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 20, 2010, 11:19pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/5 "2010-03-20T23:19:28Z")

</div>

Yes is should. I have included a bootloader, so you can upload with the serial.

Maybe you need to change the pins\_arduino.c but it should work just fine.  
And please let me know if it does 🙂

---

<div class="post-metadata">

**Author:** ![retrolefty](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@retrolefty](https://forum.arduino.cc/u/retrolefty)\
**Post date:** [March 21, 2010, 1:05am UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/6 "2010-03-21T01:05:05Z")

</div>

Very nice and nice to see another AVR chip type added to the Arduino world. Thank you for the contribution.

Lefty

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 8, 2010, 6:08pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/7 "2010-07-08T18:08:12Z")

</div>

Hi, the core file seems to disappear from the server. Can you post it again or tell me where the new location is, please? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 11, 2010, 6:56am UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/8 "2010-09-11T06:56:36Z")

</div>

> Hi, the core file seems to disappear from the server. Can you post it again or tell me where the new location is, please? Thanks!

I can't get to the files either. Does anyone have a local copy they could share? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 11, 2010, 9:22pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/9 "2010-09-11T21:22:22Z")

</div>

It should work again, I removed them by accident cleaning up the server

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 25, 2010, 12:13pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/10 "2010-10-25T12:13:06Z")

</div>

has anyone had any luck using one of the olimex at90can boards with arduino? I have been trying to get it to work but I am not familiar enough with arduino ... I can get it to upload a sketch but it doesn't seem to run, even something basic like blinking the led on pin 6.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 6:43pm UTC](https://forum.arduino.cc/t/i-have-ported-at90can128-to-arduino/8508/11 "2021-05-06T18:43:32Z")

</div>


