PIC16C781-I/P Microchip Technology, PIC16C781-I/P Datasheet - Page 57

IC MCU OTP 1KX14 W/AD COMP 20DIP

PIC16C781-I/P

Manufacturer Part Number
PIC16C781-I/P
Description
IC MCU OTP 1KX14 W/AD COMP 20DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C781-I/P

Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Core Processor
PIC
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x8b; D/A 1x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-DIP (0.300", 7.62mm)
Controller Family/series
PIC16C
No. Of I/o's
16
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
Processor Series
PIC16C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
2
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000, DM163022
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit
On-chip Dac
8 bit, 1 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMINGDVA16XP202 - ADAPTER DEVICE PIC16C781/782DM163012 - BOARD DEMO PICDEM FOR 16C781/782AC164028 - MODULE SKT PROMATEII 20SOIC/DIP
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
Other names
PIC16C781I/P
6.0
The Timer1 module timer/counter has the following
features:
• 16-bit timer/counter
• Readable and writable (both registers)
• Internal or external clock select
• Interrupt on overflow from FFFFh to 0000h
• External enable input (T1G pin with TMR1GE bit = 1)
• Option for Timer1 to use LP oscillator if device is
Timer1 Control register (T1CON) is shown in Register 6-1.
Figure 6-2 is a simplified block diagram of the Timer1
module.
6.1
Timer1 can operate in one of three modes:
1.
2.
3.
In Timer mode, Timer1 is incremented on every instruc-
tion cycle. In Counter mode, Timer1 is incremented on
the rising edge of the external clock input T1CKI (RA6/
OSC2/CLKOUT/T1CKI). In addition, the Counter mode
clock can be synchronized to the microcontroller clock
or run asynchronously.
In Counter and Timer modes, the counter/timer clock
can be gated by the T1G input.
If an external clock oscillator is needed (and the micro-
controller is using INTRC w/o CLKOUT), Timer1 can
use the LP oscillator as a clock source.
(two 8-bit registers:TMR1H and TMR1L)
configured to use INTRC w/o CLKOUT
2001 Microchip Technology Inc.
Note 1: In Counter mode, the counter increments
16-bit timer with prescaler.
16-bit synchronous counter.
16-bit asynchronous counter.
TIMER1 MODULE WITH GATE
CONTROL
Timer1 Operation
on the rising edge of the clock.
Preliminary
EXAMPLE 6-1:
;* This code block will configure Timer1 for
;* Polling, Ext gate of int clk (Fosc/4), &
;* 1:1 prescaler.
;*
;* Wait for TMR1 overflow code included
;*
;********************************************
;* Wait for TMR1 overflow
T1_OVFL_WAIT
BANKSEL TMR1L
CLRF
CLRF
MOVLW
MOVWF
BSF
BANKSEL PIR1
T1_WAIT
TBFSS
GOTO
BCF
TMR1L
TMR1H
B’01000000’
T1CON
T1CON,TMR1ON
PIR1,TMR1IF
T1_WAIT
PIR1,TMR1IF
PIC16C781/782
TIMER1 INITIALIZATION
; Select Bank 0
; Clear TMR1 LSB
; Clear TMR1 MSB
; Gate, Ps 1:1
; Int clk
; Enable timer
; Select Bank 0
;
; Overflow?
; If 0, again
; Clear flag
DS41171A-page 55

Related parts for PIC16C781-I/P