Questions tagged [serial]

In serial communication data is transmitted as a sequence in time. Main advantage: much less wires needed. Main disadvantage: Higher bandwidth for the same throughput.

Filter by
Sorted by
Tagged with
0
votes
0answers
63 views

How to use 3.3 V FTDI Serial Cable with LeMaker Hikey 620 which has 1.8v UART signals

I have FTD Serial Cable TTL-232R-3V3 which operates on 3.3V. https://ftdi-uk.shop/collections/usb-cables-ttl/products/ttl-232r-3v3-2mm I was trying to use it on my Hikey LeMaker for an hour with no ...
1
vote
1answer
165 views

PIC32 receives/transmits improper data on serial port

I have referred http://microchipdeveloper.com/harmony:example-usart-dynamic-wf32 to configure the UART and send/receive data between PC(Putty) and my PIC32MZ. The demo program in the link receives ...
2
votes
1answer
209 views

Is there a standard describing the UART data frame protocol?

The "U" in "UART" stands for "Universal", but I'm having trouble finding any standard that describes the framing protocol that's used in UART; e.g. the start bit, stop bit, parity options, and baud ...
0
votes
2answers
192 views

Long distance (and I think low frequency) serial communication with Arduino [closed]

I need to implement a long distance (up to 15 kilometers) communication between some electronic devices. The devices is some boards on AVR chips with Arduino library and a Raspberry pi as the ...
0
votes
1answer
268 views

I2C driver for MSP432

I am trying to develop a I2C driver for MSP432. As of now, I am interfacing a accelerometer through USCI B2_ module on MSP432. The problem that I am facing is I am getting a NACK in the IFG register ...
0
votes
2answers
142 views

LIN to RS485 and back to LIN

I am currently communicating between two microcontrollers using a single pin and the LIN protocol over a short distance of 0.2m. Now I would like to extend the distance up to 5m by differentially ...
0
votes
1answer
40 views

Trying to read the data from an ASK RF transmitter

I'm trying to duplicate the operation of a simple RF remote control (for some remote power outlets). In the remote control there is an unmarked 8-pin microcontroller. I've worked out which pins are ...
0
votes
1answer
109 views

Bit rate of uart communication

I have a setup which communicates between PC(windows) and Atmega2560 using UART. On PC side I am using Pyserial. From the PC I am sending a paragraph of text byte-by-byte to Atmega2560. The UART ...
1
vote
1answer
245 views

FTDI USB to serial communication issue

I am using an FTDI USB to Serial cable to read the startup log of a board. The FTDI cable is not reading the correct information coming from the board. Here is some of the information that I am seeing ...
0
votes
0answers
53 views

minimalist serial port addon to a basic 8052

Currently I have two microcontrollers connected to each other so that I have two serial ports. One to the PC and one to a wireless radio module. Now I'm considering replacing one microcontroller with ...
0
votes
3answers
165 views

What exactly are low speed devices? [closed]

The definition of I2C is - "A multi-master multi-slave serial bus used for communication between low-speed devices". However, I have been searching the web for a concrete explanation for this but ...
0
votes
1answer
45 views

Weird level shifting issue only when connected to IC chip

I'm connected to a 5v heat-pump to control it via serial. I'm using a level shifter to shift between the two as the heatpump is 5v and the D1 is 3.3v shown in the scope images below. My issue is I can'...
4
votes
3answers
671 views

Is the ATMEGA328P's serial baud rate quantised?

I'm using an ATMEGA328p, running from its internal oscillator (divided by 8 = 1MHz). I've (roughly) measured the oscillator output, using my Salae logic analyser, as ranging from 960KHz to 1000KHz, ...
3
votes
2answers
1k views

Why do we need bit scrambling when using 8b/10b?

I want to ask the opposite of this question. Here are the purpose of the bit scramblers: Encrypt, but LFSR (and other used) bit-scramblers are breakable. Clock recovery, but it is done by the 8b/ ...
2
votes
0answers
74 views

Offset QPSK Frame sync markers

What actual protocols exist out there that employ Offset Quadrature Phase-Shift Keying (OQPSK)? What do they use for the frame synchronization marker (or "preamble" or "sync word" or "flag")? Do ...
0
votes
1answer
23 views

Variations in RFID USB Serial reader detection distance by connected device

I have a RFID reader that sends the TAG information over USB serial. I have had some troubles with it in a product where the detection success rate changes alot depending on what the USB RFID tag is ...
0
votes
1answer
112 views

One Wire, 1-Wire, SingleWire, SDQ — are they compatible?

There are at least three different manufacturers with "one wire" type memories: Maxim/Dallas has "1-Wire" Microchip has "Single-Wire" TI has "SDQ" Are they all compatible with each other? I'm ...
0
votes
1answer
102 views

PC to Rasberry Pi Serial Communication

Im trying to communicate to my pc using my raspberry pi using a software called Docklight. I'm using a serial cable (that i ripped apart) and my breadboard as shown below. Now, you can also see I ...
0
votes
1answer
1k views

Why do some Arduino-compatible boards provide a crystal for the CH340? [closed]

I have an uno-shaped Arduino compatible which uses the CH340(G) serial to ttl converter chip and it is connected to an external crystal. I also have nano shaped compatible which uses the CH340(C) ...
1
vote
1answer
141 views

PISO shift register to USB

I have ~26 parallel inputs that I would like serialize and send to a computer over USB. I decided to chain together 4 LS165 parallel-in serial-out shift registers, but I don't know how I would send ...
0
votes
1answer
70 views

Same serial command, different serial replies

I have a device (a traffic counter) that communicate with my computer throught Serial Port. To extract data from this device, I use a specific software. I'm also using a Serial Port Monitor to check ...
1
vote
3answers
708 views

Why do we use a DB9 connector for serial com?

We only use 4 wires (pwr, common, and two data), so why does rs232 use such a big connector?
0
votes
0answers
272 views

stm32f103 - 16 bit mode SPI reading returns 0xFFFF

I am working with a sensor which communicates through SPI. I am trying to read MISO line, but it returns 0xFFFF. first I send 0xC000 on MOSI and the sensor places 0x0032 on MISO. I read MISO using ...
1
vote
0answers
431 views

Custom Arduino powered board (CH340C) Serial Problem

I made this custom board that contains a complete arduino nano on it. I soldered every component with extreme care and already check all the connections and they all go according to the designed ...
1
vote
1answer
147 views

Arduino Fails to Program Custom NRF52, But Has Worked In Past

Background: I have a custom board that consists of two PCBs connected via a 100mm Picoblade connector. The "Aux" board has a USB port, and CP2102N Serial=>USB converter. The "Main" board has an NRF52 ...
0
votes
2answers
228 views

Data over DC Power, mono-directional, simplest circuit

(To preface, I will probably just run 4 wires, with RS485 on 2 and power on the others, but this came to my head, and I started thinking about it.) I was thinking of a simple way to send simple low ...
0
votes
3answers
744 views

How to find out whether serial standard is RS232 or TTL when stated as “serial(RS232/TTL)”

I am recently moving from C programming into automation engineering. I have learned about RS232 and TTL standards, and I understand that they are based on the same concept of serial communication, ...
-2
votes
1answer
289 views

Using Adafruit Trinket M0 (SAMD21) as a USB to Serial converter

I wanted to know if it is possible to use SAMD21 as a USB to Serial converter like the usual FTDI chips ? If yes could you please point how to achieve that. I believe that Adafruit Trinket was used ...
0
votes
1answer
183 views

Enabling and disabling serial device connected to the Arduino HardwareSerial by software

I want to use the hardware serial port (pin 0 RX and 1 TX) to connect a MAX485 IC. Internally these pins are also connected to the onboard USB to serial converter microcontroller which is used to ...
1
vote
1answer
116 views

Do I need an impedance controlled connector for RS422?

I've never implemented RS422 before (crazy right?). Since the impedance of the line is controlled to 120Ω do I need an impedance controlled connector for that? If anyone has implemented RS422 which ...
0
votes
1answer
65 views

Adapting an older schematic for use with recent components: How might this circuit need to change?

The schematic below is a bidirectional bluetooth-to-infrared serial device. Computer sends bits to device via bluetooth virtual COM port. Device re-transmits bits via 950nm IR w/ 38khz carrier ...
-2
votes
1answer
112 views

Why is a new 16550 $4? [closed]

I can't imagine that the 16550 hasn't made back its design costs by a factor of at least 10 by now, why does it cost $4.32 in quantity? That makes no sense. http://www.ti.com/product/PC16550D/...
1
vote
1answer
813 views

Can I covert a 3.3v/5v USB TTL Serial device to 1.8v using a LM1117 1.8v regulator?

I have a HDD which has serial access but needs 1.8v TTL serial. I only have 3.3/5v serial devices. The standard PL2303, A UART Usbbee, and a generic serial adapter. The PL2303 & generic have 3v/...
-4
votes
2answers
2k views

What is difference between USB and TTL? [closed]

I have one question about USB and TTL. Both USB and TTL works on the same voltage range (0 to +5 V), both are serial protocols. From my point of view, they are the same. Why then we have USB to TTL ...
0
votes
3answers
189 views

How can I see an output from SCL?

I am new to electronics, circuits, etc. Currently I am reading I2C and synchronous serial communications. As I understand, two devices must be connected to the same CLOCK wire so that the slave knows ...
2
votes
2answers
165 views

How to open up serial terminal for my USB device converter (or, how to enable VCP in linux)?

I am using a new Cyclone V SoC board by Enclustra (Mercury+ SA2) mounted on their PE-1 BaseBoard. To connect to the board serially on Windows platform, I have to connect the board which is detected ...
0
votes
2answers
225 views

CP2102N Not Working

Solution: Cable didn't have data lines... I have a custom board with a CP2102N on it to go from 3.3V UART to USB via a virtual COM port. I followed the data sheet for the design, as well as ...
1
vote
2answers
113 views

Bidirectional (opto?) isolators for any protocol?

I would like to isolate digital serial communication between 2 circuits. I don't know much about the protocol between two circuits. It is not a common protocol such as SPI or I2C. Shortest pulses are ...
0
votes
1answer
508 views

I can't flash my new ATMega328p with PL2303 USB-TTL converter

I've soldered my ATMega328p-au to a SMD to DIP board, and I've connected pins like this: USB | ATMega RX ---> TX TX ---> RX 5v ----> 5v GND -> GND and GND --> button --> RESET My USB-TTL converter ...
0
votes
1answer
309 views

ESP32 AND CP2102 Serial data reading issue

I have a PCB on which i am taking a 5v - 1A DC power supply , and again providing 3.3v to ESP32 through AMS-1117 3.3v. Basically things are not working on when i solder the esp32 on my pcb but things ...
5
votes
2answers
272 views

What kind of serial communication is this?

I am trying to reverse engineer a serial communication between to microcontrollers (1 device & 1 microcontroller on a board). One MCU validates the other MCU and I want to crack the validation and ...
0
votes
0answers
100 views

RS-232 signals on Bluetooth modules like HC-06, HM-10, etc

I would like to access any I/O pins of a bluetooth module of the likes of HC-06, HM-10 or their clones from both a Windows PC and/or Android system connected wirelessly to the module. I need Windows ...
1
vote
2answers
354 views

FT232HL FTDI consecutive SPI bytes delay problem

I have a problem with the FT232HL FTDI ic. Windows application send data to the chip via USB and the chip send the data out with one SPI channel. I did check with a logic analyser, the bytes are ...
-1
votes
2answers
105 views

Hot switching between RS232 ports

I have a system with two serial devices (Arduino uControllers) connected to a single FTDI (USB-to-Serial) chip through a silicon switch. Each devices works fine on its own. I would like to be able ...
0
votes
0answers
65 views

Serial baud calculation without using serial interrupt - 8051

Here's the situation. I have a project which utilizes multiple sensors and connects to another unit through standard UART (8N1). Because no data needs to be missed from any device, I made the ...
0
votes
0answers
104 views

How to wire RJ12 to db9f modular adaptor?

I have a RJ-12 to DB9f modular adapter. There are 6 wires that come out of the adaptor (White, Black, Red, Green, Yellow Blue) - these, as I gather from pin out diagrams, correspond to the 6 jacks of ...
0
votes
1answer
160 views

synchronous serial interface in verilog

i have a ADC (ADS1672 datasheet) (20MHz) with serial interface and xilinx spartan 3 XC3S400-208 (50MHz) in it's datasheet to data retrieval comes this: for that i implemented this code: inputs and ...
0
votes
1answer
34 views

Two devices on Y 9pin Serial cable to 25pin printer input - Data Corruption

I have't been able to find a solution, and was hoping for some clarity. I have 2 machines (one is a bill counter, one is a coin sorter) that both support printing over DB9 serial connection, and one ...
1
vote
1answer
431 views

Communication between different Baud rates [closed]

I am totally new to just about all of this, first off. I have two boards that I want to be able to communicate. Both are using half-duplex serial connection, but one is fixed at 4800bps, and the ...
-4
votes
3answers
2k views

What is a FTDI chip? How does USB communicate with Arduino?

What is a FTDI chip? Is this used in Arduino to communicate to the laptop? I think that the voltage levels are different on USB and Arduino?