Beruflich Dokumente
Kultur Dokumente
Microcontrollers
8 to 128 pins
8 to 20 Mhz
Uses W to mW of power
Cheap - $5
Small
Programmable
(actual size:
Often in C or Assembly
C compiler
C code
(gcc)
Libc
Compiled
Executable
(on disk)
Operating System
Other Libraries
(for anything not in libc)
I386 processor
C code
C compiler
avr-libc
(things like sprintf)
(gcc-avr)
Compiled
Executable
(.hex file)
Programmer
Other Libraries
(for anything not in libc)
Microcontroller
(in flash memory)
C code
C compiler
(gcc-avr)
avr-libc
(things like sprintf)
Compiled
Executable
(.hex file)
Programmer
Other Libraries
(for anything not in libc)
Microcontroller
(in flash memory)
Atmega Programming
USB In-System-Programmer
We have several
USB In-System-Debugger
More expensive
A word on Avr-Libc[1]
No Files
No Standard Out
Microcontroller-specific parts
Interrupts
1.http://www.nongnu.org/avr-libc/
2.For example: http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf
Examples
An Example:
Textile Touch-button Sensing
Another Example:
Gesture Watch
On/Off
A Final Example:
BlueSense Accelerometers
Build to be extensible
Pros:
Tiny
Cons:
Including the Atmega The I2C library from the 'wiring' project
works great
Overall Lessons
We have Wiimotes