This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

about serial communication!

I can't step over this instruction ( while(TI==0);//  )
the program :

#include "reg51.h"
main()
{
  TCON = 0x50;
  TMOD = 0x20;
  TL1 = 0xFD;
  TH1 = 0xFD;
  TR1 = 1;
  while(1)
  {
   SBUF = 0xFF;
   while(TI==0);//  I can't step over here .
   TI = 0;
  }
  

Parents
  • I asked about showing of ISR of timers because it may be that ISR of timer1 contains a typpo, for example, JMP $ etc... Really, what is the initialization of Timer1 at start of main for if UART uses just mode 0? Seems Jeny rejected some important code parts...

    Good days!

Reply
  • I asked about showing of ISR of timers because it may be that ISR of timer1 contains a typpo, for example, JMP $ etc... Really, what is the initialization of Timer1 at start of main for if UART uses just mode 0? Seems Jeny rejected some important code parts...

    Good days!

Children