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

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

Restart Rx USART + DMA in STM32L1

I am using an STM32L1 on a Nucleo-L152RE board. I have to devices I control through serial running at rather high baudrates, so I am trying to enable DMA on the USART. With the code below I can launch ...
0
votes
1answer
53 views

Avoid Overrun Error in PIC18F46K80

I am using PIC18F46K80, at a baud rate of 115200, a Stop Bit of 1 and no parity. I am sending data from a C# application(Baud Rate 115200, Stop Bit-1 and No Parity) to the PIC. After send some bytes ...
0
votes
1answer
37 views

How to set baud rate 57600 with CH340G?

I'm working on android drivers (native code) for CH340G USB-to-serial chip. I've successfully tested it with baudrate 115200 and Arduino Uno CH340G but for some reason it does not work with baudrate ...
0
votes
2answers
26 views

Tm4c nested uart interrupts- does each com finishes it's run before the next one executed?

Board: Tiva™ C Series TM4C1294 EK-TM4C1294XL My program is listening to 2 UART ports (UART 3 and 7) I've encounter a problem that I'm losing some bytes received and I'm suspecting that this issue ...
1
vote
1answer
55 views

AVR sending message via UART

I want to send char though Atmega2560 to the xbee coordinator(AT mode), and router(which is connected to the computer) should receive that char. I can correctly receive messages from router -> ...
0
votes
0answers
46 views

Communication between two XBee S2 in AT mode

I want to establish a simple wireless link between my two AVR microcontroller boards; (one is ATmega8 and second is ATmega16), using XBee series 2 modules. I simply want to send some data from one ...
-1
votes
2answers
65 views

Do we need MAX232/ADM3203 for UART communication with PIC32MX795F512L [closed]

I am trying to communicate UART with PIC32MX795F512L. I am really confused with this thing that we should use MAX232/ADM3202 or pins will directly commnicate. Because in some microcontroller, it is ...
1
vote
0answers
72 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: ...
0
votes
1answer
31 views

PIC18F45J50 UART remappable problem

Hello i need help with the Remappable UART communication on pic18f45j50. so here is my code compiled using Mikroc Pro for pic ...
0
votes
0answers
31 views

Multiple bytes of data not being read from PIC18F46K80

I am trying to receive multiple bytes of data from the hyper terminal to PIC18F46K80. This is my source code ...
0
votes
3answers
77 views

What is the maximum number of bytes that can be sent through USB-to-serial COM port at one go?

Suppose someone uses hyper-terminal to send a very long ASCII string at a COM port. This COM port is created by FTDI USB-to-serial port cable. The cable used is ...
0
votes
1answer
45 views

6Mbaud UART with Bus Pirate V4

I would like to sniff data on an SPI bus running at a clock rate of 6 MHz. I would like to use the Bus Pirate V4 for this task. The sniffing itself is supported up to 10 MHz, the problem is getting ...
0
votes
0answers
36 views

Sending data from Atmega8 to Android through HC-06

I am building up a communication between Atmega8 and Android device through HC-06. The uC can read the comfortably. But when it sends data the received data is garbage. The baudrate of working UART is ...
1
vote
1answer
124 views

Why ARM Cortex M0 prints incorrectly Hello World on UART?

I am new to ARM CORTEX M0. I am trying to use the Tx pin of UART as debug port. If I use the XDS200 debugger to step through the code, I am able to see the characters and I can see "Hello World" ...
0
votes
1answer
58 views

Contiki: Serial Line IP via SPI

I am working on Contiki's cc2530 port (customizing for my custom radio). I do not unserstand how can i make SLIP work with SPI? I understand that SLIP is similar to UART (it is UART without parity, ...
0
votes
1answer
36 views

FT232RL TX/RX Direction

I want to basically embed an FTDI cable in my board to avoid confusion with the RX/TX pins, wrong cable, etc. I really want to make sure I choose the direction correctly though. I have ...
1
vote
1answer
38 views

Stm32f429 usb cdc to pc

I want to put together a simple library to communicate between stm32f429 and pc via usb cdc vcp. I noticed many examples from stm create a usb uart bridge on the mcu. I am trying to understand the ...
1
vote
2answers
82 views

FTDI UART programming (first steps)

Im currently trying to leave the arduino board aside and starting program microcontrollers on pcb boards via programming pins, im using an ATMEGA328u from this premade board, For starters im trying to ...
0
votes
1answer
30 views

Leakage current in UART RXD

I have connected a microprocessor to a bluetooth module using UART. During the sleep of my microprocessor, I measured 7.8uA flowing from uC's rxd to bluetooth module's txd. I measured 70k pull-up to ...
4
votes
2answers
225 views

does changing UART stop bit number configuration (receiver side) affect message correctness

I'm using USART on board to display messages on desktop PC terminal using Realterm I noticed that, when I change stop bit number on Realterm, it does not affect the correctness of the message, ...
0
votes
0answers
18 views

Flashing the NOR Flash over UART

I am using LSI SAS2x24 SAS Expander IC in my system. It needs an external NOR Flash to load the image from. For putting image in Flash, UART interface is given in LSI. So, we are trying to load the ...
1
vote
0answers
29 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 ...
2
votes
1answer
68 views

PIC16 I2C interrupt does not occur if serial port enabled

I'm using a PIC16F1825 mid range PIC and I've used it with a UART and SPI for a good while without issues. When I added code to handle I2C (instead of SPI - it's either one or the other on this PIC) I ...
0
votes
0answers
46 views

Why is flow control adding bytes to my data stream?

I'm working with an mbed LPC1768 microcontroller and a BLE112 Bluetooth LE Module. I wasn't able to get the two to communicate, and I had a hard time figuring out why. However, when I hooked it up to ...
0
votes
1answer
408 views

STM32F0 UART + DMA + Interrupt with STM32CubeMX HAL 1.2.1 problem

Hello fellow electronics engineers! I'm having a bit of a problem with setting up the STM32F072-Nucleo board as a small shell (I want to send commands via UART and set/get various settings of the ...
1
vote
0answers
73 views

Jitter in UART start-bit

Experimental setup: STM32F103RB microcontroller, Keil uVision 4.72, USART2 on PA.2, PA.3. Experiment: initialize USART for 9600 baud/s, initialize PORTA, initialize SysTick (for delays, interrupt ...
0
votes
0answers
18 views

What IRQ to use for USART transmission handling under SAM3x8e?

I've made the USART support for SAM3x8e arduino based board. The MCU has TXRDY, ENDTX, TXEMPTY, TXBUFE interrupts. What would be the best choice to be used in IRQ driven transmission handling? Now I ...
0
votes
1answer
52 views

How to setup SAM3x8e IRQ handler for USART?

I'm making UART support for SAM3x8e based Arduino Due board. I would like to clarify questions I can't resolve by searching the web. Is it only one IRQ handler per MCU component like USART? This ...
1
vote
1answer
260 views

Software Serial alternative with AVR (Two Serial/UART ports in atmega328p)

Arduino pins can be used as UART using the library SoftwareSerial.h Is there any alternative ...
0
votes
1answer
81 views

What can you do with UART ports in Microcontroller? [duplicate]

In my Microcontroller there exist UART ports. But I have not understood well how they can be used. Can I use them for TTL or RS232 communication? And would it be also possible for me to use them to ...
0
votes
0answers
30 views

Systick Timer problem

I am trying to use the systick timer to update a variable which stores millisecond elapsed on a STM32F051 in Coocox ide 1.7.8 . I also want I2C and UART communication in my project. I managed to get ...
0
votes
1answer
79 views

Virtual terminal not showing data

I am new to PIC programming and I am doing an exercise with UART. After building the program the message is not being displayed. Can someone tell me where I am wrong. BAUDRATE = 9600, _XTAL_FREQ = ...
0
votes
0answers
37 views

Should the output of a USB-UART module linked to a bluetooth module the same than just the USB-UART module just wired?

I have a device controled by a UART protocol just conected to my PC. I wanted to make it wireless, so I tried to create this conexion scheme PC -> USB-UART -> Bluetooth module -> Bluetooth module ...
2
votes
1answer
77 views

UART ESD protection, and is it necessary on inter-board connections?

This is probably a straightforward question, but I wanted to ask just to be on the safe side. I have a Wifi Module that I'm connecting to an ARM Cortex M4 uC, and it interfaces via UART. Since I ...
2
votes
2answers
99 views

How to determine the end of data received by USART?

I am receiving some strings from UART in AVR. Strings are chaotic, not deterministic. It also includes new line \n and carriage return \r characters that's why I couldn't find a solution including ...
0
votes
1answer
109 views

Saving power between UART transmissions

I use PIC16F1825 to communicate via UART (async) with external device. Running on batteries I have to spend as little power as possible. Since my external device may transmit no data for minutes I ...
1
vote
1answer
73 views

Why does the Tx pin of an USB to TTL adapter provide current?

I'm currently making a little electronic board on my own. On it, a microcontroller: an ATmega328p running with 5V. To communicate with a computer, I've planned to use an XBee, but for now I'm using ...
0
votes
1answer
107 views

Will the PIC18F14K50 perform well as a CNC machine micro-processor?

The data sheet can be found here. I'm trying to select a micro-controller which will eventually run a Wireless 2D Laser Engraver/3D Printer/CNC Machine. I have very little experience in selecting ...
0
votes
2answers
93 views

74HCT244 UART level translator, how would the circuit look?

I am building a UART 3.3V to 5V Level translator between a Raspberry Pi and a ATMega328. The 74HCT244 is my choice of translator but I can't find a good example of of hooking it up. Am I right that ...
1
vote
1answer
61 views

SLEEP_MODE_ADC interfering with USART (and beep)

On an AVR ATmega328P, once per second I am doing 3 AD conversions immediately following each other with 16x oversampling using SLEEP_MODE_ADC like this: ...
0
votes
1answer
63 views

Alternative to AM and FM transmitting for data transmission?

So, I need to communicate wirelessly between a micro-controller and my computer. I'm building a radio receiver circuit, and a radio transmitter circuit that works on FM transmission. However, I had an ...
0
votes
3answers
214 views

How to send string in serial communication in AVR-C

So as the title states, instead of sending a byte of information at a time, I would like to be able to send a whole string. What I tried to do was that I tried to put the user input in an array and ...
0
votes
1answer
77 views

How to debug UART?

The firmware of my module supports UART printf() which I think could be good for debugging, but how could the messages be read? I'm currently using just a USB-to-Serial cable. I've tried using PuTTy, ...
0
votes
1answer
83 views

DMA on Cortex M4 for continuous UART transfer

I've never used a DMA before and I'm reading the datasheet for the Atmel SAM 4E This question does not necessarily have to pertain to this device, it can apply to any device that supports DMA if they ...
1
vote
1answer
54 views

How to reset MCP2200 to default settings?

I designed a simple USB to UART coverter using Microchip's MCP2200 microcontroller. worked nicely for a while, but while i was trying to Update configuration using supplied config utility... the ...
0
votes
0answers
28 views

USB->UART cp2102 module tx lines keeps dying

I had two usb->uart modules with cp2102 IC on them bought on ebay. I used those modules with some custom board to communicate with MCU. Everything was fine, but suddenly I noticed that one of them no ...
1
vote
1answer
53 views

UART: two transmitters, single slave

simulate this circuit – Schematic created using CircuitLab My circuit is shown above - where I have the TXD pin of an ATMEGA connected to the RXD pin of a BT slave. Both devices operate ...
1
vote
1answer
58 views

Store consecutive UART inputs to register

I have implemented a UART receiver/transmitter (8-bits) in VHDL for use on a Digilent Nexys 3 FPGA. So far I have managed to read inputs in a FIFO, process each byte individually and write the output ...
0
votes
2answers
124 views

UART interrupt problem on LPC1788

I wrote a code ...
1
vote
0answers
26 views

communication between ATmega88 and LPC2138

I am trying to communicate between ATmega88 controller and LPC2138 by sending some text on UART lines from ATmega to LPC. UART lines are connected through 100 ohm resistor on hardware.  Currently I ...