PIC12C672-10/SM Microchip Technology, PIC12C672-10/SM Datasheet - Page 206

no-image

PIC12C672-10/SM

Manufacturer Part Number
PIC12C672-10/SM
Description
IC MCU OTP 2KX14 A/D 8-SOIJ
Manufacturer
Microchip Technology
Series
PIC® 12Cr
Datasheets

Specifications of PIC12C672-10/SM

Core Processor
PIC
Core Size
8-Bit
Speed
10MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
8-SOIC (5.3mm Width), 8-SOP, 8-SOEIAJ
For Use With
XLT08SO-1 - SOCKET TRANSITION 8SOIC 150/208AC164312 - MODULE SKT FOR PM3 16SOICISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1048 - ADAPTER 8-SOIC TO 8-DIP309-1047 - ADAPTER 8-SOIC TO 8-DIPAC124001 - MODULE SKT PROMATEII 8DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Other names
PIC12C672-10/SMR
PIC12C672-10/SMR
PICmicro MID-RANGE MCU FAMILY
14.3
14.3.1
DS31014A-page 14-4
CCP Pin Configuration
Capture Mode
In Capture mode, CCPRxH:CCPRxL captures the 16-bit value of the TMR1 register when an
event occurs on pin CCPx. An event is defined as:
• Every falling edge
• Every rising edge
• Every 4th rising edge
• Every 16th rising edge
An event is selected by control bits CCPxM3:CCPxM0 (CCPxCON<3:0>). When a capture is
made, the interrupt request flag bit, CCPxIF, is set. The CCPxIF bit must be cleared in software.
If another capture occurs before the value in register CCPRx is read, the previous captured value
will be lost.
As can be seen in
Timer1 can also be used as the timebase for other operations. The time between two captures
can easily be computed as the difference between the value of the second capture that of the
first capture. When Timer1 overflows, the TMR1IF bit will be set and if enabled an interrupt will
occur, allowing the time base to be extended to greater than 16-bits.
In Capture mode, the CCPx pin should be configured as an input by setting its corresponding
TRIS bit.
Figure 14-1: Capture Mode Operation Block Diagram
The prescaler can be used to get a very fine average resolution on a constant input frequency.
For example, if we have a stable input frequency and we set the prescaler to 1:16, then the total
error for those 16 periods is 1 T
is 12.5 ns. This technique is only valid where the input frequency is “stable” over the 16 samples.
Without using the prescaler (1:1), each sample would have a resolution of T
Note:
Note:
Timer1 must be running in timer mode or synchronized counter mode for the CCP
module to use the capture feature. In asynchronous counter mode, the capture
operation may not work.
If the CCPx pin is configured as an output, a write to the port can cause a capture
condition.
CCPx Pin
Figure
14-1, a capture does not reset the 16-bit TMR1 register. This is so
edge detect
Q’s
Prescaler
CY
1, 4, 16
and
. This gives an effective resolution of T
CCPxCON<3:0>
Set flag bit CCPxIF
Capture
Enable
CCPRxH
TMR1H
1997 Microchip Technology Inc.
CCPRxL
TMR1L
CY
/16, which at 20 MHz
CY
.

Related parts for PIC12C672-10/SM