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

DS5250 debbuging problems

I'm trying to debug Dallas DS5250. All it's in a simple program but when I introduce the timer0 interrupt the debugger lost communication with the target and the interrupt is not serviced. Wich could be the problem?

Parents
  • My code is the following:

    void main(){ TMOD = 0x01; ET0 = 1; TH0 = 0xFF; TL0 = 0x9B; TR0 = 1; EA = 1; while(1){ P0 = 0x80; P0 = 0x40; }
    void Timer() interrupt 1{ TH0 = 0xFF; TL0 = 0x9B;
    }

    But in the moment I'm debugging througt EA = 1 the communicacion is lost.

    Thank you for rour help.

Reply
  • My code is the following:

    void main(){ TMOD = 0x01; ET0 = 1; TH0 = 0xFF; TL0 = 0x9B; TR0 = 1; EA = 1; while(1){ P0 = 0x80; P0 = 0x40; }
    void Timer() interrupt 1{ TH0 = 0xFF; TL0 = 0x9B;
    }

    But in the moment I'm debugging througt EA = 1 the communicacion is lost.

    Thank you for rour help.

Children