Skip to Content
Making Embedded Systems, 2a edizione
book

Making Embedded Systems, 2a edizione

by Elecia White
March 2025
Intermediate to advanced
428 pages
13h 25m
Italian
O'Reilly Media, Inc.
Audio summary available
Content preview from Making Embedded Systems, 2a edizione

Capitolo 4. Ingressi, uscite e timer

Questo lavoro è stato tradotto utilizzando l'AI. Siamo lieti di ricevere il tuo feedback e i tuoi commenti: translation-feedback@oreilly.com

Gli ingressi, le uscite e i timer sono alla base di quasi tutte le attività dei sistemi embedded. Anche i metodi di comunicazione per parlare con altri componenti sono costituiti da questi (vedi i driver bit-bang nel Capitolo 7). In questo capitolo ti illustrerò un esempio di sviluppo di un prodotto. Gli obiettivi cambieranno continuamente, in modo che sembri di essere nella vita reale. Questo ci permette anche di esplorare come passare da un semplice sistema di luci lampeggianti al debouncing dei pulsanti e all'oscuramento dei LED. Lungo il percorso, vedremo molte cose sui timer e come questi facciano molto di più che misurare il tempo.

Tuttavia, prima di iniziare a dominare il mondo, cioè a sviluppare un prodotto, devi conoscere un po' i registri, l'interfaccia tra il tuo software e il processore.

Gestione dei registri

Per fare qualsiasi cosa con una linea di I/O, dobbiamo parlare con il registro appropriato. Come descritto in "Il tuo processore è un linguaggio", puoi pensare ai registri come a un'API per l'hardware. Descritti nel manuale d'uso del chip, i registri sono disponibili in tutte le varianti per configurare il processore e controllare le periferiche. Sono mappati in memoria, quindi puoi scrivere a un indirizzo specifico per modificare un particolare registro. Spesso ogni bit del registro ha ...

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

Ten Minute Guide to Lotus Notes® 4.6

Ten Minute Guide to Lotus Notes® 4.6

Dorothy Burke, Jane Calabria
Pro Spring,Fourth Edition

Pro Spring,Fourth Edition

Chris Schaefer, Clarence Ho, Rob Harrop

Publisher Resources

ISBN: 9798341638556