PIC18LF8680-I/PT Microchip Technology, PIC18LF8680-I/PT Datasheet - Page 176

no-image

PIC18LF8680-I/PT

Manufacturer Part Number
PIC18LF8680-I/PT
Description
IC, 8BIT MCU, PIC18LF, 40MHZ, PLCC-64
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18LF8680-I/PT

Controller Family/series
PIC18
No. Of I/o's
39
Eeprom Memory Size
1024Byte
Ram Memory Size
3328Byte
Cpu Speed
40MHz
No. Of Timers
4
Core Size
8 Bit
Program Memory Size
32768 Words
Core Processor
PIC
Speed
40MHz
Connectivity
CAN, EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
68
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 16x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TFQFP
Rohs Compliant
Yes
Processor Series
PIC18LF
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3328 B
Interface Type
I2C, SPI, AUSART, CAN
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
69
Number Of Timers
8
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM183032
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF8680-I/PT
Manufacturer:
Microchip
Quantity:
230
Part Number:
PIC18LF8680-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18F6585/8585/6680/8680
The maximum PWM resolution (bits) for a given PWM
frequency is given by the following equation.
EQUATION 15-3:
TABLE 15-4:
TABLE 15-5:
DS30491C-page 174
INTCON
PIR1
PIE1
IPR1
TRISC
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
Legend:
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Note:
Name
PWM Resolution (max)
PWM Frequency
PORTC Data Direction Register
Timer2 Module Register
Timer2 Module Period Register
Capture/Compare/PWM Register 1 (LSB)
Capture/Compare/PWM Register 1 (MSB)
Capture/Compare/PWM Register 2 (LSB)
Capture/Compare/PWM Register 2 (MSB)
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by PWM and Timer2.
If the PWM duty cycle value is longer than
the PWM period, the CCP1 pin will not be
cleared.
GIE/GIEH PEIE/GIEL TMR0IE
PSPIF
PSPIE
PSPIP
P1M1
Bit 7
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 40 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
P1M0
ADIF
ADIE
ADIP
Bit 6
=
log
-----------------------------bits
log
DC1B1
DC2B1
---------------
F
F
RCIE
RCIP
RCIF
Bit 5
PWM
OSC
2
2.44 kHz
0FFh
16
10
DC1B0
DC2B0
INT0IE
Bit 4
TXIF
TXIE
TXIP
9.76 kHz
0FFh
CCP1M3
CCP2M3
SSPIE
SSPIP
10
SSPIF
RBIE
4
Bit 3
15.4.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
39.06 kHz
CCP1M2
CCP2M2
TMR0IF
CCP1IF
CCP1IE
CCP1IP
Bit 2
0FFh
Set the PWM period by writing to the PR2
register.
Set the PWM duty cycle by writing to the
CCPRxL register and CCPxCON<5:4> bits.
Make the CCPx pin an output by clearing
corresponding TRIS bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCPx module for PWM operation.
10
1
SETUP FOR PWM OPERATION
CCP1M1
CCP2M1
TMR2IE
TMR2IP
TMR2IF
INT0IF
Bit 1
156.3 kHz
3Fh
1
8
CCP1M0 0000 0000 0000 0000
CCP2M0 --00 0000 --00 0000
TMR1IE
TMR1IP
TMR1IF
 2004 Microchip Technology Inc.
Bit 0
RBIF
312.5 kHz
1Fh
0000 000x 0000 000u
0000 0000 0000 0000
0000 0000 0000 0000
1111 1111 1111 1111
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
POR, BOR
1
7
Value on
416.6 kHz
Value on
17h
all other
5.5
Resets
1

Related parts for PIC18LF8680-I/PT