Questions tagged [uart]

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

180 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
2answers
170 views

Having a problem programming the UART and the PPS for my PIC24F

I want to do a simple project with my PIC24FJ1024GB610, where I use the UART1 module and transmit character 'a', the Transmitter pin is connected to the Receiver pin of the PIC24F, if the receiver ...
3
votes
0answers
3k views

UART reception problem when SysTick Interrupt is enabled

I'm using a STM32F411RE-Nucleo board and generating a project with Cube MX for System Workbench. The problem is that HAL_UART_Receive function doesn't receive input ...
3
votes
0answers
510 views

clocking MSP430 UART from DCO

I'm designing a simple remote-controlled sensor. It's going to be connected with others and a master device using RS485. All it's going to be doing is transmitting the status of a few digital lines ...
2
votes
2answers
407 views

8051 baud rate calculator using 16-bit timer for software UART timing

I'm making a project in which pulsed laser beam data is sensed through many optical sensors (one sensor per port pin), so essentially, I'm going to be making 4 UARTs to sense this. Currently I am ...
2
votes
1answer
459 views

TX Polling Not Working when setting RX interrupt stm32f103rc

I was trying USART on STM32F103RC,baud 115200, sysclk 72MHz, 1 stop bit, no parity and i connected my stm with usb to serial to look my output on terminal. At first i did polling of RX and TX and send ...
2
votes
0answers
612 views

USART on STM32F411 reads junk after MCU wakes up from STOP mode

I am working on a board that uses an STM32F411 connected to a bluetooth module over USART. One of the goals is to enable Low-power consumption in STOP mode. A brief summary of the platform: The ...
2
votes
0answers
713 views

AVR interrupt setup seems to stop program execution

On ATMEGA168PA I have problems with interrupt-driven character reception over UART. When I include the line setup_interrupt() it seems that program execution stops ...
2
votes
0answers
1k views

What's up with my 74HC4052?

I am using a TI 74HC4052E to multiplex a TTL UART on a Microchip PIC32MX695F512 microcontroller. The expected behavior is for the TX and RX signals to pass through the switches unaffected; sadly ...
2
votes
0answers
374 views

pic24fj128ga310 uart not working in application, but works with PuTTY

I'm trying to connect a PIC24FJ128GA310 mounted on an Explorer 16 board with an embedded wireless module. I have been able to set up both to communicate perfectly well with PuTTY (an equivalent to ...
2
votes
1answer
166 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
1
vote
0answers
25 views

ESP32 with external power supply and serial communication between ESP32 and PC

I would like ESP32 with +3v3 external power supply. I don't want to use PC-USB's power supply through +3V3 voltage regulator. Is it possible to make serial communication between ESP32 and PC using usb-...
1
vote
0answers
92 views

UART serial communication between STM32 MCUs

Good day everyone I am new to the group. I would like to ask for your hints regarding the UART communication between 2 STM32 MCUs. Basically I have 2 STM32 MCUs connected through UART. A button on ...
1
vote
0answers
52 views

MAX487 can transmit but won't receive

I am trying to use a MAX487 chip to convert a regular UART signal to half-duplex RS485 signal and vice versa. I am using Atmega328PB as my micro controller. My circuit has no problem with transmission,...
1
vote
0answers
61 views

TXE Interrupt is not generated ARM STM32F103C6

I'm trying to write a class to have the possibility of sending data using UART by TXE (TDR is empty) Interrupt. The class uses only USART1. The class has a ring data buffer to send. I have written a ...
1
vote
0answers
47 views

9*Help debug DMA TX bytes to UART

So I'm writing drivers for DMA for transmission for now and running into a few issues. So I am transferring bytes from memory to UART peripheral with a threshold of ...
1
vote
0answers
23 views

UART Overrun Error handling when transmitting data onto a terminal (lpc2138)

I am making a driver code for lpc2138. Currently I need to read the voltage on a potentiometer with the ADC and with the use of timer, print it onto a terminal in regular intervals. There are also ...
1
vote
1answer
62 views

Checking interrupt flags for UART data receiving and transmitting on STM32

I'm trying to develop a UART receiver/transmitter for an academic project. For now i developed the UART continuous data receiving part and it works quite well. Here is the code: Interrupt file: ...
1
vote
0answers
26 views

UART communication with a Thorlabs chip

I am trying to configure a Thorlabs temperature driver (MTD415TE), using a UART-USB connection. For this, I am using a Foca v2.2 with a FT232R USB-UART cable. I am using serial terminals such as ...
1
vote
1answer
250 views

How to Receive STM32 UART echo command using HAL libraries?

I am using a STM32L Discovery board (monted device STM32L476xx), for a transmit and receive UART operation using HAL libraries. I am using a FTDI chip for serial to usb conversion as I am unable to ...
1
vote
0answers
62 views

Serial.println using Registers in ATMEGA328P

I have worked with ATMEGA328P using Arduino libraries, but new to actual register level coding. To start with that, I have written code for basic Serial.print in ...
1
vote
1answer
59 views

MSP432+BLE+ Debugger interfacing

I would like to Interface a BLE to a MSP432 microcontroller in serial. The BLE has a inbulit Atmel controller. I have a firmware for BLE in keil. Intially I have flashed the firmware to BLE directly ...
1
vote
0answers
486 views

RC filter for UART

I am working with a device. Block diagram looks like this: I was facing a noise challenge and asked a question here. I implemented the RC filter design suggested by @analogsystemsrf and got good ...
1
vote
0answers
101 views

USART6 STM32F746NG isn't working

I'm having trouble configuring the USART6 in my STM32F746NG. I am setting up the USART6 to enable UART comunication, using the code below to initiate it and also create an echo function. ...
1
vote
0answers
99 views

How can I estimate the minimum baudrate for a given bitrate?

My circuit performs data acquisition at 250 samples/s, 24 bits/sample and transmit this information to the local host (PC) through a bluetooth module that implements the UART protocol. As far as I ...
1
vote
1answer
149 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
1answer
394 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 ...
1
vote
1answer
129 views

USB UART Bridge with capability of handling fast charge VBus

I am trying to design a charging circuit which support QuickCharge but also I want to add USB-UART bridge to communicate with on board MCU. How can I establish voltage level safe communication ...
1
vote
1answer
259 views

Does not trigger an interrupt DMA when reading SPI. Last byte transaction not coming

I use DMA for reading with SPI flash using USART. MCU - master, flash - slave. I read 1029 bytes per transaction. Exchange algorithm: I activate the flash (CS = 0) I configure the DMA channel to ...
1
vote
1answer
79 views

Best way to handle 100 GPIO on AT32UC3C0128C

I want to monitor 100 GPIO pins on the AT32UC3C0128C and indicate the changes on the USART (RS-485 transceiver). In the code snippet below, I have set one of the pins as an input with the internal ...
1
vote
1answer
151 views

SIM5320A UART Troubleshooting

I recently bought a 3G SIM5320A Shield Click here.I'm facing some problems while communicating with the module using a USB to serial converter.The module doesn't seem to respond to the AT commands. I ...
1
vote
0answers
1k views

HC 05 bluetooth module not working with stm32

I'm trying to get a HC-05 bluetooth module working with stm32f103c8t6 module(blue pill). I used this usb to serial module to test each of the aforementioned boards and this Android app to connect to ...
1
vote
1answer
718 views

Question on UART parity check verilog source code

Why is parity_value equal to value of 1 ? check_parity verilog source code ...
1
vote
1answer
2k views

stm32f0 uart1 rx interrupt

I have stm32f030f4p6 Microcontroller and using iar Compiler , library cmsis , After confige Uart1 the RXNE , FE and CMF bits return 1 whereas not recieve or send was done if I dont set RXNE bit to 0 ...
1
vote
0answers
234 views

Half-duplex Bit-Banged Port for 8051 microcontrollers too slow?

I was looking at: https://www.maximintegrated.com/en/app-notes/index.mvp/id/3524 and it claims that one can achieve over 2mbps on a 32Mhz clock when bit-banging with an 8051. That means 1mbps on 16Mhz....
1
vote
0answers
2k views

Getting UART Overrun Error with HAL_UART_Transmit() vs HAL_UART_Transmit_IT()

On my main board I have a STM32F103ZET6 and I use HAL library V1.6 in order to program it.There is also a sensor board which is connected to my main board and this sensor sends me data through UART ...
1
vote
1answer
486 views

Communication between laptop and atmega2560 via two Xbee S2C

I want to send data to atmega 2560 from my laptop using two Xbee S2C. The first Xbee , let's label it A , is to be interfaced with the laptop. The second Xbee , let's label it B , is to be interfaced ...
1
vote
0answers
358 views

Sampling analog signal at 100khz with raspberry pi

I want to sample a ultrasonic wave at 100 Ksps. Currently i am using Raspberry pi and an external adc communicating with each other vis I2S at 96Khz. Since raspberry pi cannot support higher speed ...
1
vote
0answers
248 views

RXD line problem

Hi below is my setup block diagram to understand Setup description: I have two board , board 1 and board 2. Board 2 is third party board we purchase. Board 1 has on board SMPS which convert 230VAC to ...
1
vote
0answers
231 views

CP2108 with level converter txb0108 - UART communication TTL and LVTTL

My project uses four different modems (one 3v3 LVTTL(?) and three 5v TTL) for AT communication. Each modem has a UART interface (TTL compatible). For my application, i chose the CP2108 to ...
1
vote
0answers
329 views

Serial Connection ATMEGA328p

I wrote up a function to connect via UART and print a string for debugging purposes. But my logic does not add up somehow... I see the line "Random Number" printed in the console but blazingly fast... ...
1
vote
0answers
62 views

Host device data transfer to 10 slave devices

I have a project I'd like to prototype that requires a host device that can communicate with up to 10 small hand-held slaves at one time. I looked at the latest Raspberry Pi 3 and it may possibly ...
1
vote
0answers
155 views

Xbee TX pin voltage wrong when booting with UART connected

I'm interfacing an XBee PRO 900 HP with a Beaglebone Black using UART5 on the BB. I'm using the 5v interface board from Adafruit (XBee Adapter kit - v1.1) I'm have been having intermittent problems ...
1
vote
0answers
606 views

ESP8266 and ATmega328 UART communication, gets() function

I'm trying to get an ATmega328 and an ESP8266 to talk to each other over UART. In the attached minimal example, I have an LED on pin 16 (B2) that should start on and do a slow blink to show data was ...
1
vote
0answers
466 views

UART baudrate steps

I'm trying to connect 2 devices to each other based on the UART peripheral. First one support up to 1.875 Mb/s & the other one up to 1228.8 KBd. Both work correctly on the 115200 but I need more ...
1
vote
0answers
2k views

STM32 Shutting down debug session

I'm facing with a problem regarding debug session. When I start debug session, after the configuration of USART2 the debug session is closed. Keil message: Cannot access target. Shutting down ...
1
vote
0answers
41 views

XBee TX line Drop

I am using an Xbee 900HP in API mode using UART. I am transmitting a command to it using my micro and expecting a response. Based on my Oscilloscope waveforms the data i expect back is being received ...
1
vote
0answers
563 views

pic32mx220 won't enter uart rx interrupt handler

I'm kinda new to pic32 and have been trying to get the uart to enter the ISR when it receives a byte on the Rx pin. My uart setup works fine both sending and receiving (if I use blocking to read the ...
1
vote
0answers
2k views

How to troubleshoot serial communication?

I connected my computer to a RM-BR300 controller to read its data, to try and mimic its functionality in the future. I'm using RealTerm and a USB to RS422 converter for the job - here's the result: ...
1
vote
0answers
103 views

Internal Programmable ROM of CP2102 (USB to UART)

I am using CP2102 device (USB to UART) in my project. It has internal programmable ROM t0 configure product ID. I tried in there tool via USB and it works. Now, I want to programming the ROM via my ...
1
vote
0answers
86 views

Can't run 460800 baude rate on Nexys2

I have Nexys2 Spartan 3E board and I am running Ken Chapman's UART IP core, I need to transmit data to another device at a baude rate of 460800. I was successful in sending data at 115200 and 9600 ...