PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 53

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
6.0
The Timer1 module is the 16-bit counter of the
PIC16F785/HV785. Figure 6-1 shows the basic block
diagram of the Timer1 module. Timer1 has the follow-
ing features:
• 16-bit timer/counter (TMR1H:TMR1L)
• Readable and writable
• Internal or external clock selection
• Synchronous or asynchronous operation
• Interrupt on overflow from FFFFh to 0000h
• Wake-up upon overflow (Asynchronous mode)
• Optional external enable input:
• Optional LP oscillator
FIGURE 6-1:
© 2008 Microchip Technology Inc.
- Selectable gate source; T1G or C2 output
- Selectable gate polarity (T1GINV)
Without CLKOUT
(T1GSS)
RA5/T1CKI/OSC1/CLKIN
RA4/AN3/T1G/OSC2/CLKOUT
Note 1: Timer1 increments on the rising edge.
INTOSC
TIMER1 MODULE WITH GATE
CONTROL
LP
Sleep
*
2: SYNCC2OUT is the synchronized output from Comparator 2 (See Figure 9-2 on 66).
ST Buffer is low power type when using LP OSC, or high-speed type when using T1CKI.
Set flag bit
TMR1IF on
Overflow
T1OSCEN
TIMER1 ON THE PIC16F785/HV785 BLOCK DIAGRAM
TMR1H
Oscillator
TMR1
(1)
TMR1L
*
Internal
Clock
F
OSC
Q
EN
D
/4
The Timer1 Control register (T1CON), shown in
Register 6-1, is used to enable/disable Timer1 and
select the various features of the Timer1 module.
TMR1CS
1
0
To C2 Comparator Module
TMR1 Clock
PIC16F785/HV785
T1CKPS<1:0>
T1SYNC
SYNCC2OUT
Prescaler
1, 2, 4, 8
0
1
2
TMR1ON
TMR1GE
TMR1ON
TMR1GE
(2)
Synchronized
clock input
T1GSS
Sleep input
Synchronize
1
0
det
DS41249E-page 51
T1GINV

Related parts for PIC16F785-E/SS