PIC18LF2331-I/SP Microchip Technology, PIC18LF2331-I/SP Datasheet - Page 159
![IC MCU FLASH 4KX16 28-DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18LF2331-I/SP
Manufacturer Part Number
PIC18LF2331-I/SP
Description
IC MCU FLASH 4KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC18F2331-ISO.pdf
(392 pages)
4.PIC18F2331-ISO.pdf
(8 pages)
5.PIC18F2331-ISO.pdf
(6 pages)
6.PIC18F2331-ISO.pdf
(16 pages)
7.PIC18LF2331-ISO.pdf
(4 pages)
8.PIC18LF2331-ISO.pdf
(40 pages)
Specifications of PIC18LF2331-I/SP
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
Number Of I /o
24
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- PIC16F616T-ISL PDF datasheet
- PIC16F818-ISO PDF datasheet #2
- PIC18F2331-ISO PDF datasheet #3
- PIC18F2331-ISO PDF datasheet #4
- PIC18F2331-ISO PDF datasheet #5
- PIC18F2331-ISO PDF datasheet #6
- PIC18LF2331-ISO PDF datasheet #7
- PIC18LF2331-ISO PDF datasheet #8
- Current page: 159 of 392
- Download datasheet (4Mb)
17.1.5
The following is a summary of functional operation
upon entering any of the Input Capture modes:
1.
2.
FIGURE 17-7:
2010 Microchip Technology Inc.
TMR5 Reset
Note 1: Timer5 is only reset and enabled (assuming TMR5ON = 0 and T5MOD = 1) when the Special Event Trigger Reset is
TMR5ON
After the module is configured for one of the
Capture modes by setting the Capture Mode
Select bits (CAPxM<3:0>), the first detected
edge captures the Timer5 value and stores it in
the CAPxBUF register. The timer is then reset
(depending on the setting of CAPxREN bit) and
starts to increment according to its settings (see
Figure
On all edges, the capture logic performs the
following:
a)
b)
c)
d)
e)
f)
CAP1 Pin
TMR5
IC1IF
OSC
Input Capture mode is decoded and the
active edge is identified.
The CAPxREN bit is checked to determine
whether Timer5 is reset or not.
On every active edge, the Timer5 value is
recorded in the Input Capture Buffer
(CAPxBUF).
Reset Timer5 after capturing the value of
the timer when the CAPxREN bit is
enabled. Timer5 is reset on every active
capture edge in this case.
On all continuing capture edge events,
repeat steps (a) through (d) until the opera-
tional mode is terminated, either by user
firmware, POR or BOR.
The timer value is not affected when switch-
ing into and out of various Input Capture
modes.
(1)
17-4,
ENTERING INPUT CAPTURE MODE
AND CAPTURE TIMING
enabled for the Timer5 Reset input. The TMR5ON bit is asserted and Timer5 is reset on the Q1 rising edge following
the event capture. With the Special Event Trigger Reset disabled, Timer5 cannot be reset by the Special Event Trigger
Reset on the CAP1 input. In order for the Special Event Trigger Reset to work as the Reset trigger to Timer5, IC1 must
be configured in the Special Event Trigger mode (CAP1M<3:0> = 1110 or 1111).
Q1
Figure 17-5
Q2
XXXX
CAPx INTERRUPTS AND IC1 SPECIAL EVENT TRIGGER
Q3
and
Q4
Figure
Q1
Q2
17-6).
PIC18F2331/2431/4331/4431
Q3
Q4
Q1
Q2
17.1.6
Every input capture trigger can optionally reset
(TMR5). The Capture Reset Enable bit, CAPxREN,
gates the automatic Reset of the time base of the cap-
ture event with this enable Reset signal. All capture
events reset the selected timer when CAPxREN is set.
Resets are disabled when CAPxREN is cleared (see
Figure
17.1.7
There are four operating modes for which the IC
module can generate an interrupt and set one of the
Interrupt Capture Flag bits (IC1IF, IC2QEIF or
IC3DRIF). The interrupt flag that is set depends on the
channel in which the event occurs. The modes are:
• Edge Capture
• Period Measurement Event (CAPxM<3:0> = 0101)
• Pulse-Width Measurement Event
• State Change Event (CAPxM<3:0> = 1000)
The timing of interrupt and Special Event Trigger
events is shown in
detected on the rising edge of Q2 and propagated on
the rising edge of Q4 rising edge. If an active edge
happens to occur any later than this (on the falling edge
of Q2, for example), then it will be recognized on the
next Q2 rising edge.
Q3
Note:
(CAPxM<3:0> = 0001, 0010, 0011 or 0100)
(CAPxM<3:0> = 0110 or 0111)
Note:
Q4
17-4,
TIMER5 RESET
The CAPxREN bit has no effect in
Pulse-Width Measurement mode.
IC INTERRUPTS
The Special Event Trigger is generated
only in the Special Event Trigger mode on
the CAP1 input (CAP1M<3:0> = 1110
and 1111). IC1IF interrupt is not set in this
mode.
Q1
Figure 17-5
Q2
0000
Figure
Q3
and
Q4
17-7. Any active edge is
Figure
Q1
DS39616D-page 159
17-6).
Q2
0001
Q3
Q4
Related parts for PIC18LF2331-I/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: