• Keine Ergebnisse gefunden

SiSy AVR / myAVR Workpad

N/A
N/A
Protected

Academic year: 2022

Aktie "SiSy AVR / myAVR Workpad"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

www.myAVR.de © Laser & Co. Solutions GmbH - 03/2015 www.myAVR.com

m m m

myAVR yAVR yAVR yAVR myAVR Arbeitsblatt zum Schnelleinstieg myAVR Introduction

SiSy AVR / myAVR Workpad

Aufgabe:

Entwickeln Sie eine Mikrocontrollerlösung für das myAVR Board, welche alle optischen Ausgabegeräte (rote, grüne und gelbe LED) zum Leuchten bringt.

Task :

To develop a microcontroller solution for the myAVR Board, which all optical output devices (red, green and yellow LED) being light.

Zielstellung:

Der Schnelleinstieg mit der Übung „Alle_Lichter_an“ soll mit der Grundstruktur eines Assemblerprogramms für einen µController vertraut machen. Dieses Arbeitsblatt basiert auf dem Schnell- einstieg und unterstützt Sie bei der Vorgehensweise.

Goal :

This introduction with the exercise "All_Light_on" should with the basic structure of an assembly program familiarize a µ con- troller. This worksheet based on the Introduction and support you in the approach.

1. Hardware - Grundlagen

Um das Programm zu testen ist es notwendig mit Hilfe der Patchkabel die rote LED mit PORT D.0, die gelbe LED mit PORT D.1 und die grüne LED mit PORT D.2 zu verbinden.

Schließen Sie nun das Programmierkabel an das myAVR Board und den PC.

1. Basic Hardware

In order to test the program, it is necessary, with help from the pacth cable to connect the red LED to PORT D.0, the yellow LED to PORT D.1 and the green LED to PORT D2.

Then, please connect the Programming Cable to the myAVR Board and the PC.

2. Lösungsentwurf

Vervollständigen Sie den Programmablaufplan entsprechend der Zielstellung im Schnelleinstieg und machen Sie sich mit dem Schaltungsschema vertraut.

2. Draft Resolution

Please completing the flow chart according to the target posi- tion in the introduction and familiarize yourself with the circuit diagram.

Notizen / notes

Jump zu Main

Initialisierung

MainLoop

Rücksprung zur MainLoop RESETWatchDog

(2)

myAVR Arbeitsblatt zum Schnelleinsteig / myAVR Introduction 2/2

www.myAVR.de © Laser & Co. Solutions GmbH - 03/2015 www.myAVR.com

3. Realisierung / realisation

;+---+

;| Title : Grundgerüst für myAVR Board |

;+---+

;| Funktion : ... |

;| Schaltung : ... |

;+---+

;| Prozessor : ATmega8 3,6864 MHz |

;| Sprache : Assembler |

;| Datum : ... |

;| Version : ... |

;| Autor : ... |

;+---+

.include "AVR.H"

;--- rjmp main ;Reset- und Interruptvektoren reti

reti reti reti reti reti reti reti reti ...

;---

; Start, Power ON, Reset

main: ldi r16, RAMEND

out SPL, r16 ;Init Stackpointer

; hier die Initalisierung DDRD und PORTD durchführen ... ;...

... ;...

... ;...

... ;...

... ;...

;--- mainloop: nop

; hier den Quellcode eintragen

... ;...

... ;...

... ;...

... ;...

... ;...

wdr ;Reset WatchDog

rjmp mainloop ;Rücksprung zur Hauptschleife

;---

Lösungshinweis:

• DDRD initialisieren

Solution :

• DDRD initialize

4. Bilden und Test

• Kompilieren und Linken

• Hardware anschließen und brennen

• Microcontrollerlösung testen

4. Create and Test

• Compile & link

• Connect and burn the hardware

• Microcontroller testing

Referenzen

ÄHNLICHE DOKUMENTE

Der Prozessor muss also nicht für die Programmierung aus dem System entfernt werden, um ihn in einem gesonderten Programmiergerät zu brennen, sondern kann im

To test the program, please disconnect the myAVR Board from the external power supply and the programming cable if you join the different pins external. That is for your

Für den mySmartUSB MK2 und weitere myAVR Produkte ist es notwendig, aus dem AVR Studio heraus das myAVR ProgTool aufzurufen.. Die erforderlichen Schritte werden

Die Vorgehensweise zur Arbeit mit dem myAVR ProgTool finden Sie in dem Kapi- teln „Anwendung mit SiSy, myAVR Workpad und myAVR ProgTool“ Lassen Sie den

Zur Arbeit mit der myUSBtoUART muss der USB Treiber für myAVR Produkte auf Ihrem PC installiert sein.. Den Treiber finden

Zur Arbeit mit der myUSBtoUART muss der USB Treiber für myAVR Produkte auf Ihrem PC installiert sein.. Den Treiber finden

Für fehlerhaften und/oder vorschriftswidrigen Einsatz des Kits übernehmen wir keine Garantie.

das myAVR Controlcenter, welches im myAVR QuickProg, SiSy AVR, sowie im myAVR Workpad zu finden ist.. Connect