Home > other >  STC12C5A60S2 2 serial port communication problems
STC12C5A60S2 2 serial port communication problems

Time:11-04

Two MCU STC12C5A60S2, using serial port communication, 2 peripheral crystals of 12 MHZ, we need 1 communicate with MCU 2 through 485 MCU, MCU P1 mouth switch control MCU 2 P0 mouth lamp, the great god, help me the beginner, how to programming?

CodePudding user response:

refer to the original poster heen080 response:
two SCM STC12C5A60S2, using a serial port communication, peripheral crystals of 12 MHZ, we need 1 communicate with MCU 2 through 485 MCU, MCU P1 mouth switch control MCU 2 P0 mouth lamp, the great god, help me the beginner, how to programming?

Connection with single-chip microcomputer 1 tx 485 connected to the microcontroller after 2 rx, rx MCU 1 even after 485 single chip microcomputer 2 tx, programs are written according to the serial port communication, pay attention to the two MCU baud rate, it is very important, but for the fail, if appear problem, line not connected or the baud rate is not set,

CodePudding user response:

You need to write a serial port to send function control end, controlled end need to write a serial port receives the data processing function

CodePudding user response:

On a circuit diagram, but also good for a bit
  • Related