Program Design - C. Circle D. Diamond E. Elipsoid Blinkey...

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

View Full Document Right Arrow Icon
Program Design Flow Charts
Background image of page 1

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

View Full DocumentRight Arrow Icon
Flow charts • Used to graphically represent the program flow • Help to reduce logical errors • Provide guidance for program / algorithm development • Helps generate good code the first time
Background image of page 2
Basic Symbols • Symbols used to form algorithm • Show flow at a glance • Model the algorithm operation Decision Contains true or false exits Process Contains instructions or actions Arrows show direction of program flow Start or stop terminator No Yes
Background image of page 3

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

View Full DocumentRight Arrow Icon
What is the symbol representing a question? A. Square B. Rectangle
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C. Circle D. Diamond E. Elipsoid Blinkey Algorithm Start Configure I/O Toggle LED Delay finished No Yes Start delay Mapping between code and Flow Chart Code SBI DDRB, PB0 Main_Loop: SBI PINB, PB0 ;toggles ldi r16, 200 CALL delay_1ms dec r16 brne Main_Loop jmp Main_Loop Start Configure I/O Toggle LED Delay finished No Yes Start delay Upon completion of the flow chart r15 has the value: A. 100 B. 101 C. 99 D. 0 E. 10 Start Increment r15 Zero flag set No Yes Compare r15 to 100 Compare r15 to 0 END...
View Full Document

This note was uploaded on 03/21/2012 for the course COMP EE357 taught by Professor Vanloon during the Fall '10 term at Mohawk College.

Page1 / 7

Program Design - C. Circle D. Diamond E. Elipsoid Blinkey...

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

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