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
3answers
43 views

Enabling RS485 UART driver and receiver at the same time

I am a software engineer so I hope that my question not stupid: I work on board with an half-duplex RS485 transceiver. From the software, I can handle a GPIO to handle the output driver of the ...
0
votes
0answers
53 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
4answers
87 views

Are CTS and RTS necessary on UART port?

I am currently working on a project where we use TIVA C TM4C123G and I am currently getting inspired by launchpad as reference design. I have several UART peripheral to connect to the main chip using ...
0
votes
2answers
62 views

Difference between buffer and mailbox

Peripherals in Micro-controllers usually provide a way for us to send and receive data from it. Usually this are memory mapped registers. I have come across few terminologies. The most often used one ...
0
votes
1answer
38 views

pic24 UART receive data is invalid

Hello i m writng a program for UART receive interrupt for PIC24FJ64GA306 i m receiving a data which is in format of 0xAAXXXXXXXX, where data after AA can be anything... the data transmityted through ...
9
votes
1answer
825 views

Would it be considered good practice to match the lengths of UART's Tx/Rx traces?

I am assuming the answer would be yes since Tx/Rx pins are used to send data back and forth, or is it of such a low frequency that such thing is not required?
1
vote
0answers
15 views

ESP8266 not responding with CP2102

I connected my esp8266 with USB to TTL CP2102 as follows: ...
-1
votes
1answer
77 views

AVR ATmega32 UART Not Reciving

I'm trying simple UART transaction functions for ATmega32. I can send the bytes but not receiving anything. I am using polled UART receive. ...
0
votes
0answers
38 views

Using libnfc with Raspberry Pi and PN532 board?

I am trying to use a PN532 Board (NFC Reader) with Raspberry Pi. I am using the ITEAD PN532 Board. First of all I connected a FTDI cable to the board. I followed these steps to install libnfc: ...
0
votes
2answers
46 views

2 UART connected on the same port

I am curently working on a project where a MCU got only one UART port available, however I need to run two peripherals with UART interface (not simultaneously) so I was wondering if I can connect two ...
0
votes
2answers
82 views

Can this stm32f0 interrupt routine that activates on every byte received be fast enough for 6Mbps?

I am using the STM32F0 discovery board. I am looking at this tutorial on UART with the STM32F0. http://letanphuc.net/2015/09/stm32f0-uart-tutorial-5/ ...
-1
votes
1answer
69 views

How to establish a communication between FPGA and CPU, in real-time? [closed]

I am working on a project that involves FPGA and CPU communication(in real-time - i.e, CPU and FPGA should function together). I have already designed and tested the UART communication protocol on ...
2
votes
3answers
88 views

Some characters are not transmitted correctly from mega32 to ESP8266

i recently bought an ESP-01 for a simple wi-fi project reading the temeprature from a website . First i wired the ESP-01 directly on the TTL converter (cp2102) to read the temperature and everything ...
0
votes
0answers
21 views

Array write/read with atmega 8 with help of USART

I have been stuck on a problem for a week, so I need to ask for help. I want to receive an array by USART and write that array in EEPROM(internal/external) and same read that value or array and ...
0
votes
1answer
39 views

Using BILATERAL SWITCH properly?

Summery: I am trying to figure out if I can use a bilateral switch as if it was a tiny relay capable of communicating UART signal, or are there things I am missing. Now, the long explanation. So, I ...
1
vote
1answer
24 views

UART issue with receiving a char

Currently I am working with two MSP430G2553 Microcontrollers for a school project and I have to use UART to have them communicate with each other. The transmit MSP430 is to send a character whenever a ...
0
votes
1answer
35 views

STM32F439 CDC driver, is using UART required?

So, most of the examples use USB CDC driver and they bridge UART. I'm not embedded guy and learning the stuff one by one. So, I understand UART... But I'm a bit confused how this bridging works. Is ...
0
votes
2answers
96 views

Confused about how microcontroller board and computer communicate

i recently got myself FRDM K64F board and got myself occupied with the following questions : Does the compiled hex code i send to my board has to go to the uart chip prior going into ...
1
vote
0answers
62 views

Wired MBus Design - Circuit and Communication

Been working putting a wired Mbus circuit for a while now for both the master and the slave. For the slave, I am using the ON Semi NCN5150 Slave Chip and built the circuit just as the development ...
1
vote
3answers
91 views

Uart Transmit every 1µs Interrupt StM32 NucleoF401-Re

I am using the STM32 Nucleo F401-RE and HAL libraries. I would like to send value through UART to the PC console every 1µs interruption. Actually I want every 1 µs interruption to increment a ...
0
votes
0answers
22 views

TM4C129 Launchpad and XBee

I am using TM4C129 Launchpad launchpad and trying to connect XBee Series 2 (S2C) through UART. Looking into the pinout of TM4C129, I am connecting like below XBee TX <---> RX XBee RX <---> ...
0
votes
1answer
75 views

female connector

Does anyone have an idea of what type of connector this is? Looks like some type of molex, with 1.5mm pin spacing but I am having trouble with finding something that fits it.
1
vote
1answer
105 views

UART in NON INTERRUPT or INTERRUPT mode while using VUSB

I'm working UART data transfer from one ATmega8 to other while the receiver runs VUSB acting as HID Mouse to the PC. UART though init with 9600 , later is set to max speed - > UBRR = 0; Problems : ...
3
votes
0answers
133 views

Cannot get data to rx register of msp430fr5739

I am working on a gps project with msp430fr5739. I have done some code for gps. the nmea string handling is workings fine in my code when manually entered a few nmea sentences, but I am stuck with ...
0
votes
1answer
36 views

pic32 debug char pointer declaration

I'm working with a PIC32MX564F128H in MPLABX 2.35 with pickit3. I'm trying to parse a message from UART. The character is received properly, but I'm stalling when I attempt to copy a character to a ...
1
vote
3answers
361 views

Uart Full Duplex vs Half Duplex

When uC1 wants to talk to uC2 via uart, the Tx of uC1 is connected to Rx of uC2 and vice versa. Half Duplex states that only 1 uC can use the communication line at a time and Full Duplex states that ...
1
vote
3answers
78 views

Using CAN bus tranceivers with custom data link layer

We needed a noise immune, low cost, multidrop, multi master (realtime and distributed) protocol and there is only CAN bus seems to meet with these requirements. Since there are no can controllers ...
0
votes
2answers
88 views

Using UART's TX & RX for Separate Functinality

I am using PIC18F4520. The project requirement is to interface GSM module with uC as well as receive commands from PC via serial port. to achieve this I have connected Microcontroller- TX to GSM ...
0
votes
1answer
11 views

MSP430F6736A UART configuration via Code Composer

Using embedded proggraming, Code Composer Studio 6.0.1, Trying to configurate UART to communicate between MSP430F6736A and my PC. Using USB/RS485 converver(2 vire (A,B)). For sending data using ...
0
votes
4answers
96 views

AVR UART synchronization problem

I'm learning embedded programming (I'm not an Electrical Engineer). Sorry if this is not the right place or I'm asking this question incorrectly, but I had a very tough time trying to figure out a ...
1
vote
1answer
103 views

What if the level signals of two UARTs mismatch?

I am a newbie in electronics. In my current project, I have to make two devices communicate with each other through UART. One device (the HiKey board) uses 1.8v indicating signal '1'; while the ...
1
vote
1answer
52 views

Does Interrupting a Microcontroller Data Receive with a Higher Priority Interrupt Cause Data Loss?

I would like to know what would happen if a Serial Terminal were to send a large amount of data to a PIC/AVR, for example over USART interrupt, which was then interrupted by a higher priority ...
0
votes
2answers
33 views

clock frequency confusion

I am using an atmega16 micro controller with a 12MHz external crystal oscillator. But I came to know that the internal clock frequency is 1MHz I need to calculate UBRR value for serial communication. ...
4
votes
2answers
432 views

Visible Light Communication LED Turnoff Time Problem [closed]

I am doing Project on Wireless Optical Communication(Visible Light Communication). I am using Nicha NSPW510 DS White LED at transmitter and Vishay BPW34 PIN photodiode at receiver. The problem is ...
0
votes
2answers
161 views

STM32: UART Interrupt is triggering without any flags getting set

I am using the UART4 module of an STM32F105. I'm using the RXNE ("RX Buffer Not Empty") interrupt to grab data as it comes in. It's working as expected. When the RXNE interrupt is enabled it also ...
1
vote
2answers
80 views

UART- Tx/Rx Line cut detection

There are 2 systems,A and B. Communication between them is via Uart. As part of periodic health check for CAN Bus, its possible to do a loopback and check the status of the CAN transceiver and the ...
1
vote
1answer
72 views

ADM2587 using input uart

I have a design with the ADM2587 in half duplex mode: If I want to receive something over RS485 I pull RE and DE low. This is tested and works good. The same thing with sending: RE and DE high, ...
4
votes
2answers
548 views

UART synchronization [duplicate]

I am trying to understand UART synchronization. In a UART, the default state is high, and it starts the reception process when it receives a start bit (high-to-low transition) In some scenarios any ...
3
votes
1answer
70 views

HCI UART ? what's the difference with simple UART?

For now, I'm sending bytes from FPGA (verilog) to serial at 115200 bps. I would like to send at higher speed and connect to a bluetooth module (RN42). UART (SPP or HCI) and USB (HCI only) data ...
0
votes
1answer
113 views

UART only returns the same character

I am trying to create a program that contains UART using the PIC18f25j50 device. I have attached my creation so far which is a simple program that outputs a single character repeatedly to the console ...
0
votes
1answer
43 views

Commands and large data packets over UART to MCU

I have a question about protocols used over UART. Trying to either create or use an already defined protocol that will allow for transferring a large amount of data as quick as possible over UART. I ...
4
votes
1answer
252 views

UART Interrupt does not get more than one Char - PIC32MX110F106B

I am really struggling with an UART communication with my PIC32MX110F016. It is the first time I am trying to implement an UART communication with PIC32MX family but I find it difficult and I don't ...
0
votes
1answer
85 views

Setting baud rate for Atmega328p with setbaud.h

I'm working with an Atmega328p, running off the internal 8MHz oscillator, divided by 8 to produce a 1MHz clock. I set the fuses according to the calculator here. Confirming this with avrdude: ...
1
vote
1answer
291 views

Clearing USART (UART) interrupt flags in an STM32?

I am using an STM32F105 to communicate with a Linx GPS chip using a UART. If I don't use interrupts (if I just poll the RX flag) then it works just fine. But I'm getting unexpected results when ...
0
votes
1answer
41 views

USART between Atmega16 and Beaglebone black

I'm working on a project which involves me to send data from AVR atmega16 microcontroller to a beaglebone black. I had written a code for the atmega USART but when connected, the beaglebone black ...
4
votes
1answer
225 views

STM32 DMA Transfer bridge between 2 uart ports

I am using a stm32f103 and I'm trying to simply transmit all data received on 1 uart to another uart and vice versa. When using 2 terminal programs it works great, everything I type gets transmitted ...
7
votes
1answer
469 views

Help identifying checksum

I need help identifying the checksum algorithm in the following packets please. So, packets format is: sd ?? dd dd dd ?? where s = start nibble d = data (binary coded decimal) ? = unknown - ...
0
votes
0answers
33 views

Bluetooth communication issue avr-pc

In the last few days I was messing around with avr <-> pc communication. Thanks to the help that I received here I managed to establish a good connection using pl2303 ttl-to-usb converter. Now, ...
-2
votes
1answer
60 views

Connect Schneider EM6400 to ESP8266 and call REST API [closed]

I have a Schneider EM6400 meter whose data I need to send to a web-service. I dont know much about electronics so here it is- How do I do it? My idea is to use an ESP8266. But from what I know, the ...
1
vote
2answers
87 views

UART communication issue

I am trying to send something from an atmega to my pc. The setup is: Ubuntu 14.04, atmega644P-20PU, USBASP v2, TTL-to-USB pl2303 Firstly I tried to write the code in C and used this code and then ...