PIC18F24J11 MICROCHIP [Microchip Technology], PIC18F24J11 Datasheet - Page 204

no-image

PIC18F24J11

Manufacturer Part Number
PIC18F24J11
Description
28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F24J11-I/ML
Manufacturer:
MICROCHIP
Quantity:
49 000
Part Number:
PIC18F24J11-I/SO
Manufacturer:
Microchip Technology
Quantity:
1 960
PIC18F46J11 FAMILY
13.2
The Timer1 module is an 8-bit or 16-bit incrementing
counter,
TMR1H:TMR1L register pair.
When used with an internal clock source, the module is
a timer and increments on every instruction cycle.
When used with an external clock source, the module
can be used as either a timer or counter and
increments on every selected edge of the external
source.
Timer1 is enabled by configuring the TMR1ON and
TMR1GE bits in the T1CON and T1GCON registers,
respectively.
When Timer1 is enabled, the RC1/T1OSI/RP12 and
RC0/T1OSO/T1CKI/RP11 pins become inputs. This
means the values of TRISC<1:0> are ignored and the
pins are read as ‘0’.
13.3
The TMR1CS<1:0> and T1OSCEN bits of the T1CON
register are used to select the clock source for Timer1.
Register 13-1
When switching clock sources and using the clock
prescaler, write to TMR1L afterwards to reset the
internal prescaler count to 0.
TABLE 13-1:
DS39932D-page 204
TMR1CS1
Timer1 Operation
Clock Source Selection
0
0
1
1
which
displays the clock source selections.
TIMER1 CLOCK SOURCE SELECTION
is
TMR1CS0
accessed
1
0
0
0
through
T1OSCEN
x
x
0
1
the
Clock Source (F
Instruction Clock (F
External Clock on T1CKI Pin
Oscillator Circuit on T1OSI/T1OSO Pin
When the internal clock source is selected, the
external clock sources can be synchronized to the
asynchronously.
13.3.1
TMR1H:TMR1L register pair will increment on multiples
of F
13.3.2
When the external clock source is selected, the Timer1
module may work as a timer or a counter.
When enabled to count, Timer1 is incremented on the
rising edge of the external clock input, T1CKI, or the
capacitive sensing oscillator signal. Either of these
microcontroller
When used as a timer with a clock oscillator, an
external 32.768 kHz crystal can be used in conjunction
with the dedicated internal oscillator circuit.
Note:
OSC
as determined by the Timer1 prescaler.
INTERNAL CLOCK SOURCE
EXTERNAL CLOCK SOURCE
In Counter mode, a falling edge must be
registered by the counter prior to the first
incrementing rising edge after any one or
more of the following conditions:
• Timer1 enabled after POR Reset
• Write to TMR1H or TMR1L
• Timer1 is disabled
• Timer1 is disabled (TMR1ON = 0)
when T1CKI is high, then Timer1 is
enabled (TMR1ON = 1) when T1CKI is
low.
OSC
system
OSC
Clock Source
)
/4)
 2011 Microchip Technology Inc.
clock
or
they
can
run

Related parts for PIC18F24J11