Chapter 9

Timer/Counter Modules

In the PIC18F1220 and PIC18F1320 there is 1 × 8 bit and 3 × 16 bit timers, called TMR0, TMR1, TMR2, and TMR3.

We will discuss TMR0, the operation of the other timer/counter modules can be readily understood using the Microchip User Guide.

The Timer0 module has the following features:

ent Software selectable as an 8 bit or 16 bit timer/counter.

ent Readable and writeable.

ent It has a dedicated software programmable prescaler. ...

Get PIC Projects and Applications using C now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.