5.1.4.2.3. Informational Requirements

Requirement: USART Definition REQ_INT3_17310281818 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART (Universal Synchronous and Asynchronous Receiver-Transmitter) is a peripheral module that facilitates serial communication between devices.

Requirement: Serial Protocol REQ_INT3_17310281819 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART uses a serial protocol to transmit and receive data bit by bit over a single communication line.

Requirement: USART Registers REQ_INT3_173102818200 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The following USART registers are used in configuring and operating the USART peripheral: - Status Register (USART_SR) - Data Register (USART_DR) - Baud Rate Register (USART_BRR) - Control Register 2 (USART_CR2) - Control Register 3 (USART_CR3) - Guard Time and Prescaler Register (USART_GTPR)

Requirement: USART Modes of Operation REQ_INT3_17310281820 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART supports two primary modes of operation: asynchronous and synchronous.

Requirement: Asynchronous Mode REQ_INT3_17310281821 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

In asynchronous mode, the USART transmits data without a shared clock, using start and stop bits for data synchronization.

Requirement: Synchronous Mode REQ_INT3_17310281822 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

In synchronous mode, the USART uses a shared clock between devices for faster and more efficient data transfer.

Requirement: Control Registers REQ_INT3_17310281823 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

USART control registers configure settings such as baud rate, data size, mode of operation, parity, and DMA support.

Requirement: Baud Rate REQ_INT3_17310281824 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The baud rate determines the speed of data transfer in bits per second and is configurable through the Baud Rate Register (BRR).Formula is fPCLK / (8 * (2-OVER8) * USARTDIV) wjere fPCLK is the frequency of clock, OVER8 configuration of oversampling and USARTDIV value om the BRR register.

Requirement: Parity Control REQ_INT3_17310281825 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART provides error detection through parity control, supporting even, odd, and no parity modes.

Requirement: DMA Support REQ_INT3_17310281826 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART integrates Direct Memory Access (DMA) to enhance data transfer efficiency and reduce CPU load.

Requirement: Single-Wire Mode REQ_INT3_17310281827 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART can operate in single-wire mode, using one pin for both data transmission and reception.

Requirement: Half-Duplex Mode REQ_INT3_17310281828 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART supports half-duplex communication, where data transmission and reception occur on the same line but not simultaneously.

Requirement: Shared Clock REQ_INT3_17310281829 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The synchronous mode of USART relies on a shared clock signal to synchronize data transfer between devices.

Requirement: USART Transmitter REQ_INT3_17310281830 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART transmitter sends data to an external device through the TX (transmit) pin.

Requirement: USART Receiver REQ_INT3_17310281831 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART receiver accepts incoming data from an external device through the RX (receive) pin.

Requirement: USART Oversampling REQ_INT3_17310281832 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART supports oversampling modes (8x and 16x) to improve signal accuracy and communication reliability.

Requirement: Error Detection REQ_INT3_17310281834 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART includes error detection features like frame errors, parity errors, and noise detection for reliable communication.

Requirement: USART Clock Configuration REQ_INT3_17310281785 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The USART peripheral operates with an external clock, which must be enabled before configuration.

Requirement: Pin Configuration for USART1 REQ_INT3_17310281786 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

For USART1, the TX and RX pins are mapped to PA9 and PA10, respectively.

Requirement: Pin Configuration for USART2 REQ_INT3_17310281787 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

For USART2, the TX and RX pins are mapped to PA2 and PA3, respectively.

Requirement: Pin Configuration for USART6 REQ_INT3_17310281788 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

For USART6, the TX and RX pins are mapped to PC6 and PC7, respectively.

Requirement: Alternative Function of USART Pins REQ_INT3_17310281789 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The USART TX and RX pins must be configured as alternate functions for serial communication.

Requirement: Baud Rate Register REQ_INT3_17310281792 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The USART_BRR register is used to configure the baud rate by setting the mantissa and fraction bits for accurate timing.

Requirement: USART Data Register REQ_INT3_17310281793 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

Data is read from or written to the USART_DR register during the transmission or reception of data.

Requirement: USART Control Register 1 (CR1) REQ_INT3_17310281794 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The CR1 register controls essential USART parameters such as enabling transmission (TE) and reception (RE) and enabling the USART itself (UE).

Requirement: USART Control Register 1 (CR1) Bits for TX/RX Enable REQ_INT3_17310281795 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The TE bit in CR1 is used to enable the transmitter, and the RE bit is used to enable the receiver for USART operation.

Requirement: Start and Stop Bit Definition REQ_INT3_17310281796 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

Data transmission through USART starts with a start bit (low level) followed by data and ends with one or two stop bits (high level).

Requirement: USART Frame Format REQ_INT3_17310281797 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART frame consists of an idle line, a start bit, data bits (8 or 9 bits), and a configurable stop bit.

Requirement: USART Interrupts REQ_INT3_17310281801 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The USART can generate interrupts based on different events such as data register empty, transmission complete, or error conditions.

Requirement: DMA for USART Communication REQ_INT3_17310281802 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

Direct Memory Access (DMA) can be used with USART to buffer data for faster data transmission and reception.

Requirement: USART Wakeup Mode REQ_INT3_17310281803 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

USART supports wakeup from mute mode through address detection or idle line detection.

Requirement: Multiprocessor Communication Mode REQ_INT3_17310281804 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

In multiprocessor communication mode, the USART detects address frames and supports communication with multiple devices.

Requirement: USART Mute Mode REQ_INT3_17310281805 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

Mute mode allows the USART to ignore incoming data, typically for noise reduction or when the receiver is unavailable.

Requirement: USART FIFO Buffers REQ_INT3_17310281807 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART may include FIFO buffers for both transmit and receive operations, improving data throughput by reducing interrupt frequency.

Requirement: USART Low Power Mode REQ_INT3_17310281808 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART can operate in low power mode, reducing power consumption when idle or during transmission breaks.

Requirement: USART Wakeup from Stop Mode REQ_INT3_17310281809 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Low

The USART can wake up from stop mode by detecting an active signal on the receiver pin or by address detection.

Requirement: USART Data Frame Length REQ_INT3_17310281810 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The length of a data frame is configurable between 7 and 9 data bits, depending on the system’s requirements.

Requirement: USART Receiver Time Out REQ_INT3_17310281811 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Low

The USART receiver has an optional time-out feature to stop reception if no data is received for a configured period.

Requirement: USART Clock Polarity and Phase REQ_INT3_17310281812 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The clock polarity and phase can be configured for different data transfer modes (e.g., SPI compatibility mode).

Requirement: USART Low-Noise Design REQ_INT3_17310281813 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Low

The USART supports low-noise design with built-in noise suppression to improve data integrity during transmission.

Requirement: USART Mode Selection REQ_INT3_17310281814 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART can operate in different modes, including asynchronous, synchronous, and half-duplex modes.

Requirement: USART Communication Protocols REQ_INT3_17310281815 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: High

The USART supports multiple communication protocols, such as full-duplex, half-duplex, and multi-processor communication.

Requirement: USART Flow Control REQ_INT3_17310281816 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

Flow control can be enabled in USART to manage data transmission, using either hardware or software control mechanisms.

Requirement: USART End of Frame Detection REQ_INT3_17310281817 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Informational
priority: Medium

The USART is capable of detecting the end of frame conditions, such as the stop bit, for proper synchronization of data communication.