SW006010 Microchip Technology, SW006010 Datasheet - Page 116

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVM^-page 110
C17 C Compiler User’s Guide
Modifying Register Bits
PIC17C7XX DEVICES
To disable the USART1 receive interrupt for PIC17C7XX devices, you must clear
either of the following enable bits:
• The Peripheral Interrupt Enable Register1’s (PIE1’s) USART1 Receive Interrupt
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
PIC17C4X DEVICES
To disable the USART1 receive interrupt for PIC17C4X devices, you must clear either
of the following enable bits:
• The Peripheral Interrupt Enable Register’s (PIE) USART1 Receive Interrupt
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
11.4.2.14 USART2 TRANSMIT INTERRUPT
There are two ways to disable the USART2 Transmit Interrupt:
Library Call
To disable the USART2 Transmit Interrupt through a library call, you must include the
usart16.h
Modifying Register Bits
To disable the USART2 transmit interrupt, you must clear either of the following
enable bits:
• The Peripheral Interrupt Enable Register2’s (PIE2’s) USART2 Transmit Interrupt
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
Enable (RC1IE) bit – [PIE1<0>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
Enable (RC1IE) bit – [PIE<0>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
Note: PIC17C7XX devices only.
#include <usart16.h>
CloseUSART2();
Enable (TX2IE) bit – [PIE2<1>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
PIE1bits.RC1IE = 0;
INTSTAbits.PEIE = 0;
PIEbits.RC1IE = 0;
INTSTAbits.PEIE = 0;
PIE2bits.TX2IE = 0;
INTSTAbits.PEIE = 0;
header file and call the
//Disable all
//peripheral interrupts
//Disable all
//peripheral interrupts
//Disable all
//peripheral interrupts
CloseUSART2
function.
 2002 Microchip Technology Inc.

Related parts for SW006010