Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Both sides previous revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
projects:workshop1 [2012/01/24 21:27] skruppy [ehaserl] |
projects:workshop1 [2014/01/04 23:19] (aktuell) wanda [Code aus dem Wörkshop] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== mC wökrshop ====== | ====== mC wökrshop ====== | ||
+ | ---- datatemplateentry project ---- | ||
+ | template : :sys:tpl:project | ||
+ | description : Wökrshop zur mC prgrammierung | ||
+ | coordinators : [[:users:skruppy:]] | ||
+ | confidants : [[:users:wanda:]], [[:users:sushi:]], Fred | ||
+ | state_tags : held, to be continued | ||
+ | type_tags : software, elektro, C, event, workshop | ||
+ | ---- | ||
+ | |||
Wer macht mit | Wer macht mit | ||
* sushi | * sushi | ||
Zeile 43: | Zeile 52: | ||
==== ehaserl ==== | ==== ehaserl ==== | ||
[[projects:ehaserl]] | [[projects:ehaserl]] | ||
+ | |||
+ | ==== AVR-Videos ==== | ||
+ | |||
+ | evtl. hilfreich (noch nicht geguckt - also testen :-) ) | ||
+ | * 25C3: Music with Microcontrollers: http://events.ccc.de/congress/2008/Fahrplan/events/2843.en.html | ||
+ | * 26C3: Advanced Microcontroller Programming: http://events.ccc.de/congress/2009/Fahrplan/events/3672.en.html | ||
+ | |||
+ | |||
===== AVR ===== | ===== AVR ===== | ||
Zeile 76: | Zeile 93: | ||
int main() { | int main() { | ||
// 1111 1111 | // 1111 1111 | ||
- | DDRA = 255; | + | DDRA = 255; // Data direction register (1 = output / 0 = input) |
DDRA = 0b11111111; | DDRA = 0b11111111; | ||
DDRA = 0xFF; // alles output | DDRA = 0xFF; // alles output | ||
- | DDRA = _BV(PA0) | _BV(PA1) | _BV(PA2) | _BV(PA3) | _BV(PA4) | _BV(PA5) | _BV(PA6) | _BV(PA7); // Data direction register (1 = output / 0 = input) | + | DDRA = _BV(PA0) | _BV(PA1) | _BV(PA2) | _BV(PA3) | _BV(PA4) | _BV(PA5) | _BV(PA6) | _BV(PA7); |
| | ||
DDRH = 0b00000000; // alles input | DDRH = 0b00000000; // alles input |