15.0 Synchronous Serial Port (SSP) Module..................................................................................................................................... 123
17.0 Special Features of the CPU ..................................................................................................................................................... 177
18.0 Instruction Set Summary............................................................................................................................................................183
19.0 Development Support ................................................................................................................................................................ 219
21.0 PIC17C752/756 DC and AC Characteristics ............................................................................................................................. 249
22.0 Packaging Information ............................................................................................................................................................... 261
Appendix F:Status and Control Registers..................................................................................................................................... 273
Index .................................................................................................................................................................................................. 303
We constantly strive to improve the quality of all our products and documentation. We have spent an excep-
tional amount of time to ensure that these documents are correct. However, we realize that we may have
missed a few things. If you find any information that is missing or appears in error, please use the reader
response form in the back of this data sheet to inform us. We appreciate your assistance in making this a better document.
DS30264A-page 4
Preliminary
1997 Microchip Technology Inc.
PIC17C75X
1.0OVERVIEW
This data sheet covers the PIC17C75X group of the
PIC17CXXX family of microcontrollers. The following
devices are discussed in this data sheet:
• PIC17C752
• PIC17C756
The PIC17C75X devices are 68-Pin, EPROM-based
members of the versatile PIC17CXXX family of
low-cost, high-performance, CMOS, fully-static, 8-bit
microcontrollers.
All PIC16/17 microcontrollers employ an advanced
RISC architecture. The PIC17CXXX has enhanced
core features, 16-lev el deep stack, and multiple internal
and external interrupt sources. The separate instruction and data buses of the Harvard architecture allow a
16-bit wide instruction word with a separate 8-bit wide
data path. The two stage instruction pipeline allows all
instructions to execute in a single cycle, e xcept for program branches (which require two cycles). A total of 58
instructions (reduced instruction set) are available.
Additionally, a large register set gives some of the
architectural innovations used to achieve a very high
performance. For mathematical intensive applications
all devices have a single cycle 8 x 8 Hardware Multiplier.
PIC17CXXX microcontrollers typically achieve a 2:1
code compression and a 4:1 speed improvement over
other 8-bit microcontrollers in their class.
PIC17C75X devices have up to 902 bytes of RAM and
50 I/O pins. In addition, the PIC17C75X adds several
peripheral features useful in many high performance
applications including:
• Four timer/counters
• Four capture inputs
• Three PWM outputs
• Two independant Universal Synchronous Asynchronous Receiver Transmitters (USARTs)
• An A/D converter (12 channel, 10-bit resolution)
• A Synchronous Serial Port
(SPI and I
These special features reduce external components,
thus reducing cost, enhancing system reliability and
reducing power consumption.
There are four oscillator options, of which the single pin
RC oscillator provides a low-cost solution, the LF oscillator is for low frequency crystals and minimizes power
consumption, XT is a standard crystal, and the EC is for
external clock input.
The SLEEP (power-down) mode offers additional
power saving. W ak e-up from SLEEP can occur through
several external and internal interrupts and device
resets.
A highly reliable Watchdog Timer with its own on-chip
RC oscillator provides protection against software malfunction.
2
C w/ Master mode)
There are four configuration options for the device
operational mode:
• Microprocessor
• Microcontroller
• Extended microcontroller
• Protected microcontroller
The microprocessor and extended microcontroller
modes allow up to 64K-words of external program
memory.
Brown-out Reset circuitry has also been added to the
device. This allo ws a device reset to occur if the device
V
DD
falls below the Brown-out voltage trip point
(BV
). The chip will remain in Brown-out Reset until
DD
V
rises above BV
DD
Table 1-1 lists the features of the PIC17CXXX devices.
A UV-erasable CERQUAD-packaged version (compat-
ible with PLCC) is ideal for code de velopment while the
cost-effective One-Time Programmable (OTP) version
is suitable for production in any volume.
The PIC17C75X fits perfectly in applications that
require extremely fast execution of complex software
programs. These include applications ranging from
precise motor control and industrial process control to
automotive, instrumentation, and telecom applications.
The EPROM technology makes customization of application programs (with unique security codes, combinations, model numbers, parameter storage, etc.) fast
and convenient. Small footprint package options
(including die sales) make the PIC17C75X ideal for
applications with space limitations that require high
performance.
An In-circuit Serial Programming (ISP) feature allows:
• Flexibility of programming the software code as
one of the last steps of the manufacturing process
High speed execution, powerful peripheral features,
flexible I/O, and low power consumption all at low cost
make the PIC17C75X ideal for a wide range of embedded control applications.
1.1Family and
The PIC17CXXX family of microcontrollers have architectural enhancements over the PIC16C5X and
PIC16CXX families. These enhancements allow the
device to be more efficient in software and hardware
requirements. Refer to Appendix A for a detailed list of
enhancements and modifications. Code written for
PIC16C5X or PIC16CXX can be easily ported to
PIC17CXXX devices (Appendix B).
.
DD
Upward Compatibility
1.2Development Support
The PIC17CXXX family is supported by a full-featured
macro assembler, a software simulator, an in-circuit
emulator, a universal programmer, a “C” compiler, and
fuzzy logic support tools. For additional inf ormation see
Section 19.0.
SSP (SPI/I
Power-on Reset
Watchdog TimerYesYesYesYesYesYesYes
External InterruptsYesYesYesYesYesYesYes
Interrupt Sources11111111111818
Code ProtectYesYesYes Yes Yes YesYes
Brown-out Reset-----YesYes
In-circuit Serial Programming-----YesYes
I/O Pins33333333335050
I/O High Current
Capability
Package Types
Note 1: Pins RA2 and RA3 can sink up to 60 mA.
2
(EPROM)-16 K4K-8K8K16K
(ROM)2K--4K---
C w/Master mode)
Source25 mA25 mA25 mA25 mA25 mA25 mA25 mA
Sink
33 MHz33 MHz33 MHz33 MHz33 MHz33 MHz33 MHz
YesYesYesYesYesYesYes
-----YesYes
YesYesYesYesYesYesYes
(1)
25 mA
40-pin DIP
44-pin PLCC
44-pin MQFP
44-pin TQFP
44-pin PLCC
44-pin MQFP
44-pin TQFP
(1)
25 mA
40-pin DIP
(1)
25 mA
40-pin DIP
44-pin PLCC
44-pin MQFP
44-pin TQFP
(1)
25 mA
40-pin DIP
44-pin PLCC
44-pin MQFP
44-pin TQFP
(1)
25 mA
40-pin DIP
44-pin PLCC
44-pin MQFP
44-pin TQFP
(1)
25 mA
64-pin DIP
68-pin LCC
68-pin TQFP
25 mA
64-pin DIP
68-pin LCC
68-pin TQFP
(1)
DS30264A-page 6
Preliminary
1997 Microchip Technology Inc.
PIC17C75X
2.0DEVICE VARIETIES
Each device has a variety of frequency ranges and
packaging options. Depending on application and production requirements, the proper device option can be
selected using the information in the PIC17C75X Product Selection System section at the end of this data
sheet. When placing orders, please use the
“PIC17C75X Product Identification System” at the back
of this data sheet to specify the correct part number.
When discussing the functionality of the device, memory technology and voltage range does not matter.
There are three memory type options. These are specified in the middle characters of the part number.
1. C , as in PIC17 C 756. These devices have
EPROM type memory.
2. CR , as in PIC17 CR 756. These devices have
ROM type memory.
3. F , as in PIC17 F 756. These devices have Flash
type memory.
All these devices operate over the standard voltage
range. Devices are also offered which operate over an
extended voltage range (and reduced frequency
range). Table 2-1 shows all possible memory types and
voltage range designators for a particular device.
These designators are in bold typeface.
TABLE 2-1:DEVICE MEMORY
VARIETIES
Voltage Range
Memory T ype
EPROMPIC17
ROM
Flash
Note:Not all memory technologies are available
Standard Extended
C
XXXPIC17
PIC17
CR
XXXPIC17
PIC17FXXXPIC17LFXXX
for a particular device.
LC
LCR
XXX
XXX
2.1UV Erasable Devices
The UV erasable version, offered in CERQUAD package, is optimal for prototype dev elopment and pilot programs.
The UV erasable version can be erased and reprogrammed to any of the configuration modes.
Microchip's programming of the PIC17C75X. Third
party programmers also are available; ref er to the
Party Guide
for a list of sources.
Third
2.2One-Time-Programmable (OTP)
Devices
The availability of OTP devices is especially useful for
customers expecting frequent code changes and
updates.
The OTP devices, packaged in plastic packages, permit the user to program them once. In addition to the
program memory, the configuration bits must be programmed.
2.3Quick-Turnaround-Production (QTP)
Devices
Microchip offers a QTP Programming Service for factory production orders. This service is made available
for users who choose not to program a medium to high
quantity of units and whose code patterns have stabilized. The devices are identical to the OTP devices but
with all EPROM locations and configuration options
already programmed by the factory. Certain code and
prototype verification procedures apply before production shipments are available. Please contact your local
Microchip Technology sales office for more details.
2.4Serialized Quick-Turnaround
Production (SQTPSM) Devices
Microchip offers a unique programming service where
a few user-defined locations in each device are programmed with different serial numbers. The serial numbers may be random, pseudo-random or sequential.
Serial programming allows each device to have a
unique number which can serve as an entry-code,
password or ID number.
1997 Microchip Technology Inc.
Preliminary
DS30264A-page 7
PIC17C75X
2.5Read Only Memory (ROM) Devices
Microchip offers masked ROM versions of several of
the highest volume parts, thus giving customers a low
cost option for high volume, mature products.
ROM devices do not allow serialization information in
the program memory space.
For information on submitting ROM code, please contact your regional sales office.
Note:Presently, NO ROM versions of the
PIC17C75X devices are available.
2.6Flash Memory Devices
These devices are electrically erasable and, therefore,
can be offered in the low cost plastic package. Being
electrically erasable, these devices can be erased and
reprogrammed in-circuit. These devices are the same
for prototype development, pilot programs, as well as
production.
Note:Presently, NO Flash versions of the
PIC17C75X devices are available.
DS30264A-page 8Preliminary 1997 Microchip Technology Inc.
PIC17C75X
3.0ARCHITECTURAL OVERVIEW
The high performance of the PIC17CXXX can be attributed to a number of architectural features commonly
found in RISC microprocessors. To begin with, the
PIC17CXXX uses a modified Harvard architecture.
This architecture has the program and data accessed
from separate memories. So , the de vice has a prog ram
memory bus and a data memory bus. This improves
bandwidth over traditional von Neumann architecture,
where program and data are fetched from the same
memory (accesses over the same bus). Separating
program and data memory further allows instructions to
be sized differently than the 8-bit wide data word.
PIC17CXXX opcodes are 16-bits wide, enabling single
word instructions. The full 16-bit wide program memory
bus fetches a 16-bit instruction in a single cycle. A
two-stage pipeline overlaps fetch and execution of
instructions. Consequently, all instructions execute in a
single cycle (121 ns @ 33 MHz), except for program
branches and two special instructions that transfer data
between program and data memory.
The PIC17CXXX can address up to 64K x 16 of program memory space.
The PIC17C752 integrates 8K x 16 of EPROM program memory on-chip.
The PIC17C756 integrates 16K x 16 EPROM program
memory.
Program execution can be internal only (microcontroller or protected microcontroller mode), external only
(microprocessor mode) or both (extended microcontroller mode). Extended microcontroller mode does not
allow code protection.
The PIC17CXXX can directly or indirectly address its
register files or data memory. All special function registers, including the Program Counter (PC) and Working
Register (WREG), are mapped in the data memory.
The PIC17CXXX has an orthogonal (symmetrical)
instruction set that makes it possible to carry out any
operation on any register using any addressing mode.
This symmetrical nature and lack of ‘special optimal situations’ make programming with the PIC17CXXX simple yet efficient. In addition, the learning curve is
reduced significantly.
One of the PIC17CXXX family architectural enhancements from the PIC16CXX family allows two file registers to be used in some two operand instructions. This
allows data to be moved directly between two registers
without going through the WREG register. Thus
increasing performance and decreasing program
memory usage.
The PIC17CXXX devices contain an 8-bit ALU and
working register. The ALU is a general purpose arithmetic unit. It perf orms arithmetic and Boolean functions
between data in the working register and any register
file.
The ALU is 8-bits wide and capable of addition, subtraction, shift, and logical operations. Unless otherwise
mentioned, arithmetic operations are two's complement in nature.
The WREG register is an 8-bit working register used for
ALU operations.
All PIC17C75X devices have an 8 x 8 hardware multiplier. This m ultiplier generates a 16-bit result in a single
cycle.
Depending on the instruction executed, the ALU may
affect the values of the Carry (C), Digit Carry (DC), and
Zero (Z) bits in the ALUSTA register. The C and DC bits
operate as a borro
tively, in subtraction. See the SUBLW and SUBWF
instructions for examples.
Although the ALU does not perform signed arithmetic,
the Overflow bit (O V) can be used to implement signed
math. Signed arithmetic is comprised of a magnitude
and a sign bit. The overflow bit indicates if the magnitude overflows and causes the sign bit to change state.
That is if the result of the signed operation is greater
then 128 (7Fh) or less then -127 (FFh). Signed math
can have greater than 7-bit v alues (magnitude), if more
than one byte is used. The use of the overflow bit only
operates on bit6 (MSb of magnitude) and bit7 (sign bit)
of the value in the ALU. That is, the overflow bit is not
useful if trying to implement signed math where the
magnitude, for example, is 11-bits. If the signed math
values are greater than 7-bits (15-, 24- or 31-bit), the
algorithm must ensure that the low order bytes ignore
the overflow status bit.
Care should be taken when adding and subtracting
signed numbers to ensure that the correct operation is
executed. Example 3-1 shows an item that must be
taken into account when doing signed arithmetic on an
ALU which operates as an unsigned machine.
w and digit borrow out bit, respec-
EXAMPLE 3-1:SIGNED MATH
Hex ValueSigned Value
Math
FFh
+ 01h
= ?
Signed math requires the result to be FEh
(-126). This would be accomplished by
subtracting one as opposed to adding one.
A simplified block diagram is shown in Figure 3-1. The
descriptions of the device pins are listed in Table 3-1.
DS30264A-page 10Preliminary 1997 Microchip Technology Inc.
PIC17C75X
TABLE 3-1:PINOUT DESCRIPTIONS
DIP
Name
OSC1/CLKIN475039ISTOscillator input in crystal/resonator or RC oscillator mode.
OSC2/CLKOUT485140O—Oscillator output. Connects to crystal or resonator in crystal
MCLR
/VPP15167I/PSTMaster clear (reset) input or Programming Voltage (VPP)
RA0/INT566048ISTRA0 can also be selected as an external interrupt
RA1/T0CKI414433ISTRA1 can also be selected as an external interrupt
RA2/SS
RA3/SDI/SDA434635I/OSTRA3 can also be used as the data input for the SPI or
RA4/RX1/DT1404332I/O †STRA4 can also be selected as the USART1 (SCI) Asyn-
RA5/TX1/CK1394231I/O †STRA5 can also be selected as the USART1 (SCI) Asyn-
RB0/CAP1555947I/OSTRB0 can also be the Capture1 input pin.
RB1/CAP2545846I/OSTRB1 can also be the Capture2 input pin.
RB2/PWM1505442I/OSTRB2 can also be the PWM1 output pin.
RB3/PWM2535745I/OSTRB3 can also be the PWM2 output pin.
RB4/TCLK12525644I/OSTRB4 can also be the external clock input to Timer1 and
RB5/TCLK3515543I/OSTRB5 can also be the external clock input to Timer3.
RB6/SCK444736I/OSTRB6 can also be used as the master/slave clock for the
RB7/SDO454837I/OSTRB7 can also be used as the data output for the SPI.
Legend: I = Input only; O = Output only; I/O = Input/Output; P = Power; — = Not Used; TTL = TTL input;
† The output is only available by the Peripheral operation.
/SCL424534I/OSTRA2 can also be used as the slave select input for the
ST = Schmitt Trigger input.
PLCC
No.
No.
TQFP
No.
I/O/P
Type
Buffer
Type
Description
External clock input in external clock mode.
oscillator mode. In RC oscillator or external clock modes
OSC2 pin outputs CLKOUT which has one fourth the frequency (F
rate.
input. This is the active low reset input to the chip.
PORTA is a bi-directional I/O Port except for RA0 and RA1
which are input only.
PORTB is a bi-directional I/O Port with software configurable weak pull-ups.
OSC/4) of OSC1 and denotes the instruction cycle
input. Interrupt can be configured to be on positive or
negative edge.
input, and the interrupt can be configured to be on positive or negative edge. RA1 can also be selected to be
the clock input to the Timer0 timer/counter.
SPI or the clock input for the I
High voltage, high current, open drain input/output port
pin.
the data for the I
High voltage, high current, open drain input/output port
pin.
chronous Receive or USART1 (SCI) Synchronous
Data.
chronous Transmit or USART1 (SCI) Synchronous
Clock.
RC0/AD02358I/OTTLThis is also the least significant byte (LSB) of the 16-bit
RC1/AD1636755I/OTTL
RC2/AD2626654I/OTTL
RC3/AD3616553I/OTTL
RC4/AD4606452I/OTTL
RC5/AD5586351I/OTTL
RC6/AD6586250I/OTTL
RC7/AD7576149I/OTTL
RD0/AD810112I/OTTLThis is also the most significant byte (MSB) of the
RD1/AD99101I/OTTL
RD2/AD108964I/OTTL
RD3/AD117863I/OTTL
RD4/AD126762I/OTTL
RD5/AD135661I/OTTL
RD6/AD144560I/OTTL
RD7/AD153459I/OTTL
RE0/ALE11123I/OTTLIn microprocessor mode or extended microcontroller
RE1/OE
RE2/WR
RE3/CAP414156I/OSTRE3 can also be the Capture4 input pin.
RF0/AN4262818I/OSTRF0 can also be analog input 4.
RF1/AN5252717I/OSTRF1 can also be analog input 5.
RF2/AN6242616I/OSTRF2 can also be analog input 6.
RF3/AN7232515I/OSTRF3 can also be analog input 7.
RF4/AN8222414I/OSTRF4 can also be analog input 8.
RF5/AN9212313I/OSTRF5 can also be analog input 9.
RF6/AN10202212I/OSTRF6 can also be analog input 10.
RF7/AN11192111I/OSTRF7 can slso be analog input 11.
Legend: I = Input only; O = Output only; I/O = Input/Output; P = Power; — = Not Used; TTL = TTL input;
ST = Schmitt Trigger input.
† The output is only available by the Peripheral operation.
PLCC
No.
12134I/OTTLIn microprocessor or extended microcontroller mode,
13145I/OTTLIn microprocessor or extended microcontroller mode,
No.
TQFP
No.
I/O/P
Type
Buffer
Type
Description
PORTC is a bi-directional I/O Port.
wide system bus in microprocessor mode or extended
microcontroller mode. In multiplexed system bus configuration, these pins are address output as well as
data input or output.
PORTD is a bi-directional I/O Port.
16-bit system bus in microprocessor mode or extended
microprocessor mode or extended microcontroller
mode. In multiplexed system bus configuration these
pins are address output as well as data input or output.
PORTE is a bi-directional I/O Port.
mode, RE0 is the Address Latch Enable (ALE) output.
Address should be latched on the falling edge of ALE
output.
RE1 is the Output Enable (OE
low).
RE2 is the Write Enable (WR
low).
PORTF is a bi-directional I/O Port.
) control output (active
) control output (active
DS30264A-page 12Preliminary 1997 Microchip Technology Inc.
PIC17C75X
TABLE 3-1:PINOUT DESCRIPTIONS
DIP
Name
PLCC
No.
RG0/AN3323424I/OSTRG0 can also be analog input 3.
RG1/AN2313323I/OSTRG1 can also be analog input 2.
RG2/AN1/V
RG3/AN0/V
REF- 303222I/OSTRG2 can also be analog input 1, or
REF+ 293121I/OSTRG3 can also be analog input 0, or
RG4/CAP3353827I/OSTRG4 can also be the Capture3 input pin.
RG5/PWM3363928I/OSTRG5 can also be the PWM3 output pin.
RG6/RX2/DT2384130I/OSTRG6 can also be selected as the USART2 (SCI) Asyn-
RG7/TX2/CK2374029I/OSTRG7 can also be selected as the USART2 (SCI) Asyn-
TEST16178ISTTest mode selection control input. Always tie to V
V
SS17,
36,53,
33,
49,
64
V
DD1,
2, 20,
18,
34,
46
AV
SS283020PGround reference for A/D converter.
AV
DD272919PPositive supply for A/D converter.
NC-1, 18,
35, 52
Legend: I = Input only; O = Output only; I/O = Input/Output; P = Power; — = Not Used; TTL = TTL input;
ST = Schmitt Trigger input.
† The output is only available by the Peripheral operation.
No.
19,
68
37,
49,
TQFP
No.
I/O/P
Type
Buffer
Type
Description
PORTG is a bi-directional I/O Port.
the ground reference voltage
the positive reference voltage
chronous Receive or USART2 (SCI) Synchronous
Data.
chronous Transmit or USART2 (SCI) Synchronous
Clock.
DS30264A-page 14Preliminary 1997 Microchip Technology Inc.
PIC17C75X
4.0ON-CHIP OSCILLATOR
CIRCUIT
The internal oscillator circuit is used to generate the
device clock. Four device clock periods generate an
internal instruction clock (T
that the oscillator can operate in. These are selected b y
the device configuration bits during device programming. These modes are:
• LFLow Frequency (F
• XTStandard Crystal/Resonator Frequency
(2 MHz <= F
There are two timers that offer necessary delays on
power-up. One is the Oscillator Start-up Timer (OST),
intended to keep the chip in RESET until the crystal
oscillator is stable. The other is the Power-up Timer
(PWRT), which provides a fixed delay of 96 ms (nominal) on power-up only, designed to keep the part in
RESET while the power supply stabilizes. With these
two timers on-chip, most applications need no external
reset circuitry.
SLEEP mode is designed to offer a very low current
power-down mode. The user can wake from SLEEP
through external reset, Watchdog Timer Reset or
through an interrupt.
Several oscillator options are made available to allow
the part to fit the application. The RC oscillator option
saves system cost while the LF crystal option saves
power. Configuration bits are used to select various
options.
4.1Oscillator Configurations
4.1.1 OSCILLATOR TYPES
CY). There are four modes
OSC <= 2 MHz)
OSC <= 33 MHz)
4.1.2CRYSTAL OSCILLATOR / CERAMIC
RESONATORS
In XT or LF modes, a crystal or ceramic resonator is
connected to the OSC1/CLKIN and OSC2/CLKOUT
pins to establish oscillation (Figure 4-2). The
PIC17CXXX oscillator design requires the use of a parallel cut crystal. Use of a series cut crystal may give a
frequency out of the crystal manufacturers specifications.
For frequencies above 20 MHz, it is common for the
crystal to be an overtone mode crystal. Use of overtone
mode crystals require a tank circuit to attenuate the
gain at the fundamental frequency. Figure 4-3 shows
an example circuit.
4.1.2.1OSCILLATOR / RESONATOR START-UP
As the device voltage increases from Vss , the oscillator
will start its oscillations. The time required for the oscillator to start oscillating depends on many factors.
These include:
• Crystal / resonator frequency
• Capacitor values used (C1 and C2)
• Device V
• System temperature
• Series resistor value (and type) if used
• Oscillator mode selection of device (which selects
the gain of the internal oscillator inverter)
Figure 4-1 shows an example of a typical oscillator /
resonator start-up. The peak-to-peak voltage of the
oscillator waveform can be quite low (less than 50% of
device V
(refer to parameter number D033 and D043 in the electrical specification section).
DD rise time.
DD) when the waveform is centered at VDD/2
FIGURE 4-1:OSCILLATOR / RESONATOR
START-UP
CHARACTERISTICS
The PIC17CXXX can be operated in four different oscillator modes. The user can program two configuration
bits (FOSC1:FOSC0) to select one of these four
modes:
• LFLow Power Crystal
• XTCrystal/Resonator
• ECExternal Clock Input
• RCResistor/Capacitor
The main difference between the LF and XT modes is
the gain of the internal inverter of the oscillator circuit
which allows the different frequency ranges.
For more details on the device configuration bits, see
Section 17.0.
See Table 4-1 and Table 4-2 for recommended values of
C1 and C2.
RF
PIC17CXXX
SLEEP
To internal
logic
Note 1: A series resistor (Rs) may be required for
AT strip cut crystals.
TABLE 4-1:CAPACITOR SELECTION
FOR CERAMIC
RESONATORS
Oscillator
Type
Resonator
Frequency
LF455 kHz
2.0 MHz
XT4.0 MHz
8.0 MHz
16.0 MHz
Higher capacitance increases the stability of the oscillator
but also increases the start-up time. These values are for
design guidance only. Since each resonator has its own
characteristics, the user should consult the resonator manufacturer for appropriate values of external components.
Note 1: These values include all board capaci-
tances on this pin. Actual capacitor value
depends on board capacitance
Resonators Used:
455 kHzPanasonic EFO-A455K04B± 0.3%
2.0 MHzMurata Erie CSA2.00MG± 0.5%
4.0 MHzMurata Erie CSA4.00MG± 0.5%
8.0 MHzMurata Erie CSA8.00MT± 0.5%
16.0 MHz Murata Erie CSA16.00MX± 0.5%
Resonators used did not have built-in capacitors.
Capacitor Range
C1 = C2
(1)
15 - 68 pF
10 - 33 pF
22 - 68 pF
33 - 100 pF
33 - 100 pF
FIGURE 4-3:CRYSTAL OPERATION,
OVERTONE CRYSTALS (XT
OSC CONFIGURATION)
C1
C2
0.1 µF
To filter the fundamental frequency
1
LC2
Where f = tank circuit resonant frequency. This should be
midway between the fundamental and the 3rd overtone
frequencies of the crystal.
OSC1
SLEEP
OSC2
PIC17CXXX
2
=
(2πf)
TABLE 4-2:CAPACITOR SELECTION FOR
CRYSTAL OSCILLATOR
Osc
Type
LF32 kHz
Freq
(1)
1 MHz
2 MHz
XT2 MHz
4 MHz
(2)
8 MHz
16 MHz
25 MHz
32 MHz
Higher capacitance increases the stability of the oscillator
but also increases the start-up time and the oscillator current. These values are for design guidance only. RS may be
required in XT mode to avoid overdriving the crystals with
low drive level specification. Since each crystal has its own
characteristics, the user should consult the crystal manufacturer for appropriate values for external components.
(3)
Note 1: For VDD > 4.5V, C1 = C2 ≈ 30 pF is recom-
mended.
2: R
S of 330Ω is required for a capacitor com-
bination of 15/15 pF.
3: These values include all board capaci-
tances on this pin. Actual capacitor value
depends on board capacitance
DS30264A-page 16Preliminary 1997 Microchip Technology Inc.
PIC17C75X
4.1.3EXTERNAL CLOCK OSCILLATOR
In the EC oscillator mode, the OSC1 input can be
driven by CMOS drivers. In this mode, the
OSC1/CLKIN pin is hi-impedance and the OSC2/CLKOUT pin is the CLKOUT output (4 T
OSC).
FIGURE 4-4:EXTERNAL CLOCK INPUT
OPERATION (EC OSC
CONFIGURATION)
Clock from
ext. system
CLKOUT
(F
OSC/4)
OSC1
PIC17CXXX
OSC2
4.1.4EXTERNAL CRYSTAL OSCILLATOR
CIRCUIT
Either a prepackaged oscillator can be used or a simple
oscillator circuit with TTL gates can be built. Prepackaged oscillators provide a wide operating range and
better stability. A well-designed crystal oscillator will
provide good performance with TTL gates. Two types
of crystal oscillator circuits can be used: one with series
resonance, or one with parallel resonance.
Figure 4-5 shows implementation of a parallel resonant
oscillator circuit. The circuit is designed to use the fundamental frequency of the crystal. The 74AS04 inverter
performs the 180-degree phase shift that a parallel
oscillator requires. The 4.7 kΩ resistor provides the
negative feedback for stability. The 10 kΩ potentiometer biases the 74AS04 in the linear region. This could
be used for external oscillator designs.
FIGURE 4-5:EXTERNAL PARALLEL
RESONANT CRYSTAL
OSCILLATOR CIRCUIT
+5V
10k
4.7k
74AS04
74AS04
To Other
Devices
PIC17CXXX
OSC1
10k
XTAL
10k
20 pF
20 pF
Figure 4-6 shows a series resonant oscillator circuit.
This circuit is also designed to use the fundamental frequency of the crystal. The inverter performs a
180-degree phase shift in a series resonant oscillator
circuit. The 330 kΩ resistors provide the negative feedback to bias the inverters in their linear region.
4.1.5RC OSCILLATOR
For timing insensitive applications, the RC device
option offers additional cost savings. RC oscillator frequency is a function of the supply voltage, the resistor
(Rext) and capacitor (Cext) values, and the operating
temperature. In addition to this, oscillator frequency will
vary from unit to unit due to normal process parameter
variation. Furthermore, the difference in lead frame
capacitance between package types will also affect
oscillation frequency, especially for low Cext values.
The user also needs to take into account variation due
to tolerance of external R and C components used.
Figure 4-7 shows how the R/C combination is connected to the PIC17CXXX. For Rext values below
2.2 kΩ, the oscillator operation may become unstable,
or stop completely. For very high Rext values (e.g.
1 MΩ), the oscillator becomes sensitive to noise,
humidity and leakage. Thus, we recommend to keep
Rext between 3 kΩ and 100 kΩ.
Although the oscillator will operate with no external
capacitor (Cext = 0 pF), we recommend using values
above 20 pF for noise and stability reasons. With little
or no external capacitance, oscillation frequency can
vary dramatically due to changes in external capacitances, such as PCB trace capacitance or package
lead frame capacitance.
See Section 21.0 for RC frequency variation from part
to part due to normal process variation. The variation
is larger for larger R (since leakage current variation
will affect RC frequency more for large R) and for
smaller C (since variation of input capacitance will
affect RC frequency more).
See Section 21.0 for variation of oscillator frequency
due to V
DD for given Rext/Cext values as well as fre-
quency variation due to operating temperature for
given R, C, and V
DD values.
The oscillator frequency, divided by 4, is available on
the OSC2/CLKOUT pin, and can be used for test purposes or to synchronize other logic (see Figure 4-8 for
waveform).
4.1.5.1RC START-UP
As the device voltage increases, the RC will immedi-
ately start its oscillations once the pin voltage levels
meet the input threshold specifications (parameter
number D032 and D042 in the electrical specification
section). The time required for the RC to start oscillating depends on many factors. These include:
• Resistor value used
• Capacitor value used
• Device V
DD rise time
• System temperature
FIGURE 4-7:RC OSCILLATOR MODE
VDD
Rext
Cext
SS
V
DS30264A-page 18Preliminary 1997 Microchip Technology Inc.
Fosc/4
PIC17CXXX
OSC1
OSC2/CLKOUT
Internal
clock
PIC17C75X
4.2Clocking Scheme/Instruction Cycle
The clock input (from OSC1) is internally divided by
four to generate four non-overlapping quadrature
clocks, namely Q1, Q2, Q3, and Q4. Internally, the program counter (PC) is incremented every Q1, and the
instruction is fetched from the program memory and
latched into the instruction register in Q4. The instruction is decoded and executed during the following Q1
through Q4. The clocks and instruction execution flow
are shown in Figure 4-8.
FIGURE 4-8:CLOCK/INSTRUCTION CYCLE
OSC1
Q1
Q2
Q3
Q4
PC
OSC2/CLKOUT
(RC mode)
Q2Q3Q4
Q1
PCPC+1PC+2
Fetch INST (PC)
Execute INST (PC-1)Fetch INST (PC+1)
Q2Q3Q4
Q1
Execute INST (PC)Fetch INST (PC+2)
4.3Instruction Flow/Pipelining
An “Instruction Cycle” consists of four Q cycles (Q1,
Q2, Q3, and Q4). The instruction fetch and execute are
pipelined such that fetch takes one instruction cycle
while decode and execute takes another instruction
cycle. However, due to the pipelining, each instruction
effectively executes in one cycle. If an instruction
causes the program counter to change (e.g. GOTO)
then two cycles are required to complete the instruction
(Example 4-1).
A fetch cycle begins with the program counter incrementing in Q1.
In the execution cycle, the f etched instruction is latched
into the “Instruction Register (IR)” in cycle Q1. This
instruction is then decoded and executed during the
Q2, Q3, and Q4 cycles. Data memory is read during Q2
(operand read) and written during Q4 (destination
write).
Q2Q3Q4
Q1
Internal
phase
clock
Execute INST (PC+1)
EXAMPLE 4-1:INSTRUCTION PIPELINE FLOW
Tcy0Tcy1Tcy2Tcy3Tcy4Tcy5
1. MOVLW 55h
2. MOVWF PORTB
3. CALL SUB_1
4. BSF PORTA, BIT3 (Forced NOP)
5. Instruction @ address SUB_1
All instructions are single cycle, except for any program branches. These take two cycles since the fetch
instruction is “flushed” from the pipeline while the new instruction is being fetched and then executed.
DS30264A-page 20Preliminary 1997 Microchip Technology Inc.
PIC17C75X
5.0RESET
The PIC17CXXX differentiates between various kinds
of reset:
• Power-on Reset (POR)
• MCLR
reset during normal operation
Note:While the device is in a reset state, the
internal phase clock is held in the Q1 state.
Any processor mode that allows external
execution will force the RE0/ALE pin as a
low output and the RE1/OE
pins as high outputs.
• Brown-out Reset
• WDT Reset (normal operation)
Some registers are not affected in any reset condition,
A simplified block diagram of the on-chip reset circuit is
shown in Figure 5-1.
their status is unknown on POR and unchanged in any
other reset. Most other registers are forced to a “reset
state” on Power-on Reset (POR), Brown-out Reset
(BOR), on MCLR
or WDT Reset and on MCLR reset
during SLEEP. A WDT Reset during SLEEP, is viewed
as the resumption of normal operation. The T
O and PD
bits are set or cleared differently in different reset situations as indicated in Table 5-3. These bits are used in
software to determine the nature of the reset. See
Table 5-4 for a full description of reset states of all registers.
FIGURE 5-1:SIMPLIFIED BLOCK DIAGRAM OF ON-CHIP RESET CIRCUIT
and RE2/WR
External
Reset
MCLR
BOR
Module
WDT
Module
DD rise
V
detect
VDD
OSC1
† This RC oscillator is shared with the WDT
OST/PWRT
On-chip
RC OSC†
when not in a power-up sequence.
Brown-out
Reset
WDT
Time_Out
Reset
Power_On_Reset
OST
10-bit Ripple counter
PWRT
10-bit Ripple counter
Enable PWRT
Enable OST
S
R
Power_Up
(Enable the PWRT timer
only during Power_Up)
(Power_Up) + (Wake_Up) (XT + LF)
(Enable the OST if it is Power_Up or Wake_Up
The Power-on Reset circuit holds the device in reset
until V
DD is above the trip point (in the range of 1.4V -
2.3V). The devices produce an internal reset for both
rising and falling V
just tie the MCLR/
to V
DD. This will eliminate external RC components
DD. To take advantage of the POR,
VPP pin directly (or through a resistor)
usually needed to create Power-on Reset. A minimum
rise time for V
DD is required. See Electrical Specifica-
tions for details.
Figure 5-2 and Figure 5-3 show two possible POR cir-
cuits.
FIGURE 5-2:USING ON-CHIP POR
VDD
VDD
MCLR
PIC17CXXX
FIGURE 5-3:EXTERNAL POWER-ON
RESET CIRCUIT (FOR SLOW
DD POWER-UP)
V
V
VDD
DD
D
R
R1
MCLR
C
PIC17CXXX
5.1.2POWER-UP TIMER (PWRT)
The Power-up Timer provides a fixed 96 ms time-out
(nominal) on power-up. This occurs from the rising
edge of the POR signal and after the first rising edge of
MCLR
(detected high). The Power-up Timer operates
on an internal RC oscillator. The chip is kept in RESET
as long as the PWRT is active. In most cases the
PWRT delay allows V
DD to rise to an acceptable level.
The power-up time delay will v ary from chip to chip and
DD and temperature. See DC parameters for
with V
details.
5.1.3OSCILLATOR START-UP TIMER (OST)
The Oscillator Start-up Timer (OST) provides a 1024
oscillator cycle (1024T
OSC) delay after MCLR is
detected high or a wake-up from SLEEP event occurs.
The OST time-out is invoked only for XT and LF oscil-
lator modes on a Power-on Reset or a Wake-up from
SLEEP.
The OST counts the oscillator pulses on the
OSC1/CLKIN pin. The counter only starts incrementing
after the amplitude of the signal reaches the oscillator
input thresholds. This delay allows the crystal oscillator
or resonator to stabilize before the device exits reset.
The length of the time-out is a function of the crystal/resonator frequency.
Figure 5-4 shows the operation of the OST circuit. In
this figure the oscillator is of such a low frequency that
OST time out occurs after the power-up timer time-out.
FIGURE 5-4:OSCILLATOR START-UP
TIME
POR or BOR Trip Point
VDD
MCLR
OSC2
OSC1
Note 1: An external Power-on Reset circuit is
required only if V
DD power-up time is too
OST TIME_OUT
T
T
OST
slow. The diode D helps discharge the
capacitor quickly when V
down.
2: R < 40 kΩ is recommended to ensure
that the voltage drop across R does not
exceed 0.2V (max. leakage current spec.
on the MCLR/
VPP pin is 5 µA). A larger
voltage drop will degrade V
MCLR/
VPP pin.
3: R1 = 100Ω to 1 kΩ will limit any current
flowing into MCLR
tor C in the event of MCLR/
breakdown due to Electrostatic Discharge (ESD) or Electrical Overstress
DD powers
IH level on the
from external capaci-
VPP pin
PWRT TIME_OUT
TPWRT
INTERNAL RESET
This figure shows in greater detail the timings involved
with the oscillator start-up timer. In this example the low
frequency crystal start-up time is larger than power-up
PWRT).
time (T
Tosc1 = time for the crystal oscillator to react to an oscil-
lation level detectable by the Oscillator Start-up Timer
(ost).
TOST = 1024TOSC.
(EOS).
DS30264A-page 22Preliminary 1997 Microchip Technology Inc.
PIC17C75X
5.1.4TIME-OUT SEQUENCE
If the device voltage is not within electrical specification
at the end of a time-out, the MCLR/
On power-up the time-out sequence is as follows: First
the internal POR signal goes high when the POR trip
point is reached. If MCLR
is high, then both the OST
and PWRT timers start. In general the PWRT time-out
is longer, except with low frequency crystals/resonators. The total time-out also varies based on oscillator
configuration. Table 5-1 shows the times that are associated with the oscillator configuration. Figure 5-5 and
Figure 5-6 display these time-out sequences.
held low until the voltage is within the device specification. The use of an external RC delay is sufficient for
many of these applications.
The time-out sequence begins from the first rising edge
of MCLR
Table 5-3 shows the reset conditions for some special
registers, while Table 5-4 sho ws the initialization conditions for all the registers.
TABLE 5-1:TIME-OUT IN VARIOUS SITUATIONS
Oscillator
Configuration
XT, LFGreater of: 96 ms or 1024TOSC1024TOSC——
EC, RCGreater of: 96 ms or 1024T
Power-upWake up from
OSC———
TABLE 5-2:STATUS BITS AND THEIR SIGNIFICANCE
POR
0011
1110
1101
1100
1111
10xx
000x
00x0
xx11
Note 1: When BOR is enabled, else the BOR status bit is unknown
BOR
(1)
TOPD
Power-on Reset
MCLR Reset during SLEEP or interrupt w ake-up from SLEEP
WDT Reset during normal operation
WDT W ake-up during SLEEP
MCLR Reset during normal operation
Brown-out Reset
Illegal, TO is set on POR
Illegal, PD is set on POR
CLRWDT instruction executed
VPP pin must be
.
MCLR ResetBOR
SLEEP
Event
TABLE 5-3:RESET CONDITION FOR THE PROGRAM COUNTER AND THE CPUSTA REGISTER
MCLR
WDT Reset during normal operation0000h--11 0111No
WDT Wake-up during SLEEP
(3)
0000h--11 0011
Interrupt wake-up from SLEEP GLINTD is setPC + 1--11 1011
GLINTD is clear
PC + 1
(1)
--10 1011
Legend: u = unchanged, x = unknown, - = unimplemented read as '0'.
Note 1: On wake-up, this instruction is executed. The instruction at the appropriate interrupt vector is fetched and
then executed.
2: The OST is only active when the Oscillator is configured for XT or LF modes.
3: The Program Counter = 0, that is, the device branches to the reset vector. This is different from the
Legend: u = unchanged, x = unknown, - = unimplemented read as '0', q = value depends on condition.
Note 1: One or more bits in INTSTA, PIR1, PIR2 will be affected (to cause wake-up).
2: When the wake-up is due to an interrupt and the GLINTD bit is cleared, the PC is loaded with the interrupt
vector.
3: See Table 5-3 for reset value of specific condition.
4: If Brown-out is enabled, else the BOR
Legend: u = unchanged, x = unknown, - = unimplemented read as '0', q = value depends on condition.
Note 1: One or more bits in INTSTA, PIR1, PIR2 will be affected (to cause wake-up).
2: When the wake-up is due to an interrupt and the GLINTD bit is cleared, the PC is loaded with the interrupt
vector.
3: See Table 5-3 for reset value of specific condition.
4: If Brown-out is enabled, else the BOR
12h---- -------- -------- ----
bit is unknown.
uuu- uuuu
(1)
DS30264A-page 26Preliminary 1997 Microchip Technology Inc.
PIC17C75X
TABLE 5-4:INITIALIZATION CONDITIONS FOR SPECIAL FUNCTION REGISTERS (Cont.’d)
Legend: u = unchanged, x = unknown, - = unimplemented read as '0', q = value depends on condition.
Note 1: One or more bits in INTSTA, PIR1, PIR2 will be affected (to cause wake-up).
2: When the wake-up is due to an interrupt and the GLINTD bit is cleared, the PC is loaded with the interrupt
vector.
3: See Table 5-3 for reset value of specific condition.
4: If Brown-out is enabled, else the BOR
5.1.5BROWN-OUT RESET (BOR)
PIC17C75X devices have an on-chip Brown-out Reset
circuitry. This circuitry places the device into a reset
when the device voltage f alls below a trip point (BV
DD).
This ensures that the device does not continue program ex ecution outside the valid oper ation range of the
device. Brown-out resets are typically used in AC line
applications or large battery applications where large
loads may be switched in (such as automotive).
Note:Before using the on-chip brown-out for a
voltage supervisory function, please
review the electrical specifications to
ensure that they meet your requirements.
A configuration bit, BODEN, can disable (if clear/programmed) or enable (if set) the Brown-out Reset circuitry. If V
DD falls below BVDD (Typically 4.0V,
parameter D005 in electrical specification section), for
greater than parameter D035, the brown-out situation
will reset the chip. A reset is not guaranteed to occur if
V
DD falls below BVDD for less than parameter D035.
The chip will remain in Brown-out Reset until V
above BV
DD. The Power-up Timer will now be invoked
DD rises
and will keep the chip in reset an additional 96 ms. If
V
DD drops below BVDD while the Power-up Timer is
running, the chip will go back into a Brown-out Reset
and the Power-up Timer will be initialized. Once V
DD
rises above BVDD, the Power-up Timer will execute a
96 ms time delay. Figure 5-10 shows typical Brown-out
situations.
In some applications the Brown-out reset trip point of
the device may not be at the desired level. Figure 5-8
and Figure 5-9 are two examples of external circuitry
that may be implemented. Each needs to be evaluated
to determine if they match the requirements of the
application.
FIGURE 5-8:EXTERNAL BROWN-OUT
PROTECTION CIRCUIT 1
VDD
DD
V
33k
10k
40 kΩ
This circuit will activate reset when VDD goes below
(Vz + 0.7V) where Vz = Zener voltage.
MCLR
PIC17CXXX
FIGURE 5-9:EXTERNAL BROWN-OUT
PROTECTION CIRCUIT 2
V
DD
VDD
R1
Q1
MCLR
R2
This brown-out circuit is less expensive, albeit less
accurate. Transistor Q1 turns off when VDD is below a
certain level such that:
VDD •
40 kΩ
R1 + R2
R1
PIC17CXXX
= 0.7V
FIGURE 5-10: BROWN-OUT SITUATIONS
V
DD
Internal
Reset
V
DD
Internal
Reset
V
DD
Internal
Reset
DS30264A-page 28Preliminary 1997 Microchip Technology Inc.
96 ms
< 96 ms
96 ms
96 ms
BV
DD Max.
DD Min.
BV
BVDD Max.
DD Min.
BV
BVDD Max.
DD Min.
BV
PIC17C75X
6.0INTERRUPTS
The PIC17C75X 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:
• CPUST A
• INTST A
• 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 Memory Organization section.
FIGURE 6-1:INTERRUPT LOGIC
2
C bus collision interrupt
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 interrupts), 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 interrupt 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).
RBIF
RBIE
TMR3IF
TMR3IE
TMR2IF
CA2IF
CA2IE
TX1IF
TX1IE
BCLIF
BCLIE
CA3IF
CA3IE
RC2IF
RC2IE
TMR2IE
RC1IF
RC1IE
ADIF
ADIE
INTSTA
T0IF
T0IE
INTF
INTE
T0CKIF
T0CKIE
PEIF
PEIE
Wake-up (If in SLEEP mode)
or terminate long write
The Interrupt Status/Control register (INTSTA) records
the individual interrupt requests in flag bits, and contains the individual interrupt enable bits (not for the
peripherals).
The PEIF bit is a read only , bit wise OR of all the peripheral flag bits in the PIR registers (Figure 6-5 and
Figure 6-6).
Note:T0IF, INTF, T0CKIF, and PEIF get set by
their specified condition, even if the corresponding interrupt enable bit is clear (interrupt disabled) or the GLINTD bit is set (all
interrupts disabled).
Care should be taken when clearing any of the INTSTA
register enable bits when interrupts are enabled
(GLINTD is clear). If any of the INTSTA flag bits (T0IF,
INTF, T0CKIF, or PEIF) are set in the same instruction
cycle as the corresponding interrupt enable bit is
cleared, the device will vector to the reset address
(0x00).
When disabling any of the INTSTA enable bits, the
GLINTD bit should be set (disabled).
bit7bit0
bit 7:PEIF: Peripheral Interrupt Flag bit
This bit is the OR of all peripheral interrupt flag bits AND’ed with their corresponding enable bits.
1 =A peripheral interrupt is pending
0 =No peripheral interrupt is pending
bit 6:T0CKIF: External Interrupt on T0CKI Pin Flag bit
This bit is cleared by hardware, when the interrupt logic forces program execution to vector (18h).
1 =The software specified edge occurred on the RA1/T0CKI pin
0 =The software specified edge did not occur on the RA1/T0CKI pin
bit 5:T0IF: TMR0 Overflow Interrupt Flag bit
This bit is cleared by hardware, when the interrupt logic forces program execution to vector (10h).
1 =TMR0 overflowed
0 =TMR0 did not overflow
bit 4:INTF: External Interrupt on INT Pin Flag bit
This bit is cleared by hardware, when the interrupt logic forces program execution to vector (08h).
1 =The software specified edge occurred on the RA0/INT pin
0 =The software specified edge did not occur on the RA0/INT pin
bit 3:PEIE: Peripheral Interrupt Enable bit
This bit enables all peripheral interrupts that have their corresponding enable bits set.
1 =Enable peripheral interrupts
0 =Disable peripheral interrupts
bit 2:T0CKIE: External Interrupt on T0CKI Pin Enable bit
1 =Enable software specified edge interrupt on the RA1/T0CKI pin
0 =Disable interrupt on the RA1/T0CKI pin