// mplab x IDE V1.7
/*********************************************************************
*
* UART Interrupt Example
*
*********************************************************************
* FileName: uart_interrupt.c
* Dependencies:
* Processor: PIC32
*
* Compiler: MPLAB XC32
* MPLAB IDE
* Company: Microchip Technology Inc.
*
* Software License Agreement
*
* The software supplied herewith by Microchip Technology Incorporated
* (the ?Company?) for its PIC32 Microcontroller is intended
* and supplied to you, the Company?s customer, for use solely and
* exclusively on Microchip PIC32 Microcontroller products.
* The software is owned by the Company and/or its supplier, and is
* protected under applicable copyright laws. All rights are reserved.
* Any use in violation of the foregoing restrictions may subject the
* user to criminal sanctions under applicable laws, as well as to
* civil liability for the breach of the terms and conditions of this
* license.
*
* THIS SOFTWARE IS PROVIDED IN AN ?AS IS? CONDITION. NO WARRANTIES,
* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
*
* $Id: uart_interrupt.c 9390 2008-06-16 23:43:04Z rajbhartin $
* $Name: x.x $
*
**********************************************************************/
/***********************************************************************************
UART Interrupt Example README
***********************************************************************************
* Objective: Become familiar with PIC32MX tool suite and understand
* basic UART Interrupt operations.
*
* Tools:
* 1. MPLAB IDE with PIC32MX support
* 2. C32 Compiler
* 3. Explorer 16 Rev 4 or 5 board.
* 4. RS-232 Cable
* 5. A Terminal program for Windows - HyperTerminal
*
*
***********************************************************************************
***********************************************************************************/
#include <plib.h> // Peripheral Library
//#include <p32xxxx.h>
// *****************************************************************************
// *****************************************************************************
// Section: Configuration bits
// SYSCLK = 80 MHz (8MHz Crystal/ FPLLIDIV * FPLLMUL / FPLLODIV)
// PBCLK = 40 MHz
// Primary Osc w/PLL (XT+,HS+,EC+PLL)
// WDT OFF
// Other options are don't care
// *****************************************************************************
// *****************************************************************************
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_1
|