Serial communication of single-chip microcomputer

Source: Internet
Author: User

SCM Serial Port Communication has 4 different ways:

Mode 0: Shift register Input/Output mode: Baud rate: FOSC/12;

Mode 1:10-bit UART (Universal Asynchronous Interface Circuit), the format of a frame of data is: 1-bit start bit, 8 bit data bit, 1 bit stop bit. Its baud rate is variable (by formula):

Mode 2 and Mode 3: Both methods are composed of 11-bit UART, one frame data format: 1 bit start bit, 9 bit data bit, 1 bit stop bit.

Where the baud rate of Mode 2 is fixed to: FOSC/32,FOSC/64, determined by SOMD.

The baud rate of mode 3 is the same as the mode 1.

Single-Chip microcomputer serial debugging method:

1. Single chip microcomputer + virtual terminal (as serial input device) + serial port

2. Single chip microcomputer + virtual terminal (as serial input device) +max232+ serial port

3. Single-chip computer + serial + virtual serial port program (virtual serial port) + Serial debugging assistant

4. Single-chip microcomputer +max232+ serial + virtual serial port program (virtual serial port) + Serial debugging assistant

The Compim control in Proteus should be self-charged and flat converted. (The serial port of PC is standard RS232 level, +15v or -15v; MCU is generally a +/- -5v. Usually with the Max232 conversion level after the connection)

Serial communication of single-chip microcomputer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.