PIC18F6490-E/PT Microchip Technology, PIC18F6490-E/PT Datasheet - Page 157

IC PIC MCU FLASH 16KX16 64TQFP

PIC18F6490-E/PT

Manufacturer Part Number
PIC18F6490-E/PT
Description
IC PIC MCU FLASH 16KX16 64TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F6490-E/PT

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, LCD, POR, PWM, WDT
Number Of I /o
50
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
64-TFQFP
For Use With
DM163028 - BOARD DEMO PICDEM LCD
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F6490-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
14.4.3
The following steps should be taken when configuring
the CCP2 module for PWM operation:
1.
2.
TABLE 14-5:
© 2007 Microchip Technology Inc.
INTCON
RCON
PIR1
PIE1
IPR1
TRISC
TRISE
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by PWM or Timer2.
Name
Set the PWM period by writing to the PR2
register.
Set the PWM duty cycle by writing to the
CCPR2L register and CCP2CON<5:4> bits.
SETUP FOR PWM OPERATION
PORTC Data Direction Register
PORTE Data Direction Register
Timer2 Register
Timer2 Period Register
Capture/Compare/PWM Register 1 Low Byte
Capture/Compare/PWM Register 1 High Byte
Capture/Compare/PWM Register 2 Low Byte
Capture/Compare/PWM Register 2 High Byte
GIE/GIEH PEIE/GIEL
IPEN
Bit 7
REGISTERS ASSOCIATED WITH PWM AND TIMER2
T2OUTPS3 T2OUTPS2 T2OUTPS1 T2OUTPS0 TMR2ON T2CKPS1 T2CKPS0
SBOREN
ADIF
ADIE
ADIP
Bit 6
TMR0IE
DC1B1
DC2B1
RC1IF
RC1IE
RC1IP
Bit 5
PIC18F6390/6490/8390/8490
INT0IE
DC1B0
DC2B0
TX1IF
TX1IE
TX1IP
Bit 4
RI
CCP1M3
CCP2M3
3.
4.
5.
SSPIE
SSPIP
SSPIF
RBIE
Bit 3
TO
Make the CCP2 pin an output by clearing the
appropriate TRIS bit.
Set the TMR2 prescale value, then enable
Timer2 by writing to T2CON.
Configure the CCP2 module for PWM operation.
CCP1M2 CCP1M1 CCP1M0
CCP2M2 CCP2M1 CCP2M0
TMR0IF
CCP1IE
CCP1IP
CCP1IF
Bit 2
PD
TMR2IE
TMR2IP
TMR2IF
INT0IF
Bit 1
POR
TMR1IE
TMR1IP
TMR1IF
DS39629C-page 155
RBIF
Bit 0
BOR
on Page
Values
Reset
60
62
62
60
60
60
61
61
61
61
61
61
59
61
61
61

Related parts for PIC18F6490-E/PT