English
Language : 

PIC18F2585_07 Datasheet, PDF (154/482 Pages) Microchip Technology – Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
PIC18F2585/2680/4585/4680
12.1 Timer1 Operation
Timer1 can operate in one of these modes:
• Timer
• Synchronous Counter
• Asynchronous Counter
The operating mode is determined by the clock select
bit, TMR3CS (T3CON<1>). When TMR3CS is cleared
(= 0), Timer3 increments on every internal instruction
cycle (Fosc/4). When the bit is set, Timer3 increments
on every rising edge of the Timer1 external clock input
or the Timer1 oscillator, if enabled.
When Timer1 is enabled, the RC1/T1OSI and RC0/
T1OSO/T13CKI pins become inputs. This means the
values of TRISC<1:0> are ignored and the pins are
read as ‘0’.
FIGURE 12-1:
T1OSO/T13CKI
T1OSI
TIMER1 BLOCK DIAGRAM
Timer1 Oscillator
On/Off
1
FOSC/4
Internal
Clock
0
T1OSCEN(1)
TMR1CS
T1CKPS1:T1CKPS0
T1SYNC
TMR1ON
Prescaler
1, 2, 4, 8
2
1
Synchronize
Detect
0
Sleep Input
Timer1
On/Off
Clear TMR1
(CCP1 Special Event Trigger)
TMR1L
TMR1
High Byte
Set
TMR1IF
on Overflow
Note 1: When enable bit T1OSCEN is cleared, the inverter and feedback resistor are turned off to eliminate power drain.
FIGURE 12-2:
T1OSO/T13CKI
T1OSI
TIMER1 BLOCK DIAGRAM (16-BIT READ/WRITE MODE)
Timer1 Oscillator
1
1
FOSC/4
Internal
Clock
0
T1OSCEN(1)
TMR1CS
T1CKPS1:T1CKPS0
T1SYNC
TMR1ON
Prescaler
1, 2, 4, 8
2
Synchronize
Detect
0
Sleep Input
Timer1
On/Off
Clear TMR1
(CCP1 Special Event Trigger)
TMR1L
TMR1
High Byte
8
Set
TMR1IF
on Overflow
Read TMR1L
8
8
Write TMR1L
TMR1H
8
8
Internal Data Bus
Note 1: When enable bit T1OSCEN is cleared, the inverter and feedback resistor are turned off to eliminate power drain.
DS39625C-page 152
Preliminary
© 2007 Microchip Technology Inc.