PIC18F85K22-I/PT Microchip Technology, PIC18F85K22-I/PT Datasheet - Page 251

no-image

PIC18F85K22-I/PT

Manufacturer Part Number
PIC18F85K22-I/PT
Description
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheet

Specifications of PIC18F85K22-I/PT

Controller Family/series
PIC18
No. Of I/o's
69
Eeprom Memory Size
1KB
Ram Memory Size
2KB
Cpu Speed
64MHz
No. Of Timers
8
Core Size
8 Bit
Program Memory Size
32KB
Core Processor
PIC
Speed
64MHz
Connectivity
EBI/EMI, I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
69
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 24x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F85K22-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F85K22-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F85K22-I/PTRSL
Manufacturer:
Microchip Technology
Quantity:
10 000
FIGURE 19-1:
19.2.3
When the Capture mode is changed, a false capture
interrupt may be generated. The user should keep the
CCP4IE bit (PIE4<1>) clear to avoid false interrupts
and should clear the flag bit, CCP4IF, following any
such change in operating mode.
19.2.4
There are four prescaler settings in Capture mode.
They are specified as part of the operating mode
selected by the mode select bits (CCP4M<3:0>).
Whenever the CCP module is turned off, or the CCP
module is not in Capture mode, the prescaler counter
is cleared. This means that any Reset will clear the
prescaler counter.
 2009-2011 Microchip Technology Inc.
Note:
SOFTWARE INTERRUPT
CCP PRESCALER
CCP5 Pin
CCP4 Pin
This block diagram uses CCP4 and CCP5, and their appropriate timers as an example. For details on all of
the CCP modules and their timer assignments, see
CAPTURE MODE OPERATION BLOCK DIAGRAM
CCP5CON<3:0>
CCP4CON<3:0>
Prescaler
 1, 4, 16
Prescaler
 1, 4, 16
Q1:Q4
4
Edge Detect
Edge Detect
4
4
and
and
Set CCP4IF
Set CCP5IF
C4TSEL1
C4TSEL0
C4TSEL0
C4TSEL1
C5TSEL0
C5TSEL0
PIC18F87K22 FAMILY
Table 19-2
Switching from one capture prescaler to another may
generate an interrupt. Doing that will also not clear the
prescaler counter – meaning the first capture may be
from a non-zero prescaler.
Example 19-1
switching between capture prescalers. This example
also clears the prescaler counter and will not generate
the “false” interrupt.
EXAMPLE 19-1:
CLRF
MOVLW NEW_CAPT_PS
MOVWF CCP4CON
CCP4CON
and
Table
shows the recommended method for
19-3.
TMR5
Enable
TMR1
Enable
TMR3
Enable
TMR1
Enable
CCPR5H
CCPR4H
TMR5H
TMR1H
TMR3H
TMR1H
CHANGING BETWEEN
CAPTURE PRESCALERS
; Turn CCP module off
; Load WREG with the
; new prescaler mode
; value and CCP ON
; Load CCP4CON with
; this value
CCPR5L
CCPR4L
TMR5L
TMR1L
TMR3L
TMR1L
DS39960D-page 251

Related parts for PIC18F85K22-I/PT