OutlineProgrammingOverview

OutlineProgrammingOverview - ECE 1882 Lecture Outline 24...

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

View Full Document Right Arrow Icon
ECE 1882 Lecture Outline 24 August 2009 Computers and embedded systems (things you use that have computers of some sort inside of them) run programs . Key Tasks A program is a sequence of steps taken by the processor to: o read input devices (NXT examples: ultrasound sensor measures distance, button press on front panel, rotation sensor in motor measures the motor turning); o make decisions (was the button pressed?) and perform calculations (compare the measured value to a stored value); and o write to output devices (NXT examples: motor speed, display screen). What are Decisions and Calculations? The decisions and calculations include: o Comparisons – is X greater than Y? o Decision Structures o If/Then/Else o Case Statements o While Loop; Repeat Until Loop o Math operations o Reading/Writing to/from memory storage of various types: o Files o Random Access Memory (RAM) (in “computer chips”, disappears when power is off) o Read Only Memory (ROM) (in “computer chips”, can generally be read but not written, values preserved when power is off)
Background image of page 1

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

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

This note was uploaded on 10/10/2010 for the course ECE 1882 taught by Professor Staff during the Fall '08 term at Georgia Institute of Technology.

Page1 / 2

OutlineProgrammingOverview - ECE 1882 Lecture Outline 24...

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

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