Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How is the 16-bit Timer/Event Counter setup?

counter event Setup timer
0
Posted

How is the 16-bit Timer/Event Counter setup?

0

Answer The 16-bit counter is a count-up Timer/Event counter, which upon reaching its maximum count of 65535 (0FFFFH) and overflowing to zero, will generate an interrupt. Therefore if it is required to count to a value of N, where N<65535, the timer must be setup with a value equal to 65536-N. After setting up and starting the Timer/Event counter, the counter will start to count up from this preloaded value to 65535 and on the next count will overflow to zero (namely 65536). The counter value is therefore 65536-(65536-N)=N.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123