Home > other >  STC8G1K08A single-chip microcomputer serial port
STC8G1K08A single-chip microcomputer serial port

Time:03-07

Using a serial port 1 timer 1, a serial port to normal print, after timer timer 1 to 2, serial printing failure, the code is as follows:



Now don't know what is the problem,

CodePudding user response:

The ET2=0 x40; IE2 BIT3 is enabled timer interrupt, 2 to 0 timer interrupt to 1 2 allows the interrupt is forbidden, the other has nothing to do with the timer 2, IE2
  • Related