Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uart]

A UART (Universal Asynchronous Receiver Transmitter) is a piece of logic that sends and receives data on a serial port.

1
vote
2answers
43 views

Rs485 to UART convension

I need to send data from one PIC to another PIC by using RS485. As a protocol I use UART. However, I cannot be sure about RS485 transceiver and its circuit. I will be able to supply 5 V and according ...
-1
votes
1answer
30 views

How can i use HTU21D-F sensor with SC16IS750 breakout board?

i have a HTU21D-F humidity and temperature sensor. I want to take data from this sensor on I2C and transformed to UART with SC16IS750 breakout board. And i want to see this signal on an oscilloscope. ...
0
votes
0answers
28 views

How to asynchronously receive USART data using STM32 HAL?

I'm trying to accumulate any bytes that come into the UART peripheral at any moment into a circular buffer. I want to match proprietary protocol packets on this window of data, but it's unclear how I ...
0
votes
1answer
53 views

UART TO RS-232 convension

I am working on a project and I use several PIC18F26K83's for this project. For communication between PIC's I use UART. Now I also need to send data with RS232 to the user. As I have understood the ...
0
votes
0answers
35 views

Debug uart serial communication on nucleo l010RB [on hold]

I want to implement an UART interface on Nucleo L010RB. I am using a project inspired by the examples provided by ST as there is none for the board I am using. I am using this data format: 8N1. The ...
0
votes
0answers
23 views

Concurrent DMA streams handling UART

I've currently got a STM32F777VI microcontroller working with UART receive working through DMA. The problem starts when I try to receive data from 2 UART peripherals using DMA. According to the ...
0
votes
2answers
74 views

Garbage data when using UART on atmega2560

(updates at bottom) I am using an Arduino Mega with the SoftwareSerialExample sketch on it to send and receive bytes through UART on my ATmega2560 (which is actually on a Arduino Mega Board). ...
0
votes
0answers
28 views

UART communication between 2.8V and 1.8V [on hold]

I want to establish a UART communication between two modules. The Rx/Tx Voltage levels of the modules are 2.8V and 1.8V. Also, I have only 3.3V as the supply voltage on my board. Kindly guide me as ...
3
votes
0answers
77 views

How do USB to serial adapters work?

I'd like to know how a USB to serial adapter (such as the FTDI FT232RL chip) works. The way I think it does is the following: Picture a system composed of a MCU, a USB to serial adapter and the PC ...
11
votes
5answers
3k views

UART pins to unpowered MCU?

I'm using a USB-UART IC with an MCU, which is powered from a battery. The USB-UART IC is powered from USB connector, not from the battery, so that I don't need to open up a console every time when ...
1
vote
1answer
61 views

Can I use the same serial1 port to communicate with two modules?

My MCU is STM32L432KC, it has two serial ports 1 and 2. But I’m wondering if I can use the same serial port1 only to communicate with two modules (not on the same Tx & Rx pins but 4 different pins ...
0
votes
1answer
28 views

When to monitor UxSTAbits.TRMT and UxSTAbits.UTXBF

According to the reference manual on UART for PIC here(page 7), the UxSTA register have two read-only bits; TRMT and UTXBF. While writing a simple transmission program over UART, I didn't notice any ...
0
votes
1answer
39 views

Linux Drivers for FT232R [closed]

Background I am trying to build a USB Bridge circuit as part of a larger project. What I mean by that is, I wish to control a parallel out circuit based on information transmitted by the host ...
0
votes
1answer
45 views

Baud rate for Square Wave data signal via UART if frequency is given

I was trying to solve the 2013 paper set by ISRO for electrical engineers. Question no 13 made me confused. So since Idle in UART is usually high and start bit is low, we can find the 8 bit data ...
0
votes
2answers
47 views

Number of bits relation to data UART

Regarding the number of bits that is sent using UART and configuring the UART handle is unclear as well as setting the parity bit, is it odd or even. "...
2
votes
1answer
423 views

RS-485 using USART or UART port on STM32

On STM32F405 MCUs there are USART ports as well as UART ports available. If I need to implement RS-485 communication then which one of these should be used, USART or UART? Or are both of them equally ...
0
votes
1answer
65 views

Using Character Match functionality in a STM32F7 chip

I'm trying to implement a UART receiver that works by finding a '\0' in the datastream, OR when it receives 256 characters at which point the data should be processed by an interrupt. The point is to ...
0
votes
1answer
55 views

Can STM32F4 USART be used as UART?

There are 4/2 USART/UART ports in STM32F407 (Page 15) MCUs as shown in the image. I need 4 UART ports in an application. I wonder if its possible to use 2+2 (UASRT+UART) ports for my purpose in this ...
0
votes
1answer
71 views

Repurposing FT232 UART pins as parallel out

Background I am trying to build a USB Bridge circuit as part of a larger project. What I mean by that is, I wish to control a parallel out circuit based on information transmitted by the host ...
0
votes
2answers
45 views

MAX232 vs TRS202EC Line Drivers

I have used MAX232 as UART serial line driver using 5V power supply. Now I have come across TRS202 chip in a circuit. It also run with 5V power supply. Does this chip has some special difference or is ...
1
vote
3answers
108 views

Direct connection of UART serial port to USB type-C

in my project I have a USB type-C 3.1 2nd Generation (24 pins), which should provide 5V to a charge battery/battery system. In addition, there is a uC powered at 3,3V where the maximum voltage on GPIO ...
1
vote
2answers
73 views

UART/I2C Pull up resistors

I have question regarding the pull-up resistors when UART/I2C lines are running on 2.5V and GND. Is it OK if pull up resistors are used on these lines which are connected to 3.3V or Vice versa when ...
1
vote
0answers
55 views

PL-2303TA TTL UART data corruption

For a lot of projects, I use a fairly common USB to serial dongle called "Prolific USB to Serial" which uses a PL-2303 TA chip to allow USB to 3V TTL serial (i.e. this kind on Alibaba). I actually ...
-1
votes
1answer
39 views
0
votes
0answers
121 views

STM32CubeMX for UART example

I am trying to run the example given in CubeMX document UM1718, Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board.. page 230. I wonder what is the purpose of using TIM2 in ...
1
vote
1answer
70 views

Selecting true crystal settings for 328P [7.3728 MHz]

I want to make a new board working with 115200 (gsm modem) UART. so I want minimum baud error rate. I look at https://cache.amobbs.com/bbs_upload782111/files_22/ourdev_508497.html table and decide ...
1
vote
2answers
77 views

Trouble getting USART working on STM32 (stm32f103c8t6)

I started working with with stm32f103c8t6 recently and I was able to set GPIO to input and output, however when I try to set USART it just does not work. I'm trying to write directly to registers, ...
0
votes
1answer
42 views

STM32F7: activate USART Receiver Timeout Interrupt (USART_RTOR.RTOF)

I want the STM32F769NI to generate an interrupt when a pause after a received byte on USART6 was detected. I cofigured USART6 with 9600 baud in asynchronous mode and enabled the receiver interrupt ...
0
votes
0answers
31 views

16 bit VISA Write in LABView

I am trying to communicate with a LIN sensor device via a PC COM port (I built a board that converts USB to UART and then UART to LIN). The board works and I wrote a simple Matlab script to grab data ...
0
votes
1answer
61 views

No change in MPU6050 values when interfaced with PIC. Why?

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, i'm getting x-axis, y-axis and z-axis as 0. Why is there no change in readings even when i move my mpu? edit: This is the ...
2
votes
2answers
486 views

Is it possible to connect a peripheral mouse to the USB side of a USB/UART bridge that is controlled by a CP2103 chip already on an FPGA board? [duplicate]

As the title states I want to connect a USB mouse to the USB port on a USB/UART bridge. I want to determine if it is possible to communicate with the mouse using serial commands on the FPGA board then ...
0
votes
1answer
39 views

CP2102N Short Between D+ and D-

I am measuring a short between the D+ and D- lines between the USB micro connector and USB to UART chip (CP2102N). However by looking at the photos, there doesn't appear to be a short. Should I assume ...
0
votes
0answers
39 views

USART displays only half values when VCC is plugged in and repeats the same after VCC is removed [duplicate]

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, nothing's getting displayed on serial monitor. USART code works fine when used separately, but when added with the i2c and ...
0
votes
1answer
41 views

Inverted serial output from PC

I'm sending some serial data (UART) from PC to an FPGA. I have implemented a serial protocol on an FPGA according to the usual description of the uart: low bit for start bit, high for stop bit and ...
0
votes
0answers
47 views

UART Multiplexing

I have an FT232R UART<->USB converter that I would like to allow to connect to two separate devices over UART. Essentially, I'd like to have some way to "swap" the 2-wire UART lines on the FT232R ...
0
votes
2answers
76 views

DS18B20 temperature sensor with Attiny25

I would like to make a simple thermal switch with attiny25 but first I need to read the temperature values from the ds18b20 sensor. I found some codes, here are the sources: DS18B20 lib UART lib I ...
0
votes
0answers
32 views

Nothing seen on serial monitor - MPU6050 with pic16f886 [duplicate]

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, nothing's getting displayed on serial monitor. Been stuck here since many days. USART code works fine. I've tried that ...
0
votes
1answer
39 views

USART ISR on TXC breaking delays from <util/delay.h>?

I am trying to work out USART ISR's on the ATmega 328P. So far I have got the USART rx and tx working. I have come across a strange issue when it comes to the UART ISR's, though. The ISR seems to ...
0
votes
0answers
146 views

STM32 HAL UART receive timeout interrupt

I'm developing a software for the STM32l432KC (NUCLEO-L432KC) which uses 2 UARTS with DMA (RX DMA mode to DMA_CIRCULAR) using HAL. My problem seems to be quite common: the UART buffer length is ...
0
votes
1answer
46 views

Serial port framing error

I'm new to pic and uart. Just trying out simple uart transmission. I'm using mplab IDE and coolterm for serial monitoring. I'm getting serial framing error. I also used PuTTY and it was printing junk ...
-3
votes
1answer
58 views

Using UART chip without programming control registers

Is it possible to use a UART chip without programming control registers? In other words, with Factory Default configuration? If yes, which ones? UART - SPI mode. I have examined the datasheet for ...
3
votes
4answers
523 views

UART sometimes missing first few characters on ATmega328P

I wrote some code for the ATmega328P, (Packaged in a module that clones the Arduino Nano). Normally when I send UART data from my computer to these micros, it is received just fine. However I have ...
0
votes
0answers
34 views

How to set minicom to a baudrate of 6M?

I am using minicom to test the USART from my STM32. Now i want to test my USART at a baudrate of 6 MBaud, but if i type in minicom -b 6000000 it opens minicom ...
-1
votes
2answers
62 views

FPGA: possible to use PC as I/O?

I'm a beginner in FPGAs and I would like to implement a basic CPU with a simple VGA display. If I have a FPGA that has USB-UART could I use my own PC monitor as a display? What about sending input ...
0
votes
1answer
73 views

UART Transmit issue in VHDL

I'm working on a UART transmit process (uart_transmit) in VHDL (115200 baud, 8 data bits, 1 stop bit and no parity). I need the transmit line ...
3
votes
2answers
979 views

Why is there a diode on the RX pin of the Adafruit Ultimate GPS board?

I can't seem to understand why there is a diode at the Rx pin on this Adafruit Ultimate GPS board. If we are sending data to the GPS, why put a diode that prevents current flow into this pin?
0
votes
0answers
103 views

UART RX in VHDL

I have to set up a UART transmitter and receiver using a Spartan 3 board. I've got the transmitter set up already and verified it with the arduino terminal using this FTDI breakout.The receiver is ...
0
votes
0answers
40 views

Correct design procedure for UART cross

I'm designing a circuit with a uP (5V logic), Bluetooth module (3V3 logic) and a voltage level translator (TXS0102). Is it up to my consideration on where to do the cross-over? 3V3 side or the 5V ...
0
votes
1answer
59 views

PIC32MX UART Interrupt Not working

I am writing a program to send data from one microcontroller and receive the data using on another PIC32 microcontroller and display the received data on LCD. I am using UART2 of both PIC32MX to send ...
0
votes
1answer
33 views

Now, currently i am working on PIC32MX775F256H ,In this uart_rx _interrupt is not triggering . I don't know why

void __ISR(_UART1_VECTOR, ipl6) IntUart1Handler(void) { if(!INTGetFlag(INT_U1RX)) { g_intraised++; } IFS0bits.U1RXIF=0; } Please help ...