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

Communication between USART and SPI

Is it possible the communication between USART2 and SPI1 in stm32f10x??? I asked because USART2 clock works with APB1 and SPI1 clock works with APB2. and in practice i could have communication between USART1 and SPI1 but couldnt with USART2.
Mahtab
  • 107
  • 3
  • 14
0
votes
2 answers

synchronous mode of usart(spi mode) in stm32

I am working with the following evaluation board: SZWB-sail, STM32f103VET6 KIT v3.1 I want to use the stm32f103 usart in synchronous mode, and I used STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\Synchronous I modified…
Mahtab
  • 107
  • 3
  • 14
0
votes
0 answers

STM32F103VCT6 UART to FTDI Interface issue

ok guys, this is probably one of the most stupid things I have gotten stuck at so far but I have a problem. I have an STM32F103VCT6 mcu, and I am trying to communicate over USART1, thats PA09 and PA10. Tx line sends just fine to connected FTDI chip…
a.atlam
  • 742
  • 5
  • 17
0
votes
0 answers

Receiving data via the serial port

In my project I want to create a Windows application using C# to communicate with the Electronic Board Atxmega via Serial Port Using the Modbus protocol. I could send the write command from the PC to board and the Board send the correct response…
cherev
  • 1
  • 1
0
votes
0 answers

AVR reading from LCD hd44780

I am currently writing a small project based on avr ATmega32 and a few other components (LED, microswitch). I am using Mirosław Kardaś's LCD library and header file from ftp://novitech.pl/Ladowarka/LCD/ . Also I use this function to send data via…
GregorPL
  • 27
  • 7
0
votes
1 answer

STM32f0 Discovery USART Buffer Not Sending

I have been working on a project which needs to use the UART. I have referenced many different sources and am confident that the USART is setup correctly. I have been running through the code on the debugger and I noticed that my xmitbuffer is…
Drebin512
  • 3
  • 1
  • 3
0
votes
1 answer

How does this flush USART c code work?

So I have old code I am looking at, that I am supposed to update for a new micro controller. In the old code there is a function to flush the USART in case there is junk on it from the start up. The code is bellow: #define RXC 7 #define…
0
votes
1 answer

Floating point value not being displayed using printf function

I have been trying to display floating point value using printf function using serial port of ATmega8 but instead of displaying floating point value, '?' character is displayed. The output is Float: ? Here is the code #include #include…
avr_rookie
  • 57
  • 3
  • 10
0
votes
1 answer

USART of pic18f4550

I'm working on PIC18f4550. I want it to communicate through USART. I'm able to transmit a character but not able to receive any data. I check all the SFR's and r ri8 according to me. I'm using mplab c18 v3.46 compiler and MPLAB v8.40. #include…
0
votes
2 answers

PC received wrong data from STM32F0 usart

I tried to follow the answer of this link to configure my USART of my STM32F0 Discovery board: stm32f0 uart programming I use USART2 to send data to my PC with baudrate 9600 and 115200 both have tried. I send characters from '0' -> '9' to PC but I…
yunfei
  • 526
  • 2
  • 6
  • 20
0
votes
2 answers

Random Characters in Terminal Emulator

I am currently working on a project to select different outputs based on a text input from a laptop via USB. What I am currently trying to do is send a character out from my PIC18F1320 to HyperTerminal, I have tried using variables but was…
0
votes
1 answer

Use inheritance or code different USART variants

I have a USART class that transmits data using the tx interrupt. Now I want to create a variant that uses DMA to transmit data. What would you prefer: use inheritance to create two USART subclasses, e.g. ISRUSART, and DMAUSART? or just implement…
user2479653
  • 509
  • 5
  • 14
0
votes
1 answer

AVR Hyperterminal not displaying sensor values

I need to read values form a distance sensor in volts. The sensor sends the voltages binary values to the MUC (Atmega8) and then the atmega8 communicates to my pc using USART with and RS232 cable. The readings displayed on the PC are weird random…
Conrad C
  • 746
  • 1
  • 11
  • 32
0
votes
1 answer

USART crashes (how to manage user inputs and printfs at the same time

Hey all I have my usart setup to read interrupts from the keyboard and transmit ADC readings from my breadboard using my pic. The interrupts are keyboard commands the user can enter that will change the upper and lower limits of my simulated…
0
votes
1 answer

Identifying the first byte in each block of USART data

Is there an accepted/effective means for designating/identifying the first byte in each block of a stream of 8 bit data where the blocks update and repeat? I am using GCC. These are control settings data being passed over a USART between two uC, and…