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