Microcontroller VU Exam 1 (Programming)

Ähnliche Dokumente
p^db=`oj===pìééçêíáåñçêã~íáçå=

Level 2 German, 2013

Der Adapter Z250I / Z270I lässt sich auf folgenden Betriebssystemen installieren:

Einsatz einer Dokumentenverwaltungslösung zur Optimierung der unternehmensübergreifenden Kommunikation

Parameter-Updatesoftware PF-12 Plus

Cameraserver mini. commissioning. Ihre Vision ist unsere Aufgabe

Level 1 German, 2012

CABLE TESTER. Manual DN-14003

Nachdem Sie die Datei (z.b. t330usbflashupdate.exe) heruntergeladen haben, führen Sie bitte einen Doppelklick mit der linken Maustaste darauf aus:

TomTom WEBFLEET Tachograph

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

CNC ZUR STEUERUNG VON WERKZEUGMASCHINEN (GERMAN EDITION) BY TIM ROHR

FIRMWARE UPDATE TAPMOTION TD

B I N G O DIE SCHULE. Bingo card: Classroom Items abcteach.com

Worx Landroid - Software Update

Titelbild1 ANSYS. Customer Portal LogIn

2 German sentence: write your English translation before looking at p. 3

Robotino View Kommunikation mit OPC. Communication with OPC DE/EN 04/08

Notice: All mentioned inventors have to sign the Report of Invention (see page 3)!!!

Der Wetterbericht für Deutschland. Read the weather reports and draw the correct weather symbols for each town.

GCE AS and A Level. German. AS exams 2009 onwards A2 exams 2010 onwards. Unit 2: Specimen question paper. Version 1.1

RS232-Verbindung, RXU10 Herstellen einer RS232-Verbindung zwischen PC und Messgerät oder Modem und Messgerät

BLK Quick Installation Guide. English. Deutsch

Algorithms for graph visualization

ReadMe zur Installation der BRICKware for Windows, Version ReadMe on Installing BRICKware for Windows, Version 6.1.2

There are 10 weeks this summer vacation the weeks beginning: June 23, June 30, July 7, July 14, July 21, Jul 28, Aug 4, Aug 11, Aug 18, Aug 25

Invitation - Benutzerhandbuch. User Manual. User Manual. I. Deutsch Produktübersicht Beschreibung... 2

Network premium POP UP Display

Abteilung Internationales CampusCenter

DIE NEUORGANISATION IM BEREICH DES SGB II AUSWIRKUNGEN AUF DIE ZUSAMMENARBEIT VON BUND LNDERN UND KOMMUNEN

How to use the large-capacity computer Lilli? IMPORTANT: Access only on JKU Campus!! Using Windows:

PRO SCAN WASSERANALYSE PER SMARTPHONE WATER ANALYSIS BY SMARTPHONE ANALYSE DE L EAU PAR SMARTPHONE

DAS ZUFRIEDENE GEHIRN: FREI VON DEPRESSIONEN, TRAUMATA, ADHS, SUCHT UND ANGST. MIT DER BRAIN-STATE-TECHNOLOGIE DAS LEBEN AUSBALANCIEREN (GE

Ingenics Project Portal

Name: Klasse: Standardisierte kompetenzorientierte schriftliche Reifeprüfung AHS. 18. September Englisch. Schreiben

Exercise (Part XI) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

MATLAB driver for Spectrum boards

USB -> Seriell Adapterkabel Benutzerhandbuch

Tip: Fill in only fields marked with *. Tipp: Nur Felder ausfüllen, die mit einem * markiert sind.

Listening Comprehension: Talking about language learning

Getting started with MillPlus IT V530 Winshape

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

ALL1681 Wireless g Powerline Router Quick Installation Guide

Instruktionen Mozilla Thunderbird Seite 1

General Certificate of Education Advanced Subsidiary Examination June 2011

USB Treiber updaten unter Windows 7/Vista

Exercise (Part II) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

NVR Mobile Viewer for iphone/ipad/ipod Touch

How-To-Do. Hardware Configuration of the CC03 via SIMATIC Manager from Siemens

O F B O A R D S T. Victorian Certificate of Education 1997 GERMAN. Common Assessment Task 3: Written examination

Login data for HAW Mailer, Emil und Helios

Level 2 German, 2011

Effizienz im Vor-Ort-Service

STRATEGISCHES BETEILIGUNGSCONTROLLING BEI KOMMUNALEN UNTERNEHMEN DER FFENTLICHE ZWECK ALS RICHTSCHNUR FR EIN ZIELGERICHTETE

Softwareupdate-Anleitung // AC Porty L Netzteileinschub

eurex rundschreiben 094/10

ColdFusion 8 PDF-Integration

1. General information Login Home Current applications... 3

HiOPC Hirschmann Netzmanagement. Anforderungsformular für eine Lizenz. Order form for a license

The projectivity of the moduli space of stable curves. I: Preliminaries on "det"...

General Certificate of Education Advanced Subsidiary Examination January 2011

KURZANLEITUNG. Firmware-Upgrade: Wie geht das eigentlich?

USB-Stick (USB-Stick größer 4G. Es ist eine größere Partition notwendig als die eines 4GB Rohlings, der mit NTFS formatiert wurde)

NEWSLETTER. FileDirector Version 2.5 Novelties. Filing system designer. Filing system in WinClient

General info on using shopping carts with Ogone

ETHISCHES ARGUMENTIEREN IN DER SCHULE: GESELLSCHAFTLICHE, PSYCHOLOGISCHE UND PHILOSOPHISCHE GRUNDLAGEN UND DIDAKTISCHE ANSTZE (GERMAN

Installationshinweise Z501J / Z501K Adapter IrDa USB Installation hints Z501J / Z501K Adapter IrDa USB

EMCO Installationsanleitung Installation instructions

Wählen Sie das MySQL Symbol und erstellen Sie eine Datenbank und einen dazugehörigen User.

Installation Instructions

Level 1 German, 2015

microkontrol/kontrol49 System Firmware Update

This Candidate s Sheet is to be handed to the candidate 20 minutes in advance.

E-License - Product Activation E-License - Produktaktivierung

AKTIVE DVB-T ZIMMERANTENNE ANSCHLUSSHINWEISE ACTIVE DVB-T INDOOR ANTENNA CONNECTION INSTRUCTIONS

NETWORK PREMIUM POP UP DISPLAY

Exercise (Part I) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

Softwareupdate-Anleitung // Porty L 600 / Porty L 1200

iid software tools QuickStartGuide iid USB base RFID driver read installation MHz closed coupling RFID

TIn 1: Feedback Laboratories. Lecture 4 Data transfer. Question: What is the IP? Institut für Embedded Systems. Institut für Embedded Systems

Corporate Digital Learning, How to Get It Right. Learning Café

p^db=`oj===pìééçêíáåñçêã~íáçå=

HUMANGENETIK IN DER WELT VON HEUTE: 12 SALZBURGER VORLESUNGEN (GERMAN EDITION) BY FRIEDRICH VOGEL

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education

Das ist gut für die Gesundheit

Kuhnke Technical Data. Contact Details

If you have any issue logging in, please Contact us Haben Sie Probleme bei der Anmeldung, kontaktieren Sie uns bitte 1

Datum der Ausgabe des Themas:

Fleet Manager 100 Bedienungsanleitung User Manual Hardware

This Candidate s Sheet is to be handed to the candidate 20 minutes in advance.

EEX Kundeninformation

FAQ - Häufig gestellte Fragen zur PC Software iks AQUASSOFT FAQ Frequently asked questions regarding the software iks AQUASSOFT

SanStore: Kurzanleitung / SanStore: Quick reference guide

ONLINE LICENCE GENERATOR

FOR ENGLISCH VERSION PLEASE SCROLL FORWARD SOME PAGES. THANK YOU!


GERMAN VACATION WORK (2014)

J RG IMMENDORFF STANDORT F R KRITIK MALEREI UND INSPIRATION ERSCHEINT ZUR AUSSTELLUNG IM MUSEUM LU

A study on computer-aided design of PIN-diode phase modulators at microwave frequencies

Transkript:

Microcontroller VU 182.694 Exam 1 (Programming) Familienname/Surname: Vorname/First name: MatrNr/MatrNo: Unterschrift/Signature: Vom Betreuer auszufullen/to be lled in by supervisor Funktioniert? Kommentar Unterschrift d. Betreuers Bsp 1: Bsp 2: Ja Nein Ja Nein Prufungsablauf (Please refer to next page for English translation!) Sie erhalten mit dieser Angabe zwei Programmieraufgaben, fur die Sie insgesamt ca. 75 Minuten Zeit haben (ca. 25 Minuten Vorbereitung und ca. 50 Minuten am Rechner). Sobald ein Beispiel funktioniert, rufen Sie bitte einen Betreuer und fuhren es vor. Alle Beispiele, die nicht innerhalb der vorgegebenen Zeit vorgefuhrt wurden, gelten als inkorrekt. Berucksichtigen Sie bitte, dass bei Abgaben in den letzten Minuten moglicherweise gerade kein Betreuer frei ist. Bitte fullen Sie zuerst den Testkopf mit Namen und Matrikelnummer aus, und legen Sie Ihren Studentenausweis bereit. Falls Sie sich Notizen machen wollen, schreiben Sie bitte nur in die hier vorliegende Angabe an den dafur vorgesehenen Stellen oder auf die Blattruckseiten. Zusatzblatter durfen nicht verwendet werden. Als Unterlagen durfen nur die von uns gestellten PDF-Dateien verwendet werden. Es gibt zu jedem Beispiel eine funktionierende Musterlosung als ihex Datei. Damit konnen Sie uberprufen, ob ein Problem mit der Hardware oder Ihrer Verdrahtung vorliegt. Damit Ihre Losung von der Musterlosung unterscheidbar ist, blinkt die Musterlosung nach einem Reset auf einigen der verwendeten LEDs. Verwenden Sie zum Assemblieren avr-as und avr-ld und zum Downloaden Ihres Programms/der Musterlosung avrprog2. 1

Examination Hints With these instructions, you receive two programming tasks. You have about 75 minutes to program the solutions (approx. 25 minutes for preparation and approx. 50 minutes on the computer). If one of your solutions is working, please present it to the supervisor immediately. All solutions which are not presented during your working time are noted as incorrect. Please be aware that nobody may be available for assessment during the last minutes of working time. Please ll in your name and matriculation number in the header and prepare your student card. During the examination, please write any notes only in the provided elds or on the back of these paper sheets. You are not allowed to use additional sheets of paper. The provided PDF les are the only documents you are allowed to use. For each task a working sample solution is available as ihex le. You can use the sample solution to check if there is a problem with the hardware or your wiring. To distinguish from your solution, the sample will ash some of the used LEDs after reset. Use avr-as and avr-ld to assemble your program. To download your program or the sample solution use avrprog2. 2

A Digital I/O { task1.s Please set up the switches in the following way: SW12 ON 1 2 3 4 5 6 7 8 PORTA PORTB PORTC PORTD PORTE PORTF/G PORTH/J PORTK/L All other switches are set to o. Connect J12 to GND. Create a program, which displays the current state of the buttons 1, 2 and 3 on PORTB as given in the following table: PORTB[1] PORTB[2] PORTB[3] LED H[1] LED H[0] LED H[3] on?? - - o on? N N- - o o on N- o o o - - Remarks:? means don't care (the state of the button is not important). \ N " means that LEDx is turned on, \-" means that LEDx is turned o. N A.1 Task 1 source ; TASK1 - Digital I/O.NOLIST.INCLUDE "m1280def.inc".list.equ temp, 0x10 ; Name the registers you are using. ;**************************** 3

;**************************** ; Program code belongs into text-segment = FLASH.section.text.global main.org 0x0000 rjmp main ; Main main: ; initialize stack pointer ldi temp, lo8(ramend) out SPL, temp ldi temp, hi8(ramend) out SPH, temp ; do your initializations here ;***************************** ;***************************** infinite_loop: ; implement main task here 4

;***************************** 5

;***************************** ; do the loop rjmp infinite_loop 6

B Interrupt - Calling Conventions { task2.s Please set up the switches in the following way: SW12 ON 1 2 3 4 5 6 7 8 PORTA PORTB PORTC PORTD PORTE PORTF/G PORTH/J PORTK/L All other switches are set to o. Connect J12 to GND. Create a program which rotates a LED on PORTB whenever the interrupt service routine for INT7 is called. The program should produce the following sequence of patterns: N State-No. LED B[0] LED B[1] LED B[2] LED B[3] 1 N- - - 2 - N- - 3 - - N- 4 - - N- 5 - N- - 6 N- - - 7 - - - The sequence of states should be controlled by the button which corresponds to INT7 in the following way: 1! button press! 2! button press! 3! button press! 4! button release! 5! button release! 6! button release! 7! button release! go back to 1 and do it again. B.1 Task 2 source ; TASK2 - Interrupt programming.nolist.include "m1280def.inc".list.equ temp, 0x10 ; Name the registers you are using. 7

;**************************** ;**************************** ; Program code belongs into text-segment = FLASH.section.text.global main.org 0x0000 rjmp main ; install your ISR ;**************************** ;**************************** ; insert your interrupt service routine here ;**************************** 8

;**************************** ; Main main: ; initialize stack pointer ldi temp, lo8(ramend) out SPL, temp ldi temp, hi8(ramend) out SPH, temp ; do your initializations here ;***************************** 9

;***************************** infinite_loop: ; nothing to implement here (interrupt driven program) ; do the loop rjmp infinite_loop 10