Lab 11 Final Embedded System

sanatoriumdrumΗλεκτρονική - Συσκευές

25 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

159 εμφανίσεις

Lab

11 Final Embedded System
Spring 2013

11/25/2013

Page 11.
1

Jonathan W. Valvano

Lab
1
1

Final Embedded System


This laboratory assignment accompanies the book,
Embedded Systems: Real
-
Time Interfacing to A
RM

Cortex M

Microcontrollers
, ISBN
-
13: 978
-
1463590154, by Jonathan W. Valvano, copyright © 201
2
.


Goals


• Build and test an embedded

system.




Review



none


Starter files


none


Background


You will complete the embedded system you began
in Lab
7
.
This lab includes hardware construction,
software debugging and system evaluation.

There will be a “Science Fair”
-
like public demonstrat
ion for Lab 1
1
. I
will present special awards to the team of two with the best design. The preliminary round will be judged by your TA

during your lab session
, and the final round will be judged by an independent panel (e.g., Daryl Goodnight, Paul
Landers,

and Perry

Durkee etc.)


Preparation (do this before your lab period)

Part a)
Write the main

high
-
level

application that implements the
final objective of the embedded system
.

If you want

change what your system does
,

please get approval from your TA.


Pa
rt b)
Add more detail to the
requirements document
you began in Lab
7
. In particular, give more detail about
how the system will be evaluated. Increase the length from one page to two pages.

Part c) Gather all the parts needed to build the system. Update
your bill of materials (BOM)

Part d) Solder all parts needed to connect the JTAG and download code to the board. Essentially you will need to
solder all the parts shown in the Lab 6 starter file.


You should build the board in this order

0) Verify there ar
e no shorts between +3.3V power, ground, battery input, or
5V

power line.

1) Solder the 811 first. Clean the 811 pads with isopropyl alcohol. Align the 811 on the board. Apply solder flux to
the pin. Align the 811 on the board again. Gently touch the sol
der iron then the solder to the pin. You
use

VERY
little solder. Solder one pin and show it to a TA/professor/Daryl or Paul. This is critical. Solder a second pin and
again have someone check it. Then solder the rest of the 48 pins. Clean solder
-
bridges wi
th solder
-
removal braid

2) Check for shorts again between adjacent pins

on the processor. Use thin wire (28 or 30 gauge) to touch the
ohmmeter probes to processor pins. If you can see
excessive
solder between pins, remove it with solder wick. If
adjacent p
ins are connected but you see no
excessive
solder, very gently cut between processor pins with a sharp
knife.

3) Solder crystal and all caps around the processor
.
Verify there are no shorts between +3.3V power, ground, battery
input, or
5V

power line.

4) C
arefully mark on your board where JTAG pin 1 is. Solder the reset button, pull up, and JTAG connector.
Verify
there are no shorts between +3.3V power, ground, battery input, or
5V

power line.

5) Solder the resistor attached to PB7
.
Verify there are no shor
ts between +3.3V power, ground, battery input, or
5V

power line.

6) Solder the 3.3V regulator, and caps around regulator (everything you need to create 3.3V power). Include 3.3V
and ground testpoints.

Verify there are no shorts between +3.3V power, ground,

battery input, or
5V

power line.

7
) Test it with the Flash programmer

http://users.ece.utexas.edu/~valvano/EE345L/Labs/Fall2011/Ifyoumessuptheboard.pdf



a) Download, install, but do not run the Flash programmer yet.


b) Connect the JTAG cable from LM
3S1968 board to your LM3S811 board (red stripe is pin 1)



c) Attach a voltmeter to 3.3V pin on your board



d) Both the 1968 and your board must be independently
(separately)
powered. Apply power your LM3S1968
board, and apply power to your 811 board (r
emove power immediately if not 3.3V)



e) Run the Flash programmer as instructed in the pdf. (the red DebugOut light on the 1968 board comes on). If
this flash procedure finishes without error, then means the 811 is operational. If the flash procedure fa
ils then there is
a mistake in power, reset, crystal,
or
JTAG. The two most common reasons to fail are 1) the 811 has no 3.3 power;
and 2) the JTAG cable is backwards.

8
) Create a very simple 811 program.

Lab

11 Final Embedded System
Spring 2013

11/25/2013

Page 11.
2

Jonathan W. Valvano


int main(void){ while(1){};}


Verify it is an 811

project with 6 MHz crystal, follow ALL steps of


http://users.ece.utexas.edu/~valvano/EE345L/Labs/Fall2011/CreatingProject.pdf



a) Connect the JTAG cable from LM3S1968 board to your LM3S811 board (red stripe is pin 1)



b) Attach a voltmeter to 3.3V pi
n on your board



c) Power LM3S1968 board, apply power to your board (remove power immediately if not 3.3V)



d) Download this simple program to 811 (the red DebugOut light on the 1968 board comes on)



e) Run debugger

1
0
) Solder components in the order

of height. The lowest ones come first. Check for shorts from power to ground
before applying power again. If your system has both 3.3 V and 5V power, please place a voltmeter on the 5V output
and measure the current while testing it for the first time.

Pr
ocedure (do this during your lab period)

Part a)
D
ebug your embedded system application.

Use appropriate hardware/software debugging skills as
appropriate.

Part b)
If your project is selected for the final round competition, please


Create printouts of ha
rdware circuit diagrams


Create
a 1 page
printout of the PCB layout


Print out the requirements document


Generate 1 or 2

pages of program listing illustrating interesting or critical software components


Modify the system so it is easy to see internal com
ponents (judges like to see inside the box)


Deliverables (exact components of the lab report)

A) Objectives


2
-
page requirements document

B) Hardware Design



Detaile
d circuit diagram of the system
(
from Lab
7
)

C) Software Design (no software printout in

the report)


Briefly explain how your software works (1/2 page maximum)

D) Measurement Data


As appropriate for your system
. Explain how the data was collected.

E) Analysis and Discussion (1 page maximum)


Checkout (show this to the TA)



You should
dem
onstrate the operation of the
embedded system.


A software and report files must be uploaded as instructed by your TA.






Hints:

0: When we give out boards, make sure we give you yours

1: You will get the
LM3S811

in class

or you can have the staff solder

the LM3S811 on.

2: Collect all parts, collect all nuts/bolts/screws. Think about your system mechanically. Will it all fit together? Put it
together before soldering.

This will help to determine the proper order of construction.

3:
When

soldering the
LM3S
811 solder one pin and then have the instructor, TA, Daryl or Paul check it. Then solder
a second pin and have it checked again
.

4: Make sure the
Keil uVision
project knows it

is a 811 and it

has a 6 MHz crystal

5
: Take the system with you on job intervie
ws.

6
:

If your project is selected for the final round competition, let
your instructor know if you need AC power to run
your system






Lab

11 Final Embedded System
Spring 2013

11/25/2013

Page 11.
3

Jonathan W. Valvano

Lab 11 grading (different from labintro.pdf)


Lab
11

is
the third of three parts to
your own project
. The g
rading
rubr
ic
for this lab will be different from the one
mentioned in the labintro
.pdf

document."


**********************
***************************************************************************


Preparation (20)

shown to TA before lab starts


High level ap
plication for the system, graded on completeness rather than style (10)


Complete BOM and having all parts (5)


2
-
page requirements document (5)


Checkout (30)


Project

demonstration
, quality of design

(
30
)


Description of how t
he system was tested

(5)


Software Quality (30)


Modularity

and organization

(10)


Readability (10)


Functionality (10)


Report (
2
0)


Testing procedure and testing data

(10)


Analysis and discussion
(
10
)