-rw-r--r-- 2m Embedded MCU Synchronization
Synchronization is what keeps the processor, the peripherals, the timers and the interrupts operating in a consistent and accurate manner, based on a common clock source.
root@amaltsev >:~/blog$ grep -l "basic" -r ~/blog
18 posts on basic.
root@amaltsev >:~/blog$ grep -l "basic" -r ~/blog
Synchronization is what keeps the processor, the peripherals, the timers and the interrupts operating in a consistent and accurate manner, based on a common clock source.
An interrupt lets the microcontroller respond to an important event without spending cycles polling its peripherals.
The clock system is the basis for timers and interrupts. It sets the pace of every digital component of the microcontroller.
Timers are hardware modules of the microcontroller for actions with time counting and event generation without the participation of the main code.
The classic way to do that is to reduce the voltage through a rheostat or a potentiometer. That is inefficient, since part of the energy is lost as heat.
A step-by-step template for a Cortex-M Rust project: config.toml, rust-toolchain.toml, memory.x, probe-rs, defmt and the panic handler.
Microcontroller peripherals are functional blocks integrated into the chip that enable it to interact with the outside world or carry out specific tasks, often without involving the processor core.
A processor register is a quickly accessible location available to a computer's processor.
A microcontroller talks to its peripherals through one of a small number of I/O models, and the choice decides how much of the CPU's time the transfer costs, how quickly the peripheral gets serviced.
MMIO (Memory-Mapped I/O) is a way for the central processing unit (CPU) to interact with peripheral hardware devices.
Software development runs in a cycle: write, run, check, fix. On a desktop, debugging is simplified by built-in logs, breakpoints and step-by-step code execution directly in the IDE.
I2C (Inter-Integrated Circuit) is a low-speed two-wire master-slave serial protocol, widely used for short-distance data transmission over a data bus (SDA) with a clock synchronization line (SCL).
SPI (Serial Peripheral Interface) is a low-speed four-wire master-slave full-duplex serial protocol, widely used as a faster alternative to UART/I2C for transferring data between an intelligent…
UART (Universal Asynchronous Receiver / Transmitter) is a low-speed two-wire asynchronous multi-duplex serial protocol.
Digital systems are built on bits, and beyond using bits they often have to move them between two components, an MCU and a sensor or an LCD, for instance.
GPIO stands for general purpose input/output. It is a type of pin found on an integrated circuit that does not have a specific function.
Rust handles memory through its type system, and a handful of questions follow.
How to manage Rust with rustup: release channels, toolchain overrides, components and build profiles.
~/blog: 18 matches
root@amaltsev >:~/blog$ cd ~/blog && ls -la
The whole directory is one click away. Every post, filed by subject.
Four channels, all of them read. Pick the one that suits the question.
Where to start: a short question goes to Telegram, a brief goes to email.
No match.