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
4
votes
4 answers

Enabling UART on Beaglebone Black

I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different…
4
votes
1 answer

How to use multiple Software Serial in Arduino nano?

I'm working on a project that needs to use at least 2 serial communications (2 TXs and RXs) alternately and in different pins. I wonder if it is possible to program the Arduino Nano for this task. I conducted research on the internet and saw that…
Erick Luz
  • 151
  • 1
  • 2
  • 7
4
votes
1 answer

Difference between uart_register_driver and platform_driver_register?

I am studying UART Driver in kernel code and want to know, who first comes into picture, device_register() or driver_register() call? For difference between them follow this. and in UART probing, we call uart_register_driver(struct uart_driver…
enfinet
  • 810
  • 8
  • 18
4
votes
1 answer

RS232 (UART) on STM32F4-Discovery (STM32F429ZIT6) with HAL library?

Background Here is some of my background so that your guy could know what related knowledge I have or I don't have. I'm totally a newbie of this kind of embedded system. And I don't really know anything about electronics, I'm a pure software guy. My…
Brian Hsu
  • 8,781
  • 3
  • 47
  • 59
4
votes
1 answer

UART binding @ runtime

When does the console and UART binding happen in Linux,is it possible to unbind the UART from console and bind it to other module(GPS) at runtime. My board is having a single UART,can i switch between console and GPS at runtime.if yes how do i do…
Abbhi
  • 41
  • 5
4
votes
2 answers

UART over USB for STM32 Micro-controller

I'm trying to implement UART over a USB interface on the STM324x9I-EVAL development board. The purpose is to send commands to a servo controller (or other hardware, for that matter) serially. I've successfully implemented the USB_Device_CDC example…
mban
  • 422
  • 1
  • 6
  • 19
4
votes
5 answers

Microcontroller to microcontroller communication library (over UART/RS232)

I want to interface two microcontrollers with a UART interface and I search a protocol to exchange data between them. In practice, I want to exchange data periodically (ie: sensors reading) and also data on event (GPIO state). I have around 100-200…
ssinfod
  • 975
  • 2
  • 15
  • 31
4
votes
1 answer

I'm looking for sample code to service the USCI (UART) on an MSP430 via DMA not interrupts

I have code that works "ok" for reading the USCI (UART) via interrupts, but the TI SimpliciTI stack is a CPU hog and it drops UART bytes when servicing the radio. I assume DMA is the way to go, but I couldn't find a full example of DMA using USCI as…
Mark Lakata
  • 19,989
  • 5
  • 106
  • 123
4
votes
3 answers

UART controller or RS232 controller? Is UART a general word?

I have a question regarding UART controller. Is UART controller a general name? i mean that if we use RS-232 protocol, we should name this UART controller, RS-232 controller and if we use RS-485 as protocol, we should call this UART controller, a…
Michelle
  • 156
  • 1
  • 5
  • 16
4
votes
3 answers

Atmel SAM4S Xplained UART

I've a SAM4s Xplained and want to use the UART1 but can't find a example or help. I tried on my own but it doesn't work. Here is my code so far: conf_uart.h #include "asf.h" //uart.h etc. included here #include #define…
Leo K.
  • 111
  • 1
  • 1
  • 6
4
votes
2 answers

UART transmission via interrupt on a 8051 microcontroller

My platform is a c8051F120 microcontroller. I would like to send (=tx) bytes via UART0 using interrupts. My design so far is the following: #define UART0_TX_SIZE 16 char UART0_tx[UART0_TX_SIZE]; short UART0_tx_uart = 0; short UART0_tx_main =…
datahaki
  • 600
  • 7
  • 23
3
votes
3 answers

scale 14 bit word to an 8 bit word

I'm working on a project where I sample a signal with an ADC, that represents values as 14 bit words. I need to scale the values to 8 bit words. What's a good way to go about this in general. By the way, I'm using an FPGA so I'd like to do it in…
Frank Dejay
  • 689
  • 5
  • 13
  • 17
3
votes
1 answer

How HAL_UART_Transmit_IT manages sending data on serial on the STM32F091VB

I'm trying to understand how the STM32F091VB manages the send of data via serial protocol with the function HAL_UART_Transmit_IT() At the moment I've a function called in the main() that creates the packet and send it via serial; it is something…
NicoCaldo
  • 1,171
  • 13
  • 25
3
votes
2 answers

Serial interaction through USB port for developing windows application on flutter

I have just arrived on flutter/dart and being novice in these languages, I am not so aware about the protocols or the libraries. I do have C++ and Fortran coding experience. What I intend to do now is to establish a serial communication between my…
PS_O5
  • 41
  • 1
  • 6
3
votes
2 answers

How is tmc2209 stepper driver IC calculating CRC?

I have tmc2209 stepper driver. I am planning to use UART for communication. The communication protocol looks pretty simple, but I can't figure out how to calculate this damn CRC. The polynomial is CRC-8 0x07. For the message 0x05 0x00 0x00 the…
andz
  • 274
  • 1
  • 3
  • 12