SW006010 Microchip Technology, SW006010 Datasheet - Page 115

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
 2002 Microchip Technology Inc.
11.4.2.12 USART1 TRANSMIT INTERRUPT
There are two ways to disable the USART1 Transmit Interrupt:
Library Call
To disable the USART1 Transmit Interrupt through a library call, you must include the
usart16.h
Modifying Register Bits
PIC17C7XX DEVICES
To disable the USART1 transmit interrupt for PIC17C7XX devices, you must clear
either of the following enable bits:
• The Peripheral Interrupt Enable Register1’s (PIE1’s) USART1 Transmit Interrupt
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
PIC17C4X DEVICES
To disable the USART1 transmit interrupt for PIC17C4X devices, you must clear either
of the following enable bits:
• The Peripheral Interrupt Enable Register’s (PIE) USART1 Transmit Interrupt
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
11.4.2.13 USART1 RECEIVE INTERRUPT
There are two ways to disable the USART1 Receive Interrupt:
Library Call
To disable the USART1 Receive Interrupt through a library call, you must include the
usart16.h
#include <usart16.h>
CloseUSART1();
Enable (TX1IE) bit – [PIE1<1>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
Enable (TX1IE) bit – [PIE<1>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
#include <usart16.h>
CloseUSART1();
PIE1bits.TX1IE = 0;
INTSTAbits.PEIE = 0;
PIEbits.TX1IE = 0;
INTSTAbits.PEIE = 0;
header file and call the
header file and call the
Enabling/Disabling Interrupts
//Disable all
//peripheral interrupts
//Disable all
//peripheral interrupts
CloseUSART1
CloseUSART1
function.
function.
apRNOVM^-page 109
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010