| The oTimer Object directly encapsulates the PIC's Timer1 Hardware Module. (Timer1) Timer1 counts each cycle of a clock source by incrementing a 16 bit value each time the clock source cycles. When the 16-Bit value reaches a count of 65535, the next clock source cycle will roll the value back to 0. The Count property directly reads and writes the Timer1 Module's 16-Bit value which consists of the TMR1L and TMR1H registers. The ExtClock property specifies if the Timer1 Module is to count the cycles of an internal 5Mhz clock or the cycles present on a external clock supplied on I/O line 16. This property directly reads and writes the Timer1 Module TMR1CS bit. The ExtXtal property specifies if I/O Line 16 is used in conjunction with I/O Line 17 for a crystal to be connected. This property directly reads and writes the Timer1 Module T1OSCEN bit. The PreScale property specifies if and how the Timer1 Module divides the clock source cycles before they are counted. This property directly reads and writes the Timer1 Module T1CKPS bits. The Operate property specifies if the Timer1 Module increments each time the clock source cycles. This property directly reads and writes the Timer1 Module TMR1ON bit. Note that all instances of the oTimer object will use the PIC's Timer1 Hardware Module. Therefore, all instances of the oTimer object will have the same 16-Bit count. This includes instances of objects that use the oTimer object. |