





















































Thousands of startups use Notion as a connected workspace to create and share docs, take notes, manage projects, and organize knowledge—all in one place.
We’re offering 6 months of new Plus plans, including unlimited Notion AI, so you can try it all for free!
To redeem the Notion for Startups offer:
1. Submit an application using our custom link: https://ntn.so/packtand selectPackton the partner list.
2. Include our partner key:STARTUP4110P19151
Hi ,
Welcome to this week’s edition of ProgrammingPro!
In today’sExpert Insight, we bring you an excerpt from the recently published book, Bare-Metal Embedded C Programming, which briefly compares UART, SPI, and I2C communication protocols in embedded systems.
News Highlights: Postman's 2024 survey shows 74% of developers adopting an API-first approach; Google unveils an LLM self-correction algorithm; StackBlitz's Bolt.new allows Node.js projects in the browser via AI prompts; and Google’s Code Assist Enterprise now trains on internal code with GitHub and GitLab.
My top 5 picks from today’s learning resources:
But there’s more, so dive right in.
Stay Awesome!
Divya Anne Selvaraj
Editor-in-Chief
PS:The October survey is still live. Do take the opportunity to leave us your feedback, request a learning resource, and earn your one Packt credit for this month.
checked
keyword in C# helps manage arithmetic overflow and ensures reliable type conversions by throwing exceptions when overflow occurs.std::from_chars
provides high-performance, low-level text-to-number conversions with features like non-throwing behavior, and more.int x = x + 1;
despite the variable being uninitialized at that point, which leads to undefined behavior.StandardTestDispatcher
to manage coroutine execution and ensure proper assertions.Here’s an excerpt from “Chapter 4: Crossing the Language Barrier with the Arrow C Data API” in the book, Bare-Metal Embedded C Programming, byIsrael Gbati, published in September 2024.
Let’s startwith UART.
Here are some key featuresof UART:
The following are some ofits advantages:
However, it also hassome disadvantages:
Next, wehave SPI.
Here are some key featuresof SPI:
The following are some ofits advantages:
However, it also hassome disadvantages:
The final common communication protocol we’ll coveris I2C.
Here are some key featuresof I2C:
The following are some ofits advantages:
However, it does havesome disadvantages:
Choosing the right communication protocol depends on your specific application needs. If you need simple, straightforward communication and can tolerate slower speeds,UARTis a great choice. For high-speed applications with a need for full-duplex communication,SPIis ideal, especially if you can manage the higher pin count. When you need to connect multiple devices with minimal wiring and have a complex communication setup,I2Cis your go-to protocol. To help you better understand when to choose which protocol, let’s explore some commonuse cases.
Bare-Metal Embedded C Programmingwas published in September 2024. Packt library subscribers can continue reading the entire book for free or you can buy the bookhere!
That’s all for today.
We have an entire range of newsletters with focused content for tech pros. Subscribe to the ones you find the most usefulhere.
If your company is interested in reaching an audience of developers, software engineers, and tech decision makers, you may want toadvertise with us.