10
Drivers and ISRs
Interacting with MCU peripherals is extremely important in many applications. In this chapter, we’ll discuss several ways of implementing drivers for MCU peripherals. Up to this point, we’ve been using blinking LEDs as a means of interacting with our dev-board. This is about to change. We’ll now focus on creating drivers for UARTs (universal asynchronous receiver/transmitter). UARTs are a widely-used communication peripheral.
We’ll start by exploring a UART peripheral on our MCU, and we’ll implement an extremely simple driver for it inside a task. The driver uses polling, and it is receive-only. After taking a look at the driver’s performance limitations, we’ll look at interrupt service routines (ISRs) and the different ways ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access