PIC16F684-I/SL Microchip Technology Inc., PIC16F684-I/SL Datasheet - Page 49
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16F684-I/SL
Manufacturer Part Number
PIC16F684-I/SL
Description
14 PIN, 3.5 KB FLASH, 128 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F684-ISL.pdf
(192 pages)
Specifications of PIC16F684-I/SL
A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
12
Memory Type
Flash
Number Of Bits
8
Package Type
14-pin SOIC-N
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F684-I/SL
Manufacturer:
MXIC
Quantity:
1 500
Company:
Part Number:
PIC16F684-I/SL
Manufacturer:
Microchip Technology
Quantity:
32 570
Part Number:
PIC16F684-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
6.0
The Timer1 module is a 16-bit timer/counter with the
following features:
• 16-bit timer/counter register pair (TMR1H:TMR1L)
• Programmable internal or external clock source
• 3-bit prescaler
• Optional LP oscillator
• Synchronous or asynchronous operation
• Timer1 gate (count enable) via comparator or
• Interrupt on overflow
• Wake-up on overflow (external clock,
• Time base for the Capture/Compare function
• Special Event Trigger (with ECCP)
• Comparator output synchronization to Timer1
Figure 6-1 is a block diagram of the Timer1 module.
FIGURE 6-1:
© 2006 Microchip Technology Inc.
F
F
T1G pin
Asynchronous mode only)
clock
OSC
OSC
T1OSCEN
Sleep
= 100
= 000
OSC1/T1CKI
TIMER1 MODULE WITH GATE
CONTROL
OSC2/T1G
Note 1:
Set flag bit
TMR1IF on
Overflow
2:
*
ST Buffer is low power type when using LP osc, or high speed type when using T1CKI.
Timer1 register increments on rising edge.
Synchronize does not operate while in Sleep.
TIMER1 BLOCK DIAGRAM
Oscillator
TMR1H
TMR1
(1)
TMR1L
EN
*
Internal
F
OSC
Clock
/4
6.1
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. When used with an external clock source, the
module can be used as either a timer or counter.
6.2
The TMR1CS bit of the T1CON register is used to select
the clock source. When TMR1CS = 0, the clock source
is F
supplied externally.
F
T1CKI pin
TMR1CS
OSC
0
1
OSC
To C2 Comparator Module
Timer1 Clock
/4
/4. When TMR1CS = 1, the clock source is
Timer1 Operation
Clock Source Selection
Clock Source
T1CKPS<1:0>
T1SYNC
Prescaler
TMR1ON
1, 2, 4, 8
0
1
2
C2OUT
TMR1GE
PIC16F684
Synchronized
clock input
T1GSS
Synchronize
1
0
det
DS41202D-page 47
(2)
TMR1CS
T1GINV
0
1