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

Problem with reseting timer counter TC

Hi!

I have strange problem with LPC21xx. For example, we using timer0, match0. Let's set reset & stop on MR0. If we will set PR=0, then timer will stop and reset after TC reach MR0 value. But if we will use PR!=0, then timer will stop, but won't reset after TC reach MR0 value. It's magic? How could I reset TC (except manualy)? Could you please help me. I have tested this problem at lpc2138 and lpc 2103.

int main() { T0MCR = 6; //stop & reset T0MR0=10; T0PR=1; //!!! T0TCR=1; while(1);
}

0