STM32 Peripheral’s

USART

The universal synchronous asynchronous receiver transmitter (USART) offers a flexible
means of full-duplex data exchange with external equipment requiring an industry standard
NRZ asynchronous serial data format. The USART offers a very wide range of baud rates
using a fractional baud rate generator.
It supports synchronous one-way communication and half-duplex single wire
communication. It also supports the LIN (local interconnection network), Smartcard Protocol
and IrDA (infrared data association) SIR ENDEC specifications, and modem operations
(CTS/RTS). It allows multiprocessor communication.

  1. STM32-Peripheral’s-UART: Polling Mode
  2. STM32-Peripheral’s-UART: Interrupt Mode
  3. STM32-Peripheral’s-UART: DMA Mode

SPI

The SPI interface provides two main functions, supporting either the SPI protocol or the I2S
audio protocol. By default, it is the SPI function that is selected. It is possible to switch the
interface from SPI to I2S by software.
The serial peripheral interface (SPI) allows half/ full-duplex, synchronous, serial
communication with external devices. The interface can be configured as the master and in
this case it provides the communication clock (SCK) to the external slave device. The
interface is also capable of operating in multimaster configuration.

  1. STM32-Peripheral’s-SPI: Polling Mode
  2. STM32-Peripheral’s-SPI: Interrupt Mode
  3. STM32-Peripheral’s-SPI: DMA Mode

Timer

It may be used for a variety of purposes, including measuring the pulse lengths of input signals (input capture) or generating output waveforms (output compare, PWM, complementary PWM with dead-time insertion). Pulse lengths and waveform periods can be modulated from a few microseconds to several milliseconds using the timer prescaler and the RCC clock controller prescalers

  1. STM32-Peripheral’s Timers: Input PWM
  2. STM32-Peripheral’s Timers: Input Capture Mode
  3. STM32-Peripheral’s Timers: Output Compare Mode
  4. STM32-Peripheral’s Timers: Output PWM
  5. STM32-Peripheral’s Timers: Base Timer Interrupt Mode

ADC-DAC

The Digital to Analog converter (DAC) is a device, that is widely used for converting digital pulses to analog signals. There are two methods of converting digital signals to analog signals. These two methods are binary weighted method and R/2R ladder method. DACs are judged by its resolution. The resolution is a function of the number of binary inputs. The most common input counts are 8, 10, 12 etc. Number of data inputs decides the resolution of DAC. So if there are n digital input pin, there are 2n analog levels. So 8 input DAC has 256 discrete voltage levels.

An analog to digital converter is a circuit that converts a continuous voltage value (analog) to a binary value (digital) that can be understood by a digital device which could then be used for digital computation. These ADC circuits can be found as an individual ADC ICs by themselves or embedded into a microcontroller. They’re called ADCs for short.

  1. STM32-Peripheral’s-DAC
  2. STM32-Peripheral’s-ADC: Polling Method
  3. STM32-Peripheral’s-ADC: Continuous Mode
  4. STM32-Peripheral’s-ADC: Timer interrupt mode
  5. STM32-Peripheral’s-ADC: Watchdog Mode
  6. STM32-Peripheral’s-ADC: Scan Mode
%d bloggers like this: