Questions tagged [uart]

A Universal Asynchronous Receiver/Transmitter (UART) is used for serial (where each bit of data is transmitted along the same connection) communications over a computer or peripheral device serial port.

UART is usually an individual (or part of an) integrated circuit used for serial communications over a computer or peripheral device serial port. UARTs are now commonly included in microcontrollers.

Simple serial link via UART uses two lines TxD and RxD, other than ground, for transmit and receive data:

Simple UART connection

It is asynchronous communication. Hence data transfer settings (number of bits, baudrate etc.) should be matched between devices wanting to communicate. The electric signaling levels and methods are handled by a driver circuit external to the UART.

More information:

1817 questions
5
votes
1 answer

How tty driver interacts with UART driver during read/write opetations?

I am working on modification/development of a SDIO UART driver. And would like to know: How tty driver interacts with UART driver during read/write operations? I am interested in buffer management. I searched over net, however did not find…
TheCottonSilk
  • 8,662
  • 2
  • 26
  • 37
5
votes
1 answer

changing the baud rate of a serial port on a raspberry pi 3

I installed lineage os 14 on raspberry pi 3 I connected a gps module with UART port, however, the baud rate of GPS is 9600 but baud rate of /dev/ttyS0 is 115200 I want to change the baud rate of ttyS0 in order to read GPS data I tried stty…
Daniel.V
  • 2,322
  • 7
  • 28
  • 58
5
votes
0 answers

Linux UART (16550A) RS485 mode

I'm trying to configure my serial port (/dev/ttyS0) to automatically control RTS pin. I already can do it from user space by ioctl TIOCM_RTS flag toggling but it's too slow in my case - slave device respond too fast and I miss it. I tried to achieve…
KPR
  • 101
  • 8
5
votes
1 answer

Why does UART transmit interrupt fail to work in this case?

I am using stm32f0 MCU. I have a simple UART echo code in which every byte received will be transmitted out. I tested that it works. Here it is; uint8_t Rx_data[5]; uint32_t tx_timeout = 0; //Interrupt callback routine void…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
5
votes
3 answers

Maximum Beaglebone Black UART baud?

I have been looking around for UART baud rates supported by the Beaglebone Black (BB). I can't find it in the BB system reference manual or the datasheet for the sitara processor itself. I am using pyserial and the Adafruit BBIO library to…
InvictusRex28
  • 73
  • 1
  • 10
5
votes
1 answer

STM32F4 Handling peripheral error while making a DMA Transfer (RX)

I am trying to communicate with the UART peripheral using DMA for both RX and TX. I am using the HAL library that is supplied by ST (Generated with STCubeMX). I am handling a UART channel with 1.5MBaud - so in order to not loose any data, I've…
assaf
  • 210
  • 2
  • 9
5
votes
3 answers

STM32F4 HAL DMA UART TX

I'm trying to get UART transmit working over DMA on an stm32f405. This part of my application is designed to send out text strings as a command line interface. I have the RX part of the UART working with DMA fine (using 1 byte circular DMA to handle…
HammerFet
  • 841
  • 3
  • 10
  • 16
5
votes
1 answer

Bit-banging with USB to Serial UART

I just bought the UM232R USB Serial UART Development Module which uses a FT232RL chip to emulate a UART-like interface over USB. I actually just bought this complicated module for a very simple purpose: to trigger a very simple LED circuit that I…
Forivin
  • 14,780
  • 27
  • 106
  • 199
5
votes
1 answer

How to view PIC32 UART1 output in MPLABX simulator?

I am using MPLABX v1.80 , xc32 V1.21 and Microchip's sample uart code (the basic sample). I have selected the simulator in project properties. I have enabled UART1 for window output in project properties. I have tried compiling using both UART1 and…
monzie
  • 565
  • 5
  • 15
4
votes
2 answers

STM32F4 UART half word addressing

Trying to roll my own code for STM32F4 UART. A peculiarity of this chip is that if you use byte addressing as the GNAT compiler does when setting a single bit, the corresponding bit in the other byte of the half word is set. The data sheet says use…
4
votes
0 answers

Serial Communication with any GPIO of Raspberry Pi

I need to connect a serial device to gpio pin of a raspberry pi. My UART port is already used. For that, I need a simple code which can convert any gpio like Tx and Rx pin. I wrote a code but it could not receive data properly at higher baudrate.…
Akash Nil
  • 693
  • 10
  • 26
4
votes
1 answer

UART initialisation: Prevent UART to pull RTS high

I'm writing a RS485 driver for an ARM AT91SAM9260 board on Linux. When I initialise the UART, the RTS signal line gets high (1). I guess this would and should be the standard behaviour in RS232 operation mode. In RS485 mode however this is not…
Maus
  • 2,724
  • 5
  • 32
  • 37
4
votes
1 answer

Bus error debugging on arm cortex m4

I am trying to debug a precise bus error on a Arm cortex m4 chip. The board is a teensy 3.1 with a freescale MK20DX256VLH7. The error only happens when i actually send characters with the uart and results in a forced hard fault because i dont have…
P. Brand
  • 111
  • 1
  • 6
4
votes
3 answers

Cannot transmit every characters through UART

I am using stm32f0 MCU. I would like to transmit every single byte received from the uart out of the uart. I am enabling an interrupt on every byte received from uart. My code is quite simple. uint8_t Rx_data[5]; //Interrupt callback routine void…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
4
votes
1 answer

How to make UART communication using ST-Link V2?

I have an STM32F417IG mcu connected with my PC. I use CoIDE and an ST-Link\v2 ISOL, to program and debug. I am looking for a way to connect serially to the target via the same setup. My motivation is that i want to send input to the board while I am…