PIC18F2480 MICROCHIP [Microchip Technology], PIC18F2480 Datasheet - Page 258

no-image

PIC18F2480

Manufacturer Part Number
PIC18F2480
Description
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2480-E/ML
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F2480-E/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2480-I/SO
Manufacturer:
Microchi
Quantity:
9 999
Part Number:
PIC18F2480-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F2480-I/SO
0
Part Number:
PIC18F2480-I/SP
Manufacturer:
TDK
Quantity:
64
Part Number:
PIC18F2480-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2480/2580/4480/4580
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 pro-
grammed 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:
DS39637A-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 PIC18F2X80 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 PIC18F2X80 devices.
These bits are available on PIC18F4X80 and reserved on PIC18F2X80 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
OSCFIP
OSCFIE
OSCFIF
PSPIP
PSPIF
PSPIE
RA7
ADFM
Bit 7
IBF
REGISTERS ASSOCIATED WITH A/D OPERATION
(2)
(2)
TRISA6
RA6
CMIP
CMIE
CMIF
ADIP
ADIF
ADIE
Bit 6
OBF
(2)
(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 chan-
nel 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
 2004 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 PIC18F2480