PIC18F258 MICROCHIP [Microchip Technology], PIC18F258 Datasheet - Page 133

no-image

PIC18F258

Manufacturer Part Number
PIC18F258
Description
High Performance, 28/40-Pin Enhanced FLASH Microcontrollers with CAN
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F258-E/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F258-I/P
Manufacturer:
ST
Quantity:
320
Part Number:
PIC18F258-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC18F258-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2580
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F2580-E/ML
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2580-E/SO
Manufacturer:
Microchi
Quantity:
2 952
Part Number:
PIC18F2580-E/SP
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2580-I/SO
Manufacturer:
MICRO
Quantity:
10
Part Number:
PIC18F2580-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2580-I/SO
0
Part Number:
PIC18F2585-I/SO
Quantity:
2
16.2
The Capture Mode of the ECCP module is virtually
identical in operation to that of the standard CCP mod-
ule, as discussed in Section 15.1. The differences are
in the registers and port pins involved:
• The 16-bit Capture register is ECCPR1 (ECCPR1H
• The capture event is selected by control bits
• The interrupt bits are ECCP1IE (PIE2<0>) and
• The capture input pin is RD4, and its corresponding
Other operational details, including timer selection, out-
put pin configuration and software interrupts, are
exactly the same as the standard CCP module.
16.2.1
The special capture event for the reception of CAN
messages (Section 15.2.5) is not available with the
ECCP module.
TABLE 16-4:
 2002 Microchip Technology Inc.
INTCON
PIR2
PIE2
IPR2
TMR1L
TMR1H
T1CON
TMR3L
TMR3H
T3CON
TRISD
ECCPR1L
ECCPR1H
ECCP1CON EPWM1M1 EPWM1M0 EDC1B1
Legend: x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by the ECCP module and Timer1.
and ECCPR1L);
ECCP1M3:ECCP1M0 (ECCP1CON<3:0>);
ECCP1IF (PIR2<0>); and
direction control bit is TRISD<4>.
Name
Capture Mode
CAN MESSAGE TIME-STAMP
Holding Register for the Least Significant Byte of the 16-bit TMR1 Register
Holding Register for the Most Significant Byte of the 16-bit TMR1 Register
Holding Register for the Least Significant Byte of the 16-bit TMR3 Register
Holding Register for the Most Significant Byte of the 16-bit TMR3 Register
PORTD Data Direction Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
GIE/GIEH PEIE/GIEL TMR0IE
RD16
RD16
Bit 7
REGISTERS ASSOCIATED WITH ENHANCED CAPTURE, COMPARE, TIMER1 AND
TIMER3
T3ECCP1 T3CKPS1 T3CKPS0
CMIF
CMIE
CMIP
Bit 6
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC
Bit 5
EDC1B0 ECCP1M3 ECCP1M2 ECCP1M1 ECCP1M0 0000 0000 0000 0000
INT0IE
EEIE
EEIP
Bit 4
EEIF
Preliminary
T3CCP1
BCLIF
BCLIE
BCLIP
RBIE
Bit 3
16.3
The Compare Mode of the ECCP module is virtually
identical in operation to that of the standard CCP mod-
ule, as discussed in Section 15.2. The differences are
in the registers and port pins, as described in
Section 16.2. All other details are exactly the same.
16.3.1
Except as noted below, the special event trigger output
of ECCP1 functions identically to that of the standard
CCP module. It may be used to start an A/D conversion
if the A/D module is enabled.
Note:
T3SYNC
TMR0IF
LVDIE
LVDIP
LVDIF
Bit 2
Compare Mode
The special Event trigger from the ECCP1
module will not set the Timer1 or Timer3
interrupt flag bits.
SPECIAL EVENT TRIGGER
TMR1CS TMR1ON 0-00 0000 u-uu uuuu
TMR3CS TMR3ON 0000 0000 uuuu uuuu
TMR3IF
TMR3IE
TMR3IP
INT0IF
Bit 1
ECCP1IE -0-0 0000 -0-0 0000
ECCP1IP -0-0 1111 -1-1 1111
ECCP1IF -0-0 0000 -0-0 0000
PIC18FXX8
RBIF
Bit 0
0000 000x 0000 000u
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
POR, BOR
Value on
DS41159B-page 131
Value on
RESETS
all other

Related parts for PIC18F258