Skip to Content
Making Embedded Systems, 2nd Edition
book

Making Embedded Systems, 2nd Edition

by Elecia White
March 2024
Intermediate to advanced
428 pages
12h 6m
English
O'Reilly Media, Inc.
Audio summary available
Content preview from Making Embedded Systems, 2nd Edition

Chapter 8. Putting Together a System

During the course of this book, we’ve investigated what goes on inside your processor. Now, before you can build a system, we need to consider what goes on in other components of your system. Communicating with the other components is a start to this. The next step is to get a feel for common peripherals, data handling methods, and design patterns for adapting your system to different needs.

Ultimately, the information you need for using peripherals is in their datasheets, but there are enough commonalities that you can get a feel for what to look for.

However, putting together a system goes beyond connecting each piece; you have to start looking at the system as a collection of parts working together. The last part of this chapter gives some tips on data handling and putting together algorithms.

Key Matrices

You’ve already seen buttons with a simple I/O interface in Chapter 4. However, if you have  a bunch of buttons (maybe a keyboard), you don’t need one I/O line per button. You can create a matrix of input lines to get a lot more out of your I/O than you expect. There are two ways to implement a key matrix: a row/column scan is useful when you need the peripheral to be cheap, whereas Charlieplexing (aka tri-state multiplexing) is more expensive but minimizes the number of I/O lines needed.

With a row/column scan, you can implement an M × N matrix with M + N lines. So if you want to implement a 12-digit number pad, you could do a 3 × 4 matrix ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Making Embedded Systems

Making Embedded Systems

Elecia White
Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9781098151539Errata Page