PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 100

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2331/2431/4331/4431
REGISTER 9-6:
DS39616B-page 98
bit 7-5
bit 4
bit 3
bit 2
bit 1
bit 0
Unimplemented: Read as ‘0’
PTIF: PWM Time Base Interrupt bit
1 = PWM Time Base matched the value in PTPER register. Interrupt is issued according to the
0 = PWM Time Base has not matched the value in PTPER register.
IC3DRIF: IC3 Interrupt Flag/Direction Change Interrupt Flag bit
IC3 Enabled (CAP3CON<3:0>)
1 = TMR5 value was captured by the active edge on CAP3 input (must be cleared in software).
0 = TMR5 capture has not occurred.
QEI Enabled (QEIM<2:0>)
1 = Direction of rotation has changed (must be cleared in software).
0 = Direction of rotation has not changed.
IC2QEIF: IC2 Interrupt Flag/QEI Interrupt Flag bit
IC2 Enabled (CAP2CON<3:0>)
1 = TMR5 value was captured by the active edge on CAP2 input (must be cleared in software).
0 = TMR5 capture has not occurred.
QEI Enabled (QEIM<2:0>)
1 = The QEI position counter has reached the MAXCNT value or the index pulse, INDX, has
0 = The QEI position counter has not reached the MAXCNT value or the index pulse has not
IC1IF: IC1 Interrupt Flag bit
IC1 Enabled (CAP1CON<3:0>)
1 = TMR5 value was captured by the active edge on CAP1 input (must be cleared in software).
0 = TMR5 capture has not occurred.
QEI Enabled (QEIM<2:0>) and Velocity Measurement mode enabled
1 = Timer5 value was captured by the active velocity edge (based on PHA or PHB input).
0 = Timer5 value was not captured by the active velocity edge.
TMR5IF: Timer5 Interrupt Flag bit
1 = Timer5 time base matched the PR5 value (must be cleared in software).
0 = Timer5 time base did not match the PR5 value.
bit 7
Legend:
R = Readable bit
-n = Value at POR
PIR3: PERIPHERAL INTERRUPT FLAG REGISTER 3
U-0
postscaler settings. PTIF must be cleared in software.
been detected. Depends on the QEI operating mode enabled. Must be cleared in software.
been detected.
CAP1REN bit must be set in CAP1CON register. IC1IF must be cleared in software.
(VELM = 0 in QEICON Register)
U-0
U-0
Preliminary
W = Writable bit
‘1’ = bit is set
R/W-0
PTIF
IC3DRIF
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = bit is cleared
IC2QEIF
R/W-0
 2003 Microchip Technology Inc.
R/W-0
IC1IF
x = bit is unknown
TMR5IF
R/W-0
bit 0

Related parts for PIC18F2331