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

Xilinx UART simulation

Just started to use Vivado 2016.1 1. What is considered as simulation of a circuit? 2. what steps i follow to make a circuit simulation? Thank you
Nik
  • 31
  • 4
0
votes
3 answers

Read from two serial ports asynchronously

I'd like to read from two (or more) serial ports (/dev/ttyUSB0 etc) at the same time in python on Linux. I want to read complete lines from each port (whichever has data) and process the results in the order received (without race conditions). As…
Alex I
  • 19,689
  • 9
  • 86
  • 158
0
votes
1 answer

Serial data over UART gets corrupted

I'm developing an application for a development board (Beagle Bone Black) that will send some data over UART peripheral. The developing board runs Linux Kernel (some Debian distribution, 3.8.x Linux Kernel version). For sending and receiving data…
mariusmmg2
  • 713
  • 18
  • 37
0
votes
1 answer

Sensor failing. Trouble replacing Arduino's Wire library

I'm building a library to retrieve data from an adafruit sensor (sht31d) The temperature reading appears accurate, but the humidity doesn't change. My debug: temp: 23.36 humid: 0.39 The following method is called in main.c (method from…
Womble
  • 345
  • 3
  • 13
0
votes
1 answer

Latency while reading a COM Port with tserial.cpp driver

I am working on developing a UART sniffer application on VC++ 2010. I want to read the TX and RX lines of the UART between two of my devices. And i am building intelligence into my UART sniffer application, in order, to differentiate messages, log…
suhel
  • 321
  • 3
  • 12
0
votes
0 answers

UART RX issue (PIC24)

I have a problem with my PIC24F16KA102. I am using the PicKit2 UART Tool to communicate with the PC. So, these are my routines: UART1Init: void UART1Init(int BAUDRATE) { U1BRG = BAUDRATE; U1MODEbits.UARTEN = 1; // UART2 is…
alex20
  • 1
  • 1
0
votes
2 answers

serial driver startup/request functions aren't being executed

I'm writing my first serial driver for a UART (AXI UART Lite from Xilinx). I know there's one in the kernel but I'm not working in an embedded Linux environment. Using the documentation and the existing code for references, I've implemented my…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51
0
votes
0 answers

Problems with Intel Edison reading data from Arduino Uno via UART

I am currently trying to implement a bi-directional communication between Arduino and Edison. While it was easy to send commands from Edison to Arduino, the direction from Arduino to Edison seems to be a big problem. So my robot does exactly what it…
Christofer Dutz
  • 2,305
  • 1
  • 23
  • 34
0
votes
1 answer

Serial Communication issues with python and TI

I have an XBee (S2C) connected to my Mac and another XBee connected to a TI microcontroller (TIVA-C129) communicating with each other - Mac as a coordinator and TI as a router. I can communicate between them, but on the TI side, I can't read the…
nad
  • 2,640
  • 11
  • 55
  • 96
0
votes
1 answer

Raspberry Pi sending same data?

So I am using Pygame to create a display for an quadrature encoder counter. I am using EzText to prompt a user input on the display where I can change the maximum count and send updated value via UART to the microcontroller that is in charge of…
cjswish
  • 35
  • 7
0
votes
2 answers

VHDL - How to efficiently convert integer to ascii or 8-bit slv

I'm trying to output different (non-constant) values over serial. Serial communication is working fine but there doesn't seem to be an elegant, synthesizable way to convert any integer/natural/std_logic_vector/unsigned/signed type of any size and…
John
  • 775
  • 3
  • 11
  • 25
0
votes
0 answers

Reading from UART port

I'm writing a simple UART driver in linux for ARM926EJ-S. Inside the read function of the driver. If enter key (carriage return) was pressed, I want it to return the no. of bytes read till that point. uart_data = (unsigned…
balajimc55
  • 2,192
  • 2
  • 13
  • 15
0
votes
1 answer

How does one transfer a struct of data using UART?

I recently started using this UART library to transfer data. The test case works, but the library is not exactly a breeze to read through (at least for me). My goal is to store data in a struct on the receiving micro controller from a struct on the…
Womble
  • 345
  • 3
  • 13
0
votes
0 answers

UART register is not debugging to terminal

This is a UART transfer between two atmega328p controllers. I am trying to confirm that the data is being properly passed by printing a variable from the data struct on the receiving controller. My terminal is not displaying any information. I can…
Womble
  • 345
  • 3
  • 13
0
votes
0 answers

Concurrent reads and writes to a file descriptor

I am trying to do concurrent reads and writes in a C++ program to a file descriptor that connects to a UART device. What I am doing is similar to the following pseudocode fd = get_fd(); make_non_blocking(fd); while (1) { …
Curious
  • 20,870
  • 8
  • 61
  • 146
1 2 3
99
100