Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#2 How to change the flow of control through your code
Play lesson

Modern Embedded Systems Programming Course - #2 How to change the flow of control through your code

4.0 (6)
56 learners

What you'll learn

This course includes

  • 22.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

This lesson shows how to change the flow of control through your code. The lesson starts by watching the execution of machine instructions in the simplest linear program, where the control flows top to bottom. Next, you will learn how to code a simple "while" loop in C. The operation of the loop is explained with a flowchart. Next, the program is executed in the simulator and you watch how exactly the branch instructions modify the Program Counter (PC). You will learn about the Application Program Status Register (APSR) and how it controls the flow of conditional jumps. You will also see the overhead added by a loop and you will learn about the instruction pipeline and why the pipeline stalls when a branch is taken. In the last step of the lesson, you will learn how the "if" statement works and how to use bitwise AND operator to test quickly whether a number is odd or even. In the next lesson will learn more about variables and pointers. ----- Resources: Companion web page for this video course: https://www.state-machine.com/quickstart GitHub repository for projects for this video course: https://github.com/QuantumLeaps/modern-embedded-programming-course YouTube PLAYLIST of the whole course: https://www.youtube.com/playlist?list=PLPW8O6W-1chwyTzI3BHwBLbGQoPFxPAPM "ARMv7-M Architecture Reference Manual" http://web.eecs.umich.edu/~prabal/teaching/eecs373-f10/readings/ARMv7-M_ARM.pdf

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere