Project Design Documents 1

advertisement

Project Design Documents

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

1

Preliminary Design Review

• Demonstrate that the preliminary design meets the requirements

• Show that the correct design options have been selected, and interfaces identified

• You should show

– An understanding of the requirements

– Schematic diagram(s), with description

– Software flowchart(s) or pseudocode, with description

– Timing diagram(s), with description

– Sketch of physical hardware setup (if appropriate)

• It is ok if you change the design later, but you should at least have a good starting design.

2

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Schematic Diagram(s)

• For large systems, it is better to break up things up into subsystems and draw individual schematics for each subsystem

Example (from Todd

Nelson and Ryan

Straily)

System level Schematic

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

3

Schematic Diagrams (continued)

Example (from Todd

Nelson and Ryan

Straily)

LED Row Schematic

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

4

Software Design – flowchart example

Flowchart example

(from Todd Nelson and Ryan Straily)

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

5

Software Design – pseudocode example

System setup pseudo code

Initialize the PWM system and set to drive PT0..PT4, PM4

Initialize PT0..PT4, and PT7 as outputs

Initialize PM2..PM5 as outputs

Initialize Analog to Digital converter system for AN00..AN05

Initialize the RTI system for regular interval timeouts

Initialize t: a place to hold a running clock

Initialize t check

: the amount of time between motion detecting states

Initialize t wait

: the amount of time to wait before rotating the IR sensor again

Enable RTI Interrupts

Patrol (Line Following) pseudo code

Loop forever:

Read the left and right line sensors

If the right sensor is over the line:

If the left sensor not over the line:

Turn right (right motor stop)

Else drive straight

If the left sensor is over the line:

If the right sensor is not over the line:

Turn left (left motor stop)

Else drive straight

If t > t check

Check for motion (state = Detect)

End

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

(from Lucas Cook and Evan Manning)

6

Timing Diagram

Example from Todd

Nelson and Ryan

Straily

PD 0..7

PB 1..3

Plane 0

000

Plane 1

001

Plane 2

010

Plane 3

011

Plane 4

100

Plane 5

101

Plane 6

110

Plane 7

111

Plane 0

000

PB 4

Figure 1: Timing diagram for shift register data, plane selection and decoder enable.

7

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Physical Setup Sketch

• Sometimes the physical design is a key part of your project

Smart Irrigation

System

(courtesy of

Abdulaziz Alsenaide and Basil AbuHadi)

Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

8

Download