26
EDUCATION 2021

uP2 · 2019. 7. 25. · 7/25/2019 1 uP2 EEL4930 Course Overview Expansion of uP1 with a focus on embedded systems and IoT concepts Use new hardware + scheduler to implement peripherals

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

  • 7/25/2019

    1

    uP2

    EEL4930

    Course Overview● Expansion of uP1 with a focus on embedded systems and IoT

    concepts● Use new hardware + scheduler to implement peripherals in

    interesting ways● 5 labs that take about 2-3 weeks each.● Develop various components of an OS over the course of the

    semester (scheduling, threading, sleeping, semaphores, periodic threads, aperiodic events)

  • 7/25/2019

    2

    HARDWARE● TI MSP432● 32-bit microcontroller● 256KB Flash● 64KB RAM● 48 MHz Clock● Daughterboard w/ 16 RGB

    LEDs,Joystick, 4 tactile button switches, LCD resistive touch screen

    ● Sensor boosterpack-temperature, IMU, light, etc.

    ● Wifi boosterpack

    Task Scheduling● Core of the course● Multiple tasks (threads) run “simultaneously”● Each task (thread) gets its own section of memory (stack)● Creating Linked lists for scheduled tasks● Context switching using scheduler

  • 7/25/2019

    3

    Task scheduling (cont.)● Round robin - tasks being run in circular order,

    Each for fixed amount of time● Priority scheduler - run tasks depending on priority● Blocked threads (using semaphores)● Sleeping threads● Adding/Killing threads in Real Time

    Other Concepts● Using I2C to communicate with external peripherals● Build/Use FIFO queues to transfer data between tasks● Using SPI to communicate with LCD display and touch screen● Use WIFI to communicate between boards

  • 7/25/2019

    4

    Demo program● Using G8RTOS to generate/delete squares of random color and

    speed● Uses threads for: accelerometer read, screen touch ISR, screen

    touch thread, square physics thread● Add/Delete threads in Real Time

    Software● Code composer studio

  • 7/25/2019

    5

    Things to Know● uP2 (EEL4930) is a very code intensive course● Some Assembly● Should be familiar with C● 2-3 weeks to complete labs● 2 exams

    Questions?