Flowcharts and programming Flashcards
Flow Chart Symbols and Purpose
Terminator
Symbol = Oval Purpose = Start, Stop, Return
Flow Chart Symbols and Purpose
Process
Symbol = Rectangle Purpose = Delays, loop
Flow Chart Symbols and Purpose
Input/Output
Symbol = Rhombus Purpose = Turns on or off
Flow Chart Symbols and Purpose
Decision
Symbol =Diamond
Purpose = Input on/off x=?
Flow Chart Symbols and Purpose
Sub Procedures
Symbol = Rectangle with two lines at each end Purpose = Mini flow charts
All flow charts must be related to
a microcontroller
P Basic
let dirs. = %11110000
must start every P Basic code
symbol x = 7
this is how to rename a pin, pin 7 is now called x
High = Low = Pause = if...else = goto =
On Off Delay (in milliseconds) If x = on then y go to this part of the code
To set a counter in Pbasic
define the variable โcounterโ by
๐ฌ๐ฒ๐ฆ๐๐จ๐ฅ ๐๐จ๐ฎ๐ง๐ญ๐๐ซ = ๐๐
set the counter by
๐๐จ๐ซ ๐๐จ๐ฎ๐ง๐ญ๐๐ซ = ๐ ๐ญ๐จ ๐๐
to add to the counter do
๐ง๐๐ฑ๐ญ ๐๐จ๐ฎ๐ง๐ญ๐๐ซ