GithubHelp home page GithubHelp logo

at90can's Introduction

AT90CAN Support for Arduino
Maintainer: Sam C. Lin <[email protected]>

This is a continuation of SuperCow's work on adapting Arduino to work with AT90CANxx MCU's at http://arduino.cc/forum/index.php/topic,8446.0.html

Compile Arduino sketches on Atmel AT90CANxx MCU's.
Supports USBtinyISP and JTAG ICE mk1

For Arduino <= 0023: copy the 0023/at90can folder to <arduino>/hardware/at90can
For Arduino >= 1.0: copy the 1.0/at90can folder to <arduino>/hardware/at90can

From the Arduino IDE's Tools->Board menu, select either

[usbtinyisp]AT90CAN128

or

[JTAG ICE mk1]AT90CAN128

Set your fuses with avrdude:
avrdude -c usbtiny -p at90can128  -U lfuse:w:0xFF:m
avrdude -c usbtiny -p at90can128  -U hfuse:w:0x19:m
avrdude -c usbtiny -p at90can128  -U efuse:w:0xFF:m

To install bootloader for programming over serial, you must set in hfuse BOOTSZ=10 and BOOTRST=0. Use the following fuse settings:
avrdude -c usbtiny -p at90can128  -U lfuse:w:0xFF:m
avrdude -c usbtiny -p at90can128  -U hfuse:w:0x1C:m
avrdude -c usbtiny -p at90can128  -U efuse:w:0xFF:m
You will also need to set up the automatic reset circuit to use DTR to toggle the RESET pin:  DTR---|100nF|--<RESET>--|1n4148>|--VCC
Select [bootloader]AT90CAN128 board type in Arduino IDE and burn the bootloader.
Thereafter, you can burn sketches without a hardware programmer via USART0 (RXD0/TXD0) by selecting board type [bootloader]AT90CAN128.


For Arduino pin mappings, see AT90CAN_Pinmap.txt

For more information, see http://blog.lincomatic.com/?tag=can-bus

----------------
ChangeLog
20130421 SCL
- restore missing usbtinyisp to 1.0 boards.txt

20130104 SCL
- get bootloader working. Thanks to a4x4kiwi for help
- changed lock bits when locked from CF to 0F because even though AT90CAN128
  datasheet shows top 2 bits fixed = 1, avrdude always reads back 0's.



at90can's People

Contributors

lincomatic avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.