PIC18F4680-H/ML Microchip Technology, PIC18F4680-H/ML Datasheet - Page 258

no-image

PIC18F4680-H/ML

Manufacturer Part Number
PIC18F4680-H/ML
Description
IC MCU 8BIT 64KB FLASH 44QFN
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheet

Specifications of PIC18F4680-H/ML

Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
36
Program Memory Size
64KB (32K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 150°C
Package / Case
44-VQFN Exposed Pad
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PIC18F2585/2680/4585/4680
19.7
An A/D conversion can be started by the “special event
trigger” of the ECCP1 module. This requires that the
ECCP1M3:ECCP1M0 bits (ECCP1CON<3:0>) be
programmed as ‘1011’ and that the A/D module is
enabled (ADON bit is set). When the trigger occurs, the
GO/DONE bit will be set, starting the A/D acquisition
and conversion and the Timer1 (or Timer3) counter will
be reset to zero. Timer1 (or Timer3) is reset to automat-
ically repeat the A/D acquisition period with minimal
TABLE 19-2:
DS39625C-page 256
INTCON
IPR1
PIR1
PIE1
IPR2
PIR2
PIE2
ADRESH A/D Result Register High Byte
ADRESL
ADCON0
ADCON1
ADCON2
PORTA
TRISA
PORTB
TRISB
LATB
PORTE
TRISE
LATE
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used for A/D conversion.
Note 1:
Name
(4)
2:
3:
4:
5:
(4)
(4)
Use of the CCP1 Trigger
These bits are unimplemented on PIC18F2X8X devices; always maintain these bits clear.
These pins may be configured as port pins depending on the oscillator mode selected.
RE3 port bit is available only as an input pin when the MCLRE Configuration bit is ‘0’.
These registers are not implemented on PIC18F2X8X devices.
These bits are available on PIC18F4X8X and reserved on PIC18F2X8X devices.
Read PORTB pins, Write LATB Latch
PORTB Data Direction Register
PORTB Output Data Latch
TRISA7
GIE/GIEH PEIE/GIEL TMR0IE
A/D Result Register Low Byte
PSPIP
PSPIF
PSPIE
OSCFIP
OSCFIE
OSCFIF
RA7
ADFM
Bit 7
IBF
REGISTERS ASSOCIATED WITH A/D OPERATION
(2)
(1)
(1)
(1)
(2)
TRISA6
CMIP
CMIF
CMIE
RA6
ADIP
ADIF
ADIE
Bit 6
OBF
(2)
(5)
(5)
(5)
(2)
PORTA Data Direction Register
VCFG1
ACQT2
CHS3
RCIP
RCIF
RCIE
IBOV
Bit 5
RA5
PSPMODE
VCFG0
ACQT1
INT0IE
CHS2
EEIP
EEIE
Bit 4
TXIP
TXIF
TXIE
EEIF
RA4
Preliminary
PCFG3
ACQT0
SSPIP
SSPIF
SSPIE
BCLIP
BCLIE
RE3
BCLIF
CHS1
RBIE
Bit 3
RA3
software overhead (moving ADRESH/ADRESL to the
desired location). The appropriate analog input
channel must be selected and the minimum acquisition
period is either timed by the user, or an appropriate
T
sets the GO/DONE bit (starts a conversion).
If the A/D module is not enabled (ADON is cleared), the
“special event trigger” will be ignored by the A/D
module, but will still reset the Timer1 (or Timer3)
counter.
ACQ
(3)
time selected before the “special event trigger”
Read PORTE pins, Write LATE
PORTE Data Direction
TMR0IF
CCP1IP
CCP1IF
CCP1IE
HLVDIP
HLVDIF
HLVDIE
PCFG2
ADCS2
LATE2
CHS0
Bit 2
RA2
GO/DONE
TMR2IP
TMR2IE
TMR3IP ECCP1IP
TMR3IE ECCP1IE
TMR2IF
TMR3IF
PCFG1
ADCS1
INT0IF
LATE1
Bit 1
RA1
© 2007 Microchip Technology Inc.
ECCP1IF
TMR1IP
TMR1IE
TMR1IF
PCFG0
ADCS0
LATE0
ADON
Bit 0
RBIF
RA0
(1)
(5)
(5)
(5)
on page
Values
Reset
49
52
52
52
51
51
52
50
50
50
50
50
52
52
52
52
52
52
52
52

Related parts for PIC18F4680-H/ML