Playing with MCU Part 2 - USB to Serial Port

Publisher:Whisper123Latest update time:2016-09-12 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
What is a USB port?

            Most computers have it, and it is also a mainstream interface. It has 4 wires, 2 power wires, and 2 data wires. The transmission speed is 480MB/s

What is a Serial Port (COM)?

              It has 9 pins, numbered 1 to 9. We usually use pins 2, 3, and 5. It is mainly used for communication between PC and microcontroller. Desktop computers generally have 2 serial ports, which are located at the back of the chassis. Ordinary laptops do not have serial ports, which brings inconvenience to development.

All we need is a USB to serial converter to enable the laptop to have program burning and communication functions.

--------------------------detailed steps--------------------------------------------

Step 1, you need a USB2COM adapter. Thanks to Xiaobai for the hardware support.

Step 2, install the driver.

Playing with MCU Part 2 --USB to Serial Port - Plain Text - Project Works ---- Plain Text

Step 3, install the adapter, and automatically search and install the driver. In the device manager-port, you can see that COM4 has been added.Playing with MCU Part 2 --USB to Serial Port - Plain Text - Project Works ---- Plain Text

Step 4, use the debugging assistant to debug the serial port, select COM4 in the software, here you need to connect the 2.3 wires of the serial port to realize your own transceiver communication.

Playing with MCU Part 2 --USB to Serial Port - Plain Text - Project Works ---- Plain Text

Step 5, download the program to the lower-level microcontroller. Select COM4 in the software. It is very easy to use and does not require a conversion cable.

Playing with MCU Part 2 --USB to Serial Port - Plain Text - Project Works ---- Plain Text

It shows that the burning is successful, which means the computer has a serial port!

Keywords:MCU Reference address:Playing with MCU Part 2 - USB to Serial Port

Previous article:Playing with MCU Part 3 - Serial communication, receiving data
Next article:Playing with MCU 1

Recommended ReadingLatest update time:2024-11-23 14:55

CEPARK AVR MCU HC595 drives digital tube display
Here I use the CEPARK M64 AVR development board. The focus of this lesson is to learn how to use 74HC595 to drive digital tubes. 74HC595 is an 8-bit shift register and a memory with three-state output function. The shift register and memory are clocked separately. Data is input on the rising edge of SHcp and goes to t
[Microcontroller]
8051 microcontroller (STC89C52) implements serial communication in polling mode (51 receives data and sends it back to the PC)
#include STC89C5xRC.H   int main() { char buf; TMOD = 0x21; //Set the working mode of timer1 SCON = 0x50; //Set serial communication format TH1 = 0xE6; //Set the initial value of timer1 TL1 = 0xE6;  TR1 = 1; //Start timer1 while(1) { if(RI == 1) { //If data is received buf = SBUF; RI = 0;
[Microcontroller]
8051 microcontroller (STC89C52) implements serial communication in polling mode (51 receives data and sends it back to the PC)
STC15 series MCU SPI usage tutorial (I)
1. Hardware Wiring 1. Ordinary SPI device wiring For example, NRF24L01 can be directly connected to IO 2. FLASH device wiring For example, GD25Q80BSIG needs to add a pull-up resistor 2. Programming 1. Registers related to SPI ① SPCTL register ② SPSTAT register ③ SPDAT register ④ AUXR1/P_SW1 register 2
[Microcontroller]
STC15 series MCU SPI usage tutorial (I)
Design of USB/PS2 MOUSE using 4BIT OTP microcontroller
   Introduction: The design of   USB low-speed devices has reached considerable maturity. Various IC companies have launched USB DEVICE-side solutions, generally using 8 BIT CPU CORE + USB SIE as the mainstream architecture. SH69P04 is a 4BIT OTP microcontroller designed by Sinowealth to enrich USB product applicatio
[Microcontroller]
How to Improve the Anti-interference Performance of Single Chip Microcomputer System
Friends who have worked on products all have experienced this: a design may seem simple, and the hardware design and code writing can be completed quickly, but there are more or less unexpected events during the debugging process. These are all manifestations of insufficient anti-interference capabilities. Let’s dis
[Microcontroller]
AutoSAR architecture and its operation on multi-core automotive MCUs
Xiao Er has only developed heterogeneous dual-core chips before, each running its own software (for example, each running a set of FreeRTOS, anyway, the components are not large after cutting), and is not familiar with homogeneous multi-core software such as Stellar and AURIX; For example, how to run AutoSAR on
[Embedded]
AutoSAR architecture and its operation on multi-core automotive MCUs
51 MCU Simulation I2C Bus C Language Implementation
Circuit Schematic     The EEPROM is AT24C01A from ATMEL and the microcontroller is AT89C51 from ATMEL.   Software Description   The C language is Franklin C V3.2. Save the source program as testi2c.c and run the command C51testi2c.c L51TESTI2C.OBJ OHS51TESTI2C Compile and link to ge
[Microcontroller]
51 MCU Simulation I2C Bus C Language Implementation
Signal generator based on 51 single chip microcomputer + DAC0832
I recently helped someone design a graduation project, making a multi-signal generator (four waveforms: square wave, triangle wave, sawtooth wave, trapezoidal wave). Now I post it here for your reference. If there are any mistakes, please point them out~ The following is a simulated circuit diagram (the simulation sof
[Microcontroller]
Signal generator based on 51 single chip microcomputer + DAC0832
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号