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
3
votes
1 answer

Embedded software program block, I2C?

I have experienced a very strange problem in developing my application for the ST Microelectronics iNemo. My applications consists in: Gyroscope reading with SPI Accelerometer and Magnetometer (in the same device) reading with I2C Attitude…
Daniel
  • 141
  • 3
  • 14
3
votes
1 answer

STM32F3 DISCOVERY USART doesn't work

I'm trying to use HC-05 with my STM32F3 DISCOVERY but I have a problem with getting USART to work. It just doesn't work, no matter if I read data from HC-05 manually or use interupts. I tried to run this bluetooth module on arduino and it worked at…
3
votes
2 answers

Why python prints a single multi-digit numbers in multiple lines?

I wrote a program in python that receive a binary number from Atmega32 (a microcontroller) via USART and prints it in output. in the other hand, My Atmega32 read its PINA on the interrupt firing and sends its value to the computer using USART. this…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52
3
votes
1 answer

UART write buffer with PDC

I'm having a problem with writing to a USARt using const char buffer and char arrray. Here is my UART write function: unsigned int USART_Send( unsigned char *p_pucData, unsigned int p_unLen) { …
Ashok
  • 601
  • 1
  • 17
  • 32
3
votes
1 answer

How to use TSL2301 and make clock delay in usart

I am working on a line scan ccd sensor named TSL2301 .I want to read pixels by USART of stm32f103 but always i just could receive 0xFF , did anybody work with this sensor to help me? I used Usart synchronous mode of STM32f10x , I sent some order to…
Mahtab
  • 107
  • 3
  • 14
3
votes
3 answers

Digis XBee Series 2 Firmware freezes/crashes when sending too much serial data. Reliability is bad

Sympthoms: I have several XBee 24-ZB series 2 here, and they are hooked up on a PC as the coordinator and on an end device (AVR) as a router (no sleep). When sending data in larger amounts, it could happen that the router/end device XBee suddenly…
John
  • 7,507
  • 3
  • 52
  • 52
2
votes
1 answer

How to send float to USART data register (ARM-M4)?

EDIT: The issue is only on STM32CubeIDE, on Keil-MDK it works. I have been trying to send a message using the USART port of STM32F411 MCU. I wrote a function which takes char* and ellipsis as input. Ideally you would convert the numbers into a…
Sajil
  • 87
  • 8
2
votes
2 answers

USART3 Initilization STM32F103RB

I'm a beginner when it comes to using STM chips, and I have a project where I have to use all three USART terminals in Uvision. I am using an STM32F103RB chip, and I already got the first two USART_init functions working, but I can't get the third…
KonopkaD
  • 21
  • 2
2
votes
2 answers

I cannot access STM32 DMA register when configuring it

I currently use standard peripheral library to write a driver that enable memory to USART6_TX DMA transfer on a STM32 F407 ZGT6 chip. However, I tried for a long time but the initialization keeps on failing: DMA_GetCmdStatus always returns DISABLE.…
Brad
  • 23
  • 4
2
votes
2 answers

Why can't I put command in ATMEGA64A-AU serial?

I've bought an ATMEGA64A-AU and I connected its USART0 to FT232RL(USB to serial) and its USART1 to GSM module. I use USART0 for monitoring only purpose and USART1 to communicate with GSM module. I wrote these to enable USARTs: void USART0_Init(…
diadra
  • 23
  • 3
2
votes
0 answers

stm32 usart receive timeout

I am trying to read informations from a external sensor by USART, using a Nucleo stm32wb board. The sensor is using a 9600 baud rate and I know that it is fonctionnal. My pin connections are also good. Furthermore, I can see on my logic analyzer…
Sidka
  • 86
  • 4
2
votes
0 answers

Why we use FLASH.constrain() and RCC.constrain() in embedded RUST using STM32F30x?

I'm new to Rust. Currently I'm working on embedded rust using STM32F303 Discovery board. I am facing a lot of problems while accessing a registers and don't know How to access RCC, FLASH, TIMER and many more in order to complete the task. Can…
2
votes
1 answer

Using Interrupt to Transmit via USART on AVR MCU

I believe I understand how to use interrupts to receive serial data on UART of an ATmega328p, but I don't understand the mechanics of how to transmit data. Here is a basic program that I want to use to transmit the character string "hello" using…
mike
  • 137
  • 2
  • 16
2
votes
2 answers

Weird b'\x' data while communication between avr and python serially

I'm trying to send and receive data between python and atmega128 avr c script. I am getting weird type of byte I don't understand. I've tried to read data in python code but the results look kind of like b'\x00' b'\x06' b'\x9e' b'f' b'\x06'. What is…
FLYnn
  • 117
  • 9
2
votes
2 answers

How can I implement interrupt for serial USART communication for ATmega328P/Arduino Nano?

I have a small project for school that requires me to load data in the EEPROM of an ATmega328P through the USART serial communication. I'm going to figure out the EEPROM read/write myself. I have problems sending data using interrupts. Basically, I…
1
2
3
17 18