Embedded Systems Programming
Other,
Updated On 02 Feb, 19
Other,
Updated On 02 Feb, 19
Getting Started - Counting - Flow of Control - Variables and Pointers - Blinking the LED - Preprocessor and volatile - Bit-wise operators in C - Arrays and Pointer Arithmetic - Functions and the Stack - Modules, Recursion, AAPCS - Stack Overflow and Other Pitfalls of Functions - stdint.h and mixing types - structures and CMSIS - startup code part - interrupts
4.1 ( 11 )
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 the 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.
Miro Samek
www.state-machine.com
---
Resources
YouTube PLAYLIST of the whole course
httpwww.youtube.complaylist?list=PLPW8O6W-1chwyTzI3BHwBLbGQoPFxPAPM
"ARMv7-M Architecture Reference Manual"
httpweb.eecs.umich.edu~prabalteachingeecs373-f10readingsARMv7-M_ARM.pdf
Course web-page
httpwww.state-machine.comquickstart
Sam
Sep 12, 2018
Excellent course helped me understand topic that i couldn't while attendinfg my college.
Dembe
March 29, 2019
Great course. Thank you very much.