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

dsPic33E : UART without DMA example not working

I am using dsPic33EP512GM604. I have designed a test circuit to test UART Communication. I have downloaded a sample code from Microchip website and modified accordingly for my device and circuit designed. I am facing two issues while debugging. PLL…
skg
  • 948
  • 2
  • 19
  • 35
0
votes
0 answers

Atmel ASF SAM4E UART0 Firing Erratically

I'm attempting to set up UART communication with a GPS module but keep running into some communication error. The GPS sends a packet approximately once a second to the SAM4E16E micro, which should be trigger an interrupt and read in the data. I have…
A Butera
  • 21
  • 3
0
votes
2 answers

Select two Uart(ft232r) Programmatically

I am working with samsung t365(android 4.4.4) and it is communicate with one uart quite good. But I need to use multiple (two) uart to communicate with one android device's only one port. When I use usb hub (S-LİNK SL-U602 USB 2.0) and use uart term…
boy
  • 187
  • 1
  • 9
0
votes
0 answers

Flushing on UART doesn't work as expected

I need to write a sequence of values (buffer, ~10bytes) via UART. This sequence needs to start with a BREAK delimiter, and in my case I need to decrease the baud rate to a lower value. Details about my environment: Development board: BeagleBone…
mariusmmg2
  • 713
  • 18
  • 37
0
votes
0 answers

Reading LIN frames using Linux standard serial API

I have a development board that runs some Linux distribution, this board has some UART peripherals that are mapped into the system as a tty-like files. On a specific UART port I have connected a LIN* transceiver which is connected to a LIN bus. The…
mariusmmg2
  • 713
  • 18
  • 37
0
votes
0 answers

bootloader avr atmega128RFA1

I am also working on the bootloader. I had the problem in the following: Once the cmd 'B' is received, later, 'F' is received, then I would start to call block load. static void start_block_flash_load(uint16_t size, uint32_t *addr) { uint16_t…
jiadong
  • 135
  • 7
0
votes
1 answer

how can I get a string from the raspberry UART?

I'm programming the Raspberry Pi to get data from an Android application by bluetooth with a HC-05 module. I am using the wiringSerial library to accomplish it, because I just need to get some bytes of information (colours, timers, etc) The problem…
javipm
  • 1
  • 1
  • 4
0
votes
0 answers

UART in LPC1778 not working

I am trying to send a byte using UART1 in LPC1778 (I'm Using Keil Simulator). However I'm not able to send the byte; after detailed debugging, I came to the conclusion that data is not getting written in the UART1->THR register. This is the code…
0
votes
1 answer

Non blocking read with fixed data in input

I want use serial port to communicate with another device txdev, the problem is that txdev is sending data asynchronously and i don't want the read function to block, the good thing is that txdev is sending data with fixed size but i don't know how…
fedi
  • 368
  • 3
  • 7
  • 18
0
votes
1 answer

Master for Interrupt based UART IO

The interrupt based UART IO allows the data transfer to take place without intervention of CPU. Now the question is, if not CPU who controls this ? Is it the DMA controller or some external master who gets the control over memory bus from CPU.…
Ginu Jacob
  • 1,588
  • 2
  • 19
  • 35
0
votes
1 answer

Set serial stop bit count on Two in Windows 10 iot with RPi3 UART

I want to parameter my serial settings with 2 bit stop (in a UWP app) on a Raspberry Pi 3 to control a DMX512. My app is working and it works with a external FTDI, but not with the UART from the Raspberry Pi... I get a "parameter is incorrect" error…
extazoië
  • 41
  • 2
0
votes
1 answer

parity check in matlab and FPGA board

as the code shown, s = serial('COM3','BaudRate',115200, 'Parity', 'odd','DataBits',8,'StopBits',1); fopen(s); I add the parity check function in the serial port communication in Matlab. I create the serial port to send data to a FPGA board. In the…
Mr.Z
  • 1
0
votes
0 answers

Add a driver module to embedded linux

I have a task that consists in implementing a driver for an RF module. The RF module communicate with the blackFin609 microcontroller using UART. In a first step i created a uClinux image and download it in the BlackFin609 using uBoot and now i have…
fedi
  • 368
  • 3
  • 7
  • 18
0
votes
0 answers

Linux blocking I/O doesn't work as expected

So I have a development board which has some UART peripherals muxed to some tty*-like files. I have connected some other device on one port (RX pin), and I expect to be able to read the data that it was sent to me. The devices sends me data in…
mariusmmg2
  • 713
  • 18
  • 37
0
votes
0 answers

Image shift after receiving via serial port

I set a serial port in matlab to receive an image via UART. After receiving the image, I notice that the image sometimes shifts and sometimes not shift. As shown in figure, left part is the correct receiving result and right part shows the shift of…
Mr.Z
  • 1