Chapter 15

Timers and Counters

Chapter Outline

Timers are among the most-used of microcontroller peripherals. Timers are basically counters with associated comparators and registers for recording the time of occurrence for a particular microcontroller event or for switching a function on or off at a particular time. We can, in fact, divide all of the timer applications into three categories: (1) those that detect some occurrence of a specified event (for example, an input port pin changing state) and record the time of the occurrence; (2) those that compare the timer counter contents to some particular number for the purpose of making ...

Get MSP430-based Robot Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.