0% found this document useful (0 votes)
24 views8 pages

Program Control

The document discusses embedded system programming concepts including the system timer, software timers, a super loop structure, and task scheduling. The system timer is a 24-bit hardware timer that generates interrupts to increment a ticks variable. Software timers use the system clock interrupts to increase or decrease a count variable. Preemptive scheduling allows tasks to run until completion or yield, with the system controlling task switches.

Uploaded by

Cristian Ceruţa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views8 pages

Program Control

The document discusses embedded system programming concepts including the system timer, software timers, a super loop structure, and task scheduling. The system timer is a 24-bit hardware timer that generates interrupts to increment a ticks variable. Software timers use the system clock interrupts to increase or decrease a count variable. Preemptive scheduling allows tasks to run until completion or yield, with the system controlling task switches.

Uploaded by

Cristian Ceruţa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Embedded programming

Program Control

Student: Cristian Ceruta (crcer18)


The “ticks” variable
System Timer (Systick):
 hardware timer built into ARM Cortex-M4
 one of the Cortex M4 peripherials
 timer is a 24-bit count-down timer
 generates an update count once per system interval
 system interval can be modified
The “ticks” variable
The “ticks” variable
Software timers
Software Timer- based on the system clock interrupts
 When Executed (on an interrupt):
◦ Increases or decreases a count-variable
Super loop
Example 1:

Example 2:
RTCS
Run To Complete Scheduler:
 Tasks executed in the order they entered the queue and where these tasks
are run until completion
 Task runs until it either finishes, or explicitly yields control back to the
scheduler
Preemptive Scheduling
Task switch controlled by the system.

You might also like