PIC17C756A MICROCHIP [Microchip Technology], PIC17C756A Datasheet - Page 33

no-image

PIC17C756A

Manufacturer Part Number
PIC17C756A
Description
High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C756A
Manufacturer:
Microchip
Quantity:
6
Part Number:
PIC17C756A-16/L
Manufacturer:
MICROCHIP
Quantity:
101
Part Number:
PIC17C756A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-16/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC17C756A-16/PT
Manufacturer:
SA
Quantity:
12 000
Part Number:
PIC17C756A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-16/PT
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC17C756A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-16E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-16I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-16I/L
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C756A-16I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC17C756A-16I/PT
0
Part Number:
PIC17C756A-33
Manufacturer:
Microchip
Quantity:
5 510
Part Number:
PIC17C756A-33
Manufacturer:
INTEL
Quantity:
5 510
Part Number:
PIC17C756A-33/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
6.0
PIC17C7XX devices have 18 sources of interrupt:
• External interrupt from the RA0/INT pin
• Change on RB7:RB0 pins
• TMR0 Overflow
• TMR1 Overflow
• TMR2 Overflow
• TMR3 Overflow
• USART1 Transmit buffer empty
• USART1 Receive buffer full
• USART2 Transmit buffer empty
• USART2 Receive buffer full
• SSP Interrupt
• SSP I
• A/D conversion complete
• Capture1
• Capture2
• Capture3
• Capture4
• T0CKI edge occurred
There are six registers used in the control and status of
interrupts. These are:
• CPUSTA
• INTSTA
• PIE1
• PIR1
• PIE2
• PIR2
The CPUSTA register contains the GLINTD bit. This is
the Global Interrupt Disable bit. When this bit is set, all
interrupts are disabled. This bit is part of the controller
core functionality and is described in the Section 6.4.
FIGURE 6-1:
2000 Microchip Technology Inc.
2
INTERRUPTS
C bus collision interrupt
TMR1IF
TMR1IE
CA4IF
CA4IE
SSPIF
SSPIE
CA1IF
CA1IE
TX2IF
TX2IE
RBIF
RBIE
TMR3IF
TMR3IE
CA2IF
CA2IE
RC2IF
RC2IE
BCLIF
BCLIE
CA3IF
CA3IE
TX1IF
TX1IE
INTERRUPT LOGIC
TMR2IF
TMR2IE
RC1IF
RC1IE
ADIF
ADIE
T0CKIF
T0CKIE
INTF
INTE
PEIF
PEIE
T0IF
T0IE
When an interrupt is responded to, the GLINTD bit is
automatically set to disable any further interrupts, the
return address is pushed onto the stack and the PC is
loaded with the interrupt vector address. There are four
interrupt vectors. Each vector address is for a specific
interrupt source (except the peripheral interrupts, which
all vector to the same address). These sources are:
• External interrupt from the RA0/INT pin
• TMR0 Overflow
• T0CKI edge occurred
• Any peripheral interrupt
When program execution vectors to one of these inter-
rupt vector addresses (except for the peripheral inter-
rupts), the interrupt flag bit is automatically cleared.
Vectoring to the peripheral interrupt vector address
does not automatically clear the source of the interrupt.
In the peripheral Interrupt Service Routine, the
source(s) of the interrupt can be determined by testing
the interrupt flag bits. The interrupt flag bit(s) must be
cleared in software before re-enabling interrupts to
avoid infinite interrupt requests.
When an interrupt condition is met, that individual inter-
rupt flag bit will be set, regardless of the status of its
corresponding mask bit or the GLINTD bit.
For external interrupt events, there will be an interrupt
latency. For two-cycle instructions, the latency could be
one instruction cycle longer.
The “return from interrupt” instruction, RETFIE, can be
used to mark the end of the Interrupt Service Routine.
When this instruction is executed, the stack is “POPed”
and the GLINTD bit is cleared (to re-enable interrupts).
INTSTA
GLINTD (CPUSTA<4>)
PIC17C7XX
Wake-up (If in SLEEP mode)
or terminate long write
DS30289B-page 33
Interrupt to CPU

Related parts for PIC17C756A