atmel.txt · Last modified: 2018/12/30 00:13 by 127.0.0.1 

Handy annotated overview of AVR devices at AVR Freaks.

Local electronics store: Okaphone.

Error and fix in AVR Studio on AVR Freaks forums.

Perhaps a little lame avrlib but it helps quite a bit :)

Ports

Help on using ports on WinAVR AVR tutorial

Other (more interesting?) page with tutorials.

Tree memory locations for each port:

  • PORTx Data register (input 1: pullup, input 0: no pullup→tri-state, output 1: high, output 0: low)
  • DDRx Data direction register (1: output, 0: input)
  • PINx Port input pins

BIT manipulation in C

  • ~ means invert int → ~_bv(5) means 11101111 not 00010000
  • &= means bitwise AND
  • |= means bitwise OR
  • ^= means bitwise XOR

Soft USB & Soft UART

  • SPI as half-duplex uart is mentioned in application notes AVR304, AVR305, AVR307
  • USB Without USB chip: USB LED control project
  • Soft uart without rx interrupt: Gandalf

UART

I currently use this.

Helps: ASCII table.

Attiny13 specific

Reference

  • Handy command for debugging: avr-objdump -d $filename.elf > $filename.asm

Interrupts

All soft uart implementations use interrupts in one way or the other (timer and/or external). To understand them I'd like to test some more.

Programmer

Succes!

Next try, inspired by tuxgraphics.org.

Programmer description plus how to build, they use this software.

*SUCCES* :-)

Failure :(

I'm having problems with both of the above :(

AVR development on Windows

Helpful guide to installing eclipse with AVR support.

AVR development on Kubuntu:

yuy, Ubuntu has packages for all required parts :)

  • avrdude
  • avrdude-doc
  • binutils-avr
  • uisp
  • make
  • avr-libc
  • gcc-avr

Pinout

For quick reference
Atmega8
Pinout Atmega8

Attiny13
Pinout Attiny13

 

Author Herman Kopinga. This work is licensed under a Creative Commons License.
Created with Dokuwiki, layout using XHTML 1.0 and stylesheets, follow changes through rrs.