Questions tagged [usart]

USART stands for Universal Synchronous/Asynchronous Receiver/Transmitter is a modern IC which comes with a [UART](https://stackoverflow.com/tags/uart/info) that can also communicate synchronously. A USART is usually an individual (or part of an) integrated circuit used for serial communications over a computer or peripheral device serial port. The tag usart can be used for programming related questions of any usart device.

A Universal Synchronous/Asynchronous Receiver/Transmitter, abbreviated USART, is a piece of computer hardware that translates data between parallel and serial forms. USARTs are commonly used in conjunction with communication standards such as EIA, RS-232, RS-422 or RS-485. The universal designation indicates that the data format and transmission speeds are configurable.

A USART is usually an individual (or part of an) integrated circuit used for serial communications over a computer or peripheral device serial port. USARTs are now commonly included in microcontrollers. A dual UART, or DUART, combines two UARTs into a single chip. Many modern ICs now come with a UART that can also communicate synchronously; these devices are called USARTs (Universal Synchronous/Asynchronous Receiver/Transmitter).

The tag can be used for questions related to programming of a usart device, please note that https://electronics.stackexchange.com/ is another stackexchange website from where you can get answers for electronics related problems. Questions on Stackoverflow should be programming related.

See also tag .

263 questions
2
votes
2 answers

AVR Xmega USART problem reading a complete string

I'm getting some problem and strange behave while try to read a complete string. I'm using a homemade demo board equipped with an atxmega32a4u and basically what i'd like to do is set a parameter (output voltage setpoint) through serial…
2
votes
4 answers

STM32F4 USART1 doesn't work correctly and return garbage data

I am trying to work with STM32F407 USART1 peripheral but it doesn't work correctly. I have read the datasheet for many times but i couldn't find any solution. I use FTDI232 for the communication. My connections are correct, i use this connection on…
2
votes
0 answers

stm32f103: Force DMA transfer complete interrupt

I'm trying to implement communication between stm32f103 and SIM900A using FreeRTOS (mutexes and stream buffers), DMA and USART3. I've enabled USART_IT_IDLE USART3 interrupt to be able to detect end of SIM900 transmittion and make force firing of DMA…
2
votes
1 answer

AVR USART Communication problems

I am trying to get the USART working correctly on a Mega2560. What is happening is every once in a while I only receive the first two characters from a string sent from the terminal (Eclipse Serial Monitor) or one character is missing from the…
Andy Braham
  • 9,594
  • 4
  • 48
  • 56
2
votes
1 answer

Arduino to Python: How to import readings using ser.readline() into a list with a specified starting point?

This is quite a specific query so please bear with me. I have 14 ultrasonic sensors hooked to an Arduino sending live readings to the serial monitor (or Pi when I plug it in) . The readings are sent as follows, with a new line between every 2 digits…
2
votes
2 answers

USART transmission - AVR (atmega169p) receives 0 or null instead of char 'a'

I'm trying to send a character 'a' with termite to my AVR via a USB-to-serial cable. This has worked before, but after a while atmel studio didn't show the controller as a device, I had to update atmel studio to a later version to recognize the…
dekuShrub
  • 466
  • 4
  • 20
2
votes
1 answer

STM32F429 Timer triggered USART DMA transfer issue

This is my first post at this forum. I am developing a MIDI sequencer device based on a STM32F429DISCOVERY board running at stock 180MHz. In order to send midi messages the USART1 is configured for 31250 bauds and the appropriate DMA is configured…
kostix
  • 21
  • 2
2
votes
1 answer

AVR32 UC3C USART interrupt based

I am trying to communicate using USART(rs232) over AVR32 UC3C. I have followed the sample given on link - http://simplemachines.it/martin/mizar32/1.6.0-AT32UC3/DRIVERS/INTC/EXAMPLE/interrupt_usart_example.c. /* This source file is part of the ATMEL…
Vishal
  • 21
  • 5
2
votes
2 answers

STM32: Receiving data via USART

I'm working on STM32 Discovery (F10x family), and I'm trying to send and receive data through USART1. int uart_putc(int c, USART_TypeDef* USARTx) { assert_param(IS_USART_123_PERIPH(USARTx)); while (USART_GetFlagStatus(USARTx,…
Thierno Barry
  • 123
  • 1
  • 3
  • 10
2
votes
1 answer

Send converted DS1820 temperature over PIC16 uart

I'm trying to send a converted temperature reading from my DS1820 to my PC using a PIC16F877 uart. I am using MPLABX and the XC8 compiler, which has a build in usart.h, though it's only useful for the PIC18 series, so I'm using usart_pic16.h which…
Markus
  • 665
  • 2
  • 9
  • 22
2
votes
1 answer

What is the function of UBRRH and UBRRL registers in atmega32?

I have found this part of code on the Internet, on how to initialise USART on atmega32. It works fine for my application but I want to understand it better. void USART_initial (void){ #define BAUD 9600 // We set the desired baud rate( here we set it…
user2149122
  • 171
  • 1
  • 3
  • 14
2
votes
1 answer

Broken data read from AVR USART transmission

I have an atmega162 chip on stk500 dev board connected to ubuntu with serial cable. On atmega, I initialize usart and write some bytes. On Ubuntu side, something comes out of the pipe, but it's definitely not what was sent... To be more precise: For…
Bob
  • 39
  • 2
2
votes
0 answers

PIC18F45K22 EUSART1 receive and show on hyper terminal

#include #include char uart_rd; void main(void) { ANSELC = 0; Open1USART(USART_TX_INT_ON & // disables transmission interrupt USART_RX_INT_OFF &// disables reception interrupt …
akumar
  • 49
  • 1
  • 9
2
votes
1 answer

stm32f0 uart programming

i'm trying to get the usart to work on my stm32f0-discovery but now i found out that the documentation about this kinda " lacks" so is there anyone who has an example of any usart working for the stm32f050? thanks. Bart Teunissen
Bart Teunissen
  • 1,420
  • 5
  • 20
  • 43
2
votes
1 answer

Reading data from RCREG on pic18f4525 from bluetooth device

I have a project in which I am trying to send data from an android phone to a pic18f4525 through a bluetooth device. Currently, I am just trying to get the pic to recognize simple letters like an 'A'. From what I understand, when the pic receives…
anonymous
  • 188
  • 1
  • 9
1 2
3
17 18