MBSP

Microcontroller Board Support Package

User Tools

Site Tools


uart_group

This is an old revision of the document!


UART group

This group defines all used Universal Asynchronous Receiver Transmitter (UART) interfaces.

Each UART is a sub group with the UART name as the group name.

    "UART": {
        "debug_uart": {
            "pad_tx": "PA5",
            "pad_rx": "PA6",
            "pad_cts": "PA7",
            "pad_rts": "PA15",
            "bits_per_packet": "8",
            "parity": "None",
            "stop_bits": "1",
            "baud_rate": "115200",
            "hardware_flow_control": "no",
            "receive_buffer_size": "100",
            "send_buffer_size": "500",
            "peripheral" : "UART0",
            "IRQ" : "20", 
            "IRQ_priority" : "0",
        }
    }

pad_tx

The UART will send data on this pin. (Idle = High). Either this or the pad_rx must be given.

pad_rx

The UART will receive (read) signals on this pin. Either this or pad_rx must be given.

pad_cts

Clear to send signal for flow control. Will not be used if not defined.

pad_rts

Request to Send signal for flow control. Will not be used if not defined.

bits_per_packet

defines the number of data bits. Possible values are:

  • 7
  • 8
  • 9

type: enum

default: 8

parity

defines the parity bit. Possible values are:

  • None : no parity bit used.
  • Odd : the parity bits value makes sure that the packet contains an odd number of bits with value “1”.
  • Even : the parity bits value makes sure that the packet contains an even number of bits with value “1”.

type: enum

default: None

stop_bits

defines the number of stop bits. Possible values are:

  • 1
  • 1,5
  • 2

type: enum

default: 8

baud_rate

defines the number of bits send per second.

type: int

default: 115200

hardware_flow_control

defines if the Request to Send (RTS) and Clear to send (CTS) signals should be used for flow control. Possible values are:

  • off (RTS and CTS pins are not used.
  • RTS only
  • CTS only
  • on (RTS and CTS signals are used)

type: enum

default: off

receive_buffer_size

defines the number of bytes in the receive buffer of the driver.

type: int

default: 100

send_buffer_size

defines the number of bytes in the send buffer of the driver.

type: int

default: 500

peripheral

name of the UART peripheral to use.

type: String

IRQ

The interrupt number of the peripheral.

type: int

IRQ_priority

The interrupt priority of the interrupt.

type: int

uart_group.1755409175.txt.gz · Last modified: by lars