Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

PIC12F1822-I/MF Datasheet(PDF) 173 Page - Microchip Technology

Part # PIC12F1822-I/MF
Description  8/14-Pin Flash Microcontrollers with nanoWatt XLP Technology
PDF  398 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC12F1822-I/MF Datasheet(HTML) 173 Page - Microchip Technology

Back Button PIC12F1822-I/MF Datasheet HTML 169Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 170Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 171Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 172Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 173Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 174Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 175Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 176Page - Microchip Technology PIC12F1822-I/MF Datasheet HTML 177Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 173 / 398 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS41413A-page 173
PIC12F/LF1822/16F/LF1823
20.1
Timer1 Operation
The Timer1 module is a 16-bit incrementing counter
which is accessed through the TMR1H:TMR1L register
pair. Writes to TMR1H or TMR1L directly update the
counter.
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 incre-
ments 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. Table 20-1 displays the Timer1 enable
selections.
20.2
Clock Source Selection
The TMR1CS<1:0> and T1OSCEN bits of the T1CON
register are used to select the clock source for Timer1.
Table 20-2 displays the clock source selections.
20.2.1
INTERNAL CLOCK SOURCE
When the internal clock source is selected the
TMR1H:TMR1L register pair will increment on multiples
of FOSC as determined by the Timer1 prescaler.
When the FOSC internal clock source is selected, the
Timer1 register value will increment by four counts every
instruction clock cycle. Due to this condition, a 2 LSB
error in resolution will occur when reading the Timer1
value. To utilize the full resolution of Timer1, an
asynchronous input signal must be used to gate the
Timer1 clock input.
The following asynchronous sources may be used:
• Asynchronous event on the T1G pin to Timer1
Gate
• C1 or C2 comparator input to Timer1 Gate
20.2.2
EXTERNAL CLOCK SOURCE
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
external clock sources can be synchronized to the
microcontroller system clock or they can run
asynchronously.
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.
TABLE 20-1:
TIMER1 ENABLE
SELECTIONS
TMR1ON
TMR1GE
Timer1
Operation
00
Off
01
Off
10
Always On
11
Count Enabled
Note:
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
• 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.
TABLE 20-2:
CLOCK SOURCE SELECTIONS
TMR1CS1
TMR1CS0
T1OSCEN
Clock Source
01
x
System Clock (FOSC)
00
x
Instruction Clock (FOSC/4)
11
x
Capacitive Sensing Oscillator
10
0
External Clocking on T1CKI Pin
10
1
Osc.Circuit On T1OSI/T1OSO Pins



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com