EE319Ks08_Lab_Manual - Jonathan W. Valvano Page 1 EE319K...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Jonathan W. Valvano Page 1 valvano@mail.utexas.edu 01/05/08 EE319K Laborartory Manual Univ of Texas at Austin Bard, Daniels, Welker Spring 2008 Table of Contents LAB 1. A DIGITAL LOCK. ..................................................................................................................................................... 3 LAB 2 ANALYSIS OF MICROCONTROLLER EXECUTION. ......................................................................................... 5 LAB 3. MINIMALLY INTRUSIVE DEBUGGING METHODS . ........................................................................................ 7 LAB 4. TRAFFIC LIGHT CONTROLLER. ........................................................................................................................ 15 LAB 5. LCD DEVICE DRIVER . ........................................................................................................................................... 19 LAB 6. REAL-TIME POSITION MEASUREMENT SYSTEM . ....................................................................................... 25 LAB 7 DISTRIBUTED DATA ACQUISITION SYSTEM. ................................................................................................. 29 LAB 8. MUSIC GENERATION USING A DIGITAL TO ANALOG CONVERTER . .................................................... 33 LABS 9 AND 10. TEXAS ROBOTS 1.7 (FOR THE LASTEST INFORMATION CHECK THE WEB SITE) . ........... 41 HOW TO DEVELOP ASSEMBLY PROGRAMS USING METROWERKS/TECH ARTS BOARD . .......................... 51 HOW TO DEVELOP C PROGRAMS METROWERKS/TECH ARTS 9S12DP512 BOARD . ...................................... 55
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Page 2 Introduction to Embedded Systems: Interfacing to the Freescale 9S12 01/05/08
Background image of page 2
Jonathan W. Valvano Page 3 valvano@mail.utexas.edu 01/05/08 Lab 1. A Digital Lock Preparation Read Chapter 1 of the book Read Sections xx.xx of the book Install and run TExaS, execute Help->GettingStarted , read up to but not including “Developing C software…” Download and run the first three lessons at http://users.ece.utexas.edu/~valvano/Readme.htm Purpose The general purpose of this laboratory is to familiarize you with the software development steps using the TExaS simulator. The specific device you will create is a digital lock with two binary switch inputs and one LED output. The LED output represents the lock, and the operator will toggle the switches in order to unlock the door. Let T be the Boolean variable representing the lock (0 means LED is off and door is locked, 1 means LED is on and door is unlocked). Let M and A be Boolean variables representing the state of the two switches (0 means the switch is not pressed, and 1 means the switch is pressed). The specific function you will implement is A & M T = This means the LED will be on if and only if the M switch is pressed and the A switch is not pressed, as shown in Figure 1.1. Figure 1.1. TExaS IO window showing the door is unlocked. Description Part a) Use the TExaS simulator to create three files. Lab1.rtf will contain the assembly source code. Lab1.uc will contain the microcomputer configuration. Lab1.io will define the external connections, which should be the two switches and one LED as shown in Figure 1.1. In this class we will use the 9S12DP512 microcomputer, which you can specify using the Mode->Processor command. You should connect switches to PAD2 (means Port AD0 bit 2) and to PM2 (means Port M bit 2). You should connect an LED to PT2 (means Port T bit 2). The switches should be labeled M and A , and the LED should be labeled T . When M switch is “off” or open position, the signal at PM2 will be 0V, which is a logic “0”. For this situation, your software will consider M to be false. When the M switch is “on” or closed position, the signal at PM2 will be +5V, which is a logic “1”. In this case, your software will consider M to be true. The A switch, which is connected to PAD2, will operate in a similar fashion. When your software writes a “1” to PT2, the LED will turn on. Figure 1.1 shows the
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 59

EE319Ks08_Lab_Manual - Jonathan W. Valvano Page 1 EE319K...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online