This is an old revision of the document!
von Raivo Sell (raivo.sell@ttu.ee)
für die Mechatronik Kits Basic und Advanced
(http://www.ittgroup.ee/index.php?option=com_content&task=view&id=9)
Die Software ist erhältlich
Reihenfolge der Software-Installation:
Der “Neue Hardware gefunden”-Dialog sollte in der Windows Task Bar erscheinen (Abb. 1)
Abb. 1 Treiber-Installation der Programmers
Siehe nach, welche Port-Nummer dem USB Converter zugeordnet wurde (hängt ab von der Anzahl zuvor installierter virtueller Ports). Öffne den Windows Geräte-Manager (Systemsteuerung > System > Hardware; Abb. 2) und im Geräte-Manager den Unterpunkt “Anschlüsse (COM & LPT)” (Abb. 3).
Die Port-Nummer steht in den Klammern – z.B. USB Serial Port (COM19)
Abb. 2 System Dialog (Geräte-Manager)
Abb. 3 Anschlüsse/Ports (COM & LPT)
ACHTUNG: AVR Studio lässt nur Ports COM1…COM4 zu! Sollte die zugewiesene Nummer größer als COM4 sein, kann man dies manuell beheben. Öffne von dem Anschluss: Eigenschaften > Anschlusseinstellungen > Erweitert > COM-Anschlussnummer
Figure 4 Selection proper COM port
Select port between COM1 and COM4 If these ports are in use you may still select them, but some of your other device might get in conflict. It might happened that Device manager does not change the port number on the end of port name. Reopen the Device manager to refresh the port names (Fig 5).
Figure 5 Proper COM port is assigned (after Device manager reopen)
Open AVR Studio and create New Project (ref. Lab1a in Lab book). Connect programmer with ATMega128 development board (Fig 6).
Figure 6 ATMega128 and programmer connection
Type the following simple source code and compile it (F7). Make sure that compilation results with the message: Build succeeded with 0 Warnings…
Try to execute it (Ctrl+F7). Start the program by pressing F5.
#include <avr\io.h> int main(void) { DDRB = 0xFF; PORTB &=~(1<<7); }
On-board LED PB7 should be go ON LED PB7 Change the line in the code:
PORTB |=(1<<7);
On-board LED PB7 should be go OFF If LED-s works fine you have successfully installed and configured your programming environment.
You can proceed with the Labs found in the Lab book (Hands-On Exercises ISBN: 978-9955-20-340-7) http://www.ittgroup.ee/index.php?option=com_content&task=view&id=22&Itemid=7
For more info you look: http://interstudy.ttu.ee http://mechatronics.ttu.ee