Questions tagged [uart]
A UART (Universal Asynchronous Receiver Transmitter) is a piece of logic that sends and receives data on a serial port.
1,617
questions
0
votes
2
answers
2k
views
How to deal with start sequence in payload of communication packet?
Basic serial messages are being transferred between an embedded device and a PC app.
MCU UART Peripheral -> FTDI cable -> PC USB Serial Library
The ...
0
votes
1
answer
744
views
Reception of data using pic12f1822 UART
This is the code
...
1
vote
1
answer
243
views
Switchable serial bridge (Bluetooth or USB -> Telemetry)
So I've got a simple serial bridge (wireless telemetry -> bluetooth).
Now what I would like to do is to be able to use either USB or bluetooth to access the telemetry module (Not at the same time).
...
0
votes
1
answer
658
views
PIC 16F877A interrupt handling [closed]
I am trying to write a simple code to receive and resend data using USART but the code is not working.
Could someone give suggestions on possible flaws in the code?
I am using USART at baud rate ...
1
vote
2
answers
2k
views
PIC24F UART Rx Interrupt not firing
I am currently trying to write code for a 48 channel DMX controlled dimmer using a PIC24FJ32GA002. Using a scope I have confirmed that there is a DMX signal reaching the Rx pin of the UART which has ...
2
votes
4
answers
2k
views
Why there are data bit lower than 8 data bit of uart
Our group are creating a UART IP Soft Core with Wishbone Wrapper and we are using 5,6,7 and 8 data bit. I just want to know what are the use of the 5, 6 and 7 data bit?
In addition to my question ...
2
votes
1
answer
1k
views
MSP430 Choppy UART
I am having issues with the UART on the MSP430FR5969 microcontroller. I am sending about 85 characters 100 times per second for a data acquisition system. I am using 115200 baud rate which should be ...
2
votes
1
answer
666
views
PIC UART CODE need help in debugging
My question has two parts:
Does MPLABX have a UART simulator?
I need help debugging this code:
...
0
votes
1
answer
277
views
Can you setup UART Reception on dsPIC33EP512MU814 on eval board dsPICDEM MCLV-2
According to microchip, the dsPIC33EP512MU814 can be integrated with the dsPICDEM MCLV-2 Development Board using dsPIC33EP512MU814 Plug-In-Module
However, according to the dsPICDEM MCLV-2 Interface ...
-2
votes
1
answer
869
views
Serial connection via 3.5 mm Jack
lately I have been experimenting with the Intel Galileo, the thing is that I can't get the serial connection to work so I can do the "Linux magic". Today I bought this cable and tried to establish a ...
1
vote
2
answers
1k
views
What are the UART voltage levels for the RN4020?
I've recently bought an RN4020 BLE module, but I'm having figuring out how to make it work. In the datasheet some pins are listed as 1.65V input, 1.35V out, while ...
1
vote
1
answer
1k
views
Uart serial communication failing to echo back Atmega16a
I am new to the avr (8bit uc) and recently I ran into a problem using serial communication (uart) with PC. Microcontroller fails to responsd in putty terminal where it should echo back whatever I ...
0
votes
2
answers
448
views
PIC24 Primary Oscillator XT_PLL frequency is off by 3 percent
I am using a PIC24. After solving the issue with the PLL (PIC24 PLL module is always out of lock) I am struggling with large variation in the system frequency. I wrote a small code that is used to ...
-3
votes
1
answer
14k
views
Calculate the UART Baud Rate register for PIC devices
How do I calculate the UART configuration register values for a PIC 24F device, based on a desired Baud rate?
Currently the UART module has 2 values that affect the Baud rate, BRG (16-bit register) ...
0
votes
1
answer
353
views
GSM ZTE MG2639 module freezes after checking SIM
I'm communicating with my ZTE MG2639 module through UART.
Few seconds after powering it and getting +CPIN and +STKPCI it just ...
0
votes
1
answer
585
views
TI CC2538 radio turns off after connecting UART
Need help regarding Texas Instruments CC2538 RF module. (https://store.ti.com/CC2538DK-CC2538-Development-Kit-P4532.aspx) The module has an operating range from 2.1V to 3.6V
I'm trying to use the ...
0
votes
2
answers
988
views
Updated- Sending data on USART from Atmega32 To Python
I want to send one word from my Atmega32 to computer using USART serial protocol. As My system doesn't have any COM port, I connected a USB2COM converter cable. And as you see below in Device Manager, ...
2
votes
2
answers
701
views
2.8V UART to 5V MCU - how?
I'm trying to connect ZTE MG2639 to 5V AVR (or USB<->RS232). This module is using 2.8V at IO. How can I do that? Normal voltage divider?
And how to check if communication is OK in Putty? Just type ...
-1
votes
3
answers
389
views
Checking Full condition of RBR FIFO of LPC2148 UART
1)How do you check whether the RBR FIFO is full in case of LPC2148 UART? I know that the empty condition can be checked using Receiver Data Ready(RDR) of Line Status Register(LSR). But there is no way ...
1
vote
1
answer
271
views
Same address for different registers in LPC2418 UART
I have a very basic question regarding LPC2418 UART. The UART has got different registers with the same addresses. So while loading the data from the test bench, will it not load into all the ...
1
vote
2
answers
12k
views
DHT11 Temperature/Humidity Sensor
Currently I am trying to read a byte from my dht11 sensor and write it to virtual terminal, but I couldn't find a simple datasheet for beginners. I found a bit complicated mikroC code and set-up which ...
0
votes
1
answer
176
views
Accessing RS232 Rx Tx instead of OTG on stellaris LM4F232H5QD evaluation board
I am asking two related questions here:
I can see a program uart_echo for stellaris lm4f232h5qd . What I want is that I need to access this data on teraterminal using PA1 and PA2 pins instead of OTG....
0
votes
3
answers
2k
views
AVR USART sending garbage
I'm trying to make an ATMega328P to send serial data to my computer and print onto Putty using an arduino board to do the USB to serial conversions. The data that's printed, however is garbage data. ...
1
vote
1
answer
518
views
VHDL RS-232 Receiver
I have been trying to design an RS-232 receiver taking an FSM approach. I will admit that I do not have a very well-rounded understanding of VHDL, so I have been working on the code on the fly and ...
-2
votes
1
answer
251
views
Very cheap device with UART interface [closed]
I need to do some experimenting of UART,
I need a very cheap device that I could use to send/read from.
Please what could I use?
Something very cheap to buy
or
possibility something that I ...
1
vote
1
answer
10k
views
Transferring data from FPGA to PC (new to FPGAs)
FPGA beginner here.
I have a Basys2 FPGA board(i code in verilog) and i wish to make it communicate with my PC. Currently it receives data from a slave device and stores it in an 64 bit register. ...
2
votes
2
answers
1k
views
PIC24FJ64GB002 UART Bridge
I work in a project but I have a problem.
I want make a program what drive the two UART in a PIC, each UART at different baud rate. The idea is take a signal for UART1(9600 bauds) and send to UART 2 ...
3
votes
2
answers
2k
views
UART Receiver glitches
I encounter problems with my UART receiver module. It is supposed to work at 9600 bauds without parity bit and only one stop bit.
The problem is that my UART misses some characters (or to indicate ...
3
votes
2
answers
1k
views
Why would uart connection only work after disconnecting power?
I am using a Microchip Bluetooth Pictail and a Sparkfun 3.3V USB-to-UART and a Arduino Uno (just for power-5V,gnd and 1 active high signal connected to 3.3V).
When I power the PicTail it outputs "CMD"...
0
votes
1
answer
5k
views
Shortest time required UART- UART transfer of 32 Byte block
I need to transfer 32 Byte block UART to UART
8 clock cycles per bit
1 start bit
Struct 8-E-2 8bits 1 UART char, Even Parity, 2 stop bits/ char
1 + 8 + Even parity + 2 stop bits = 11
efficiency = 8/...
0
votes
2
answers
985
views
Logic low not low enough
I'm having an issue where the "low" level being output from one device isn't low enough for the device on the other end to interpret it as such. I'm guessing I'm not the first person to have this ...
1
vote
1
answer
7k
views
PIC32 does not get UART RX interrupts in xc32 Compiler
I'm trying to setup a UART channel on my PIC32 MCU (PIC32MX470F512). But the code does not reach the ISR at all.
I have verified that the PPS (peripheral pin select) is configured properly and the ...
5
votes
1
answer
20k
views
How to get USART and USB-Serial working on the STM32F4Discovery Board?
I'm programming a STM32F407VG chip on the STM32F4Discovery board using CooCox CoIDE. I've stitched together a program based on some examples and tutorials I found online to get USART1 through pins ...
2
votes
1
answer
197
views
UART without using the same clock
I am using the C027 development board for prototyping an application and I was wondering it it was possible to use the Tx and Rx pins of the GSM module (available on the pinout of the board as P0_15 ...
4
votes
3
answers
6k
views
Communication between micro controllers - I2C, SPI, UART?
Basically I have two microcontrollers that I need to communicate with each other.
Both controllers send and receive data.
Basic idea that I have:
I2C, SPI - What I think we can NOT use these ...
2
votes
1
answer
894
views
ATmega328A UART: everything working, but not as expected
I am trying to get UART working via the ATmega328A. I want to enter a character, and get that character to be printed out. However, when my code is run this is what happens:
I enter one character, ...
1
vote
1
answer
2k
views
VHDL USB UART Problem
I've just described an UART transmitter and receiver in VHDL. In simulation everything seems to be fine. In FPGA, the loopback interface works well: I push a button, the transmitter sends data, the ...
6
votes
1
answer
822
views
DMX512 packet issue (no break?)
I'm not sure if I'm reading this wrong or something, but this is a trace of the DMX packet that's coming from my USB-RS485 module then being converter to UART logic levels for my microcontroller.
...
2
votes
1
answer
425
views
Update ATmega168 program with serial
I'm working with an ATmega168 with a Linux based board (TI DM365). The ATmgea168 communicates with the TI over UART.
The Atmel is programmed using AVRMKII and is running fine. I was wondering if ...
2
votes
1
answer
470
views
AVR external crystal not working with UART
So I have an ATmega328P with a 14.7456MHz external crystal, full-swing settings, and I'm trying to talk to my mac via UART and an FTDI friend-type device.
If I connect AVR Tx to AVR Rx, then all ...
0
votes
3
answers
17k
views
Maximum cable length for 5V or 3.3V I2C, UART, or 1-wire signals over Ethernet and how to increase it?
I know similar questions have been asked before (Maximum cable length for 3.3V UART signals) but I would like to know the answer more specifically for a hobbyist.
I've been experimenting connecting ...
1
vote
1
answer
92
views
What should I do to have both the synchronous and asynchronous serial communications?
You know that ATmega32 supports Universal Asynchronous Receiver/Transmitter.
with pins : RXD & TXD
But it doesn't support Universal synchronous Receiver/Transmitter.
with pins : RXD/TXD & ...
1
vote
1
answer
642
views
No correct signal from ATMEGA162 UART
I got the following circuit:
simulate this circuit – Schematic created using CircuitLab
And this code to run it:
...
2
votes
2
answers
1k
views
flipping the UART rx/tx pins on an arduino
I managed to flip the rx/tx lines on a project I'm working on. My GPS RX is going to my ATMega's RX, which is clearly wrong. Since the pin map lists the rx2 and tx2 lines as pins D16 and D17, I'm ...
0
votes
2
answers
546
views
If RS-232 defines electrical characteristics, what is the transfer protocol?
From this answer, it says RS-232 defines the voltage levels and what not of a signal.
I want to be able to read barcodes on my microcontroller with something like this.
The closest datasheet I ...
1
vote
2
answers
2k
views
Event using FTD2XX_NET.dll
I am using a FT232RL chip with FTD2XX_NET.dll
I've made a program which writes and reads data to/from AVR atmega32 mcu.
First writes data, then reads data as answer.
Now, i want to make an event ...
2
votes
1
answer
4k
views
UART Flow Control
I confused little bit regarding flow control. I have two devices, one is having UART flow control pins (RTS and CTS) named as Device 1 but other device don't have named as Device 2.
The device 1 ...
1
vote
1
answer
378
views
UART, USB... on cellular cards
Sierra Wireless and other manufacturer carry cellular cards in a variety of physical interfaces.
There are different digital interfaces to hardware like USB, UART, USB OTG, HSIC...
Additionally ...
0
votes
1
answer
2k
views
Is an USB-to-UART converter different from an USB-to-RS232 converter? [duplicate]
I have a USB-to-RS232 converter. The GND, TX and Rx pins of the RS232 I connect to GND, Rx and Tx on a development board I have. I've set the right baud rate, flow control and other settings in my ...
0
votes
1
answer
261
views
How to ensure serial transmission and reception of required data without any garbage values in the 8051?
I'm trying to continuously transmit the character 'L' from the microcontroller 8051 to the PC at a baud rate of 9600. The frequency of the 8051 is 16 MHz, and I accordingly loaded the BRL register ...