R
R
Rudtoha2018-11-09 16:01:54
Electronics
Rudtoha, 2018-11-09 16:01:54

How to update the timer match register in the program?

Hello. I want to implement a similarity of WDT on a conventional timer in the LPC11u12 microcontroller. The bottom line is this: when the timer match is interrupted, it stops, but when the UART receives a byte, the match value resets the timer and (in theory) starts again and everything is fine. What is the problem? This doesn't work, unfortunately.
Is there any possibility to do so at all? If yes, what is the error? If not, what other solutions could there be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxEpt, 2018-11-09
@Rudtoha

As far as I understand, the counting register of the timer must also be present. We set it to 0 in the UART interrupt, no?
PS Unfortunately, I'm not familiar with LPC11u12. But in AVR I reset the TCNT register.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question