COS10004 Lecture 8.3 LED Flash (Part 3) - A Better Timer
COS10004 Lecture 8.3 LED Flash (Part 3) - A Better Timer
Dr Chris McCarthy
INSERT DELAY WITH BUSY WAIT TIMER
• Pseudocode:
– Program GPIO18 LED for output
– Loop1:
• Turn LED on (pull GPIO18 high)
• Busy wait
• Turn LED off (pull GPIO18 low)
• Busy wait
– branch to loop1
register 0
r1 must contain a
pointer to a value in
memory