2.7. SPI

Submitted by admin on Tue, 09/19/2023 - 16:57

1. Introduction

_The Serial Peripheral Interface (SPI) is a synchronous serial communication interface specification used for short-distance communication, primarily in embedded systems. The interface was developed by Motorola in the mid-1980s and has become a de facto standard. Typical applications include Secure Digital cards and liquid crystal displays. SPI devices communicate in full duplex mode using a master-slave architecture with a single master. The master device originates the frame for reading and writing.

2.5. Analog Output (DAC)

Submitted by admin on Tue, 09/19/2023 - 16:38

1. Introduction

A PWM output can be easily transformed into an “analog” signal using low-pass filtering. This is the reason why Arduino calls its PWM output as analog. Nevertheless, the STM32F072 device features a real Digital to Analog Converter (DAC). When using DAC, you get closer to a real analog output as we will see in this tutorial.

2.4. Timers

Submitted by admin on Tue, 09/19/2023 - 16:30

1. Software counting delays

In the first part of this tutorial, we will implement a naive delay function based on a software counting loop.

1.1. Delay implementation

Open your project and add a new source file delay.rs in your src folder:

2.3. Analog Input (ADC)

Submitted by admin on Tue, 09/19/2023 - 16:26

1. Introduction

Analog to Digital Converters (ADC) are involved in several embedded projects. From the capture of UI potentiometers to digitalization of sensor data, the use of ADC is manifest in number of cases. STM32 may have one or more ADCs. An ADC is a complex hardware, that takes room on silicon and that requires power to operate. Therefore, few ADCs are usually embedded in a MCU.

2.1. GPIOs

Submitted by admin on Tue, 09/19/2023 - 15:34

1. Introduction

This tutorial is dedicated to the implementation of few BSP functions. In the world of embedded systems, BSP stands for “Board Support Package”. In simple words, it is a collection of functions to address on-board components such as I/Os, displays, sensors, communication interfaces… A collection of functions that simplifies the software interface with a given peripheral is also called a library, or a driver.

Home

Submitted by admin on Wed, 08/03/2022 - 16:56

Welcome to PoMAD Rust edition!

This is a slightly different version of the original PoMAD website. On this section of the website, part of the PoMAD tutorials have been rewritten using Rust (replacing C). This project is still a work-in-progress, but already gives you a few tutorials to get started developing embedded applications using Rust.

This project has been made possible thanks to the following references: