;========================================================================== ; PIC33EV32GM002 Standard Assembly Include File ; ; (c) Copyright 2015 Microchip Technology, All rights reserved ; Part support version 1.25.A(30-Jun-2015) ; ; This software is developed by Microchip Technology Inc. and its ; subsidiaries ("Microchip"). ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are ; met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above ; copyright notice, this list of conditions and the following ; disclaimer in the documentation and/or other materials provided ; with the distribution. ; 3. Microchip's name may not be used to endorse or promote products ; derived from this software without specific prior written ; permission. ; ; THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR IMPLIED ; WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ; MERCHANTABILITY AND FITNESS FOR PURPOSE ARE DISCLAIMED. IN NO EVENT ; SHALL MICROCHIP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO ; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR PROFITS; ; OR BUSINESS INTERRUPTION) HOWSOEVER CAUSED AND ON ANY THEORY OF LIABILITY, ; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ; ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ; .NOLIST ;========================================================================== ; This header file defines configurations, registers, and other useful ; bits of information for the PIC33EV32GM002 microcontroller. These names ; are taken to match the data sheets as closely as possible. ; ; Note that the processor must be selected before this file is included. ; The processor may be selected the following ways: ; ; 1. Command line switch: ; C:\> pic30-as file.s -p33EV32GM002 ; 2. Placing a ".equ" directive before the ".include": ; .equ __33EV32GM002, 1 ; .include "p33EV32GM002.inc" ; 3. Setting the processor in the MPLAB IDE Project Dialog ;========================================================================== ;========================================================================== ; ; Verify Processor ; ;========================================================================== .IFNDEF __33EV32GM002 .ERROR "Include file does not match processor setting." .ENDIF ;========================================================================== ; ; Register Definitions ; ;========================================================================== ;----- Register Equates (Low Byte, High Byte) ----------------------------- .extern WREG0 .equiv WREG0L, _WREG0 .equiv WREG0H, _WREG0+1 .extern WREG1 .equiv WREG1L, _WREG1 .equiv WREG1H, _WREG1+1 .extern WREG2 .equiv WREG2L, _WREG2 .equiv WREG2H, _WREG2+1 .extern WREG3 .equiv WREG3L, _WREG3 .equiv WREG3H, _WREG3+1 .extern WREG4 .equiv WREG4L, _WREG4 .equiv WREG4H, _WREG4+1 .extern WREG5 .equiv WREG5L, _WREG5 .equiv WREG5H, _WREG5+1 .extern WREG6 .equiv WREG6L, _WREG6 .equiv WREG6H, _WREG6+1 .extern WREG7 .equiv WREG7L, _WREG7 .equiv WREG7H, _WREG7+1 .extern WREG8 .equiv WREG8L, _WREG8 .equiv WREG8H, _WREG8+1 .extern WREG9 .equiv WREG9L, _WREG9 .equiv WREG9H, _WREG9+1 .extern WREG10 .equiv WREG10L, _WREG10 .equiv WREG10H, _WREG10+1 .extern WREG11 .equiv WREG11L, _WREG11 .equiv WREG11H, _WREG11+1 .extern WREG12 .equiv WREG12L, _WREG12 .equiv WREG12H, _WREG12+1 .extern WREG13 .equiv WREG13L, _WREG13 .equiv WREG13H, _WREG13+1 .extern WREG14 .equiv WREG14L, _WREG14 .equiv WREG14H, _WREG14+1 .extern WREG15 .equiv WREG15L, _WREG15 .equiv WREG15H, _WREG15+1 .extern SPLIM .equiv SPLIML, _SPLIM .equiv SPLIMH, _SPLIM+1 .extern ACCAL .equiv ACCALL, _ACCAL .equiv ACCALH, _ACCAL+1 .extern ACCAH .equiv ACCAHL, _ACCAH .equiv ACCAHH, _ACCAH+1 .extern ACCAU .equiv ACCAUL, _ACCAU .equiv ACCAUH, _ACCAU+1 .extern ACCBL .equiv ACCBLL, _ACCBL .equiv ACCBLH, _ACCBL+1 .extern ACCBH .equiv ACCBHL, _ACCBH .equiv ACCBHH, _ACCBH+1 .extern ACCBU .equiv ACCBUL, _ACCBU .equiv ACCBUH, _ACCBU+1 .extern PCL .equiv PCLL, _PCL .equiv PCLH, _PCL+1 .extern PCH .equiv PCHL, _PCH .equiv PCHH, _PCH+1 .extern DSRPAG .equiv DSRPAGL, _DSRPAG .equiv DSRPAGH, _DSRPAG+1 .extern DSWPAG .equiv DSWPAGL, _DSWPAG .equiv DSWPAGH, _DSWPAG+1 .extern RCOUNT .equiv RCOUNTL, _RCOUNT .equiv RCOUNTH, _RCOUNT+1 .extern DCOUNT .equiv DCOUNTL, _DCOUNT .equiv DCOUNTH, _DCOUNT+1 .extern DOSTARTL .equiv DOSTARTLL, _DOSTARTL .equiv DOSTARTLH, _DOSTARTL+1 .extern DOSTARTH .equiv DOSTARTHL, _DOSTARTH .equiv DOSTARTHH, _DOSTARTH+1 .extern DOENDL .equiv DOENDLL, _DOENDL .equiv DOENDLH, _DOENDL+1 .extern DOENDH .equiv DOENDHL, _DOENDH .equiv DOENDHH, _DOENDH+1 .extern SR .equiv SRL, _SR .equiv SRH, _SR+1 .extern CORCON .equiv CORCONL, _CORCON .equiv CORCONH, _CORCON+1 .extern MODCON .equiv MODCONL, _MODCON .equiv MODCONH, _MODCON+1 .extern XMODSRT .equiv XMODSRTL, _XMODSRT .equiv XMODSRTH, _XMODSRT+1 .extern XMODEND .equiv XMODENDL, _XMODEND .equiv XMODENDH, _XMODEND+1 .extern YMODSRT .equiv YMODSRTL, _YMODSRT .equiv YMODSRTH, _YMODSRT+1 .extern YMODEND .equiv YMODENDL, _YMODEND .equiv YMODENDH, _YMODEND+1 .extern XBREV .equiv XBREVL, _XBREV .equiv XBREVH, _XBREV+1 .extern DISICNT .equiv DISICNTL, _DISICNT .equiv DISICNTH, _DISICNT+1 .extern TBLPAG .equiv TBLPAGL, _TBLPAG .equiv TBLPAGH, _TBLPAG+1 .extern MSTRPR .equiv MSTRPRL, _MSTRPR .equiv MSTRPRH, _MSTRPR+1 .extern CTXTSTAT .equiv CTXTSTATL, _CTXTSTAT .equiv CTXTSTATH, _CTXTSTAT+1 .extern TMR1 .equiv TMR1L, _TMR1 .equiv TMR1H, _TMR1+1 .extern PR1 .equiv PR1L, _PR1 .equiv PR1H, _PR1+1 .extern T1CON .equiv T1CONL, _T1CON .equiv T1CONH, _T1CON+1 .extern TMR2 .equiv TMR2L, _TMR2 .equiv TMR2H, _TMR2+1 .extern TMR3HLD .equiv TMR3HLDL, _TMR3HLD .equiv TMR3HLDH, _TMR3HLD+1 .extern TMR3 .equiv TMR3L, _TMR3 .equiv TMR3H, _TMR3+1 .extern PR2 .equiv PR2L, _PR2 .equiv PR2H, _PR2+1 .extern PR3 .equiv PR3L, _PR3 .equiv PR3H, _PR3+1 .extern T2CON .equiv T2CONL, _T2CON .equiv T2CONH, _T2CON+1 .extern T3CON .equiv T3CONL, _T3CON .equiv T3CONH, _T3CON+1 .extern TMR4 .equiv TMR4L, _TMR4 .equiv TMR4H, _TMR4+1 .extern TMR5HLD .equiv TMR5HLDL, _TMR5HLD .equiv TMR5HLDH, _TMR5HLD+1 .extern TMR5 .equiv TMR5L, _TMR5 .equiv TMR5H, _TMR5+1 .extern PR4 .equiv PR4L, _PR4 .equiv PR4H, _PR4+1 .extern PR5 .equiv PR5L, _PR5 .equiv PR5H, _PR5+1 .extern T4CON .equiv T4CONL, _T4CON .equiv T4CONH, _T4CON+1 .extern T5CON .equiv T5CONL, _T5CON .equiv T5CONH, _T5CON+1 .extern IC1CON1 .equiv IC1CON1L, _IC1CON1 .equiv IC1CON1H, _IC1CON1+1 .extern IC1CON2 .equiv IC1CON2L, _IC1CON2 .equiv IC1CON2H, _IC1CON2+1 .extern IC1BUF .equiv IC1BUFL, _IC1BUF .equiv IC1BUFH, _IC1BUF+1 .extern IC1TMR .equiv IC1TMRL, _IC1TMR .equiv IC1TMRH, _IC1TMR+1 .extern IC2CON1 .equiv IC2CON1L, _IC2CON1 .equiv IC2CON1H, _IC2CON1+1 .extern IC2CON2 .equiv IC2CON2L, _IC2CON2 .equiv IC2CON2H, _IC2CON2+1 .extern IC2BUF .equiv IC2BUFL, _IC2BUF .equiv IC2BUFH, _IC2BUF+1 .extern IC2TMR .equiv IC2TMRL, _IC2TMR .equiv IC2TMRH, _IC2TMR+1 .extern IC3CON1 .equiv IC3CON1L, _IC3CON1 .equiv IC3CON1H, _IC3CON1+1 .extern IC3CON2 .equiv IC3CON2L, _IC3CON2 .equiv IC3CON2H, _IC3CON2+1 .extern IC3BUF .equiv IC3BUFL, _IC3BUF .equiv IC3BUFH, _IC3BUF+1 .extern IC3TMR .equiv IC3TMRL, _IC3TMR .equiv IC3TMRH, _IC3TMR+1 .extern IC4CON1 .equiv IC4CON1L, _IC4CON1 .equiv IC4CON1H, _IC4CON1+1 .extern IC4CON2 .equiv IC4CON2L, _IC4CON2 .equiv IC4CON2H, _IC4CON2+1 .extern IC4BUF .equiv IC4BUFL, _IC4BUF .equiv IC4BUFH, _IC4BUF+1 .extern IC4TMR .equiv IC4TMRL, _IC4TMR .equiv IC4TMRH, _IC4TMR+1 .extern I2C1CON1 .equiv I2C1CON1L, _I2C1CON1 .equiv I2C1CON1H, _I2C1CON1+1 .extern I2C1CONL .equiv I2C1CONLL, _I2C1CONL .equiv I2C1CONLH, _I2C1CONL+1 .extern I2C1CON2 .equiv I2C1CON2L, _I2C1CON2 .equiv I2C1CON2H, _I2C1CON2+1 .extern I2C1CONH .equiv I2C1CONHL, _I2C1CONH .equiv I2C1CONHH, _I2C1CONH+1 .extern I2C1STAT .equiv I2C1STATL, _I2C1STAT .equiv I2C1STATH, _I2C1STAT+1 .extern I2C1ADD .equiv I2C1ADDL, _I2C1ADD .equiv I2C1ADDH, _I2C1ADD+1 .extern I2C1MSK .equiv I2C1MSKL, _I2C1MSK .equiv I2C1MSKH, _I2C1MSK+1 .extern I2C1BRG .equiv I2C1BRGL, _I2C1BRG .equiv I2C1BRGH, _I2C1BRG+1 .extern I2C1TRN .equiv I2C1TRNL, _I2C1TRN .equiv I2C1TRNH, _I2C1TRN+1 .extern I2C1RCV .equiv I2C1RCVL, _I2C1RCV .equiv I2C1RCVH, _I2C1RCV+1 .extern U1MODE .equiv U1MODEL, _U1MODE .equiv U1MODEH, _U1MODE+1 .extern U1STA .equiv U1STAL, _U1STA .equiv U1STAH, _U1STA+1 .extern U1TXREG .equiv U1TXREGL, _U1TXREG .equiv U1TXREGH, _U1TXREG+1 .extern U1RXREG .equiv U1RXREGL, _U1RXREG .equiv U1RXREGH, _U1RXREG+1 .extern U1BRG .equiv U1BRGL, _U1BRG .equiv U1BRGH, _U1BRG+1 .extern U2MODE .equiv U2MODEL, _U2MODE .equiv U2MODEH, _U2MODE+1 .extern U2STA .equiv U2STAL, _U2STA .equiv U2STAH, _U2STA+1 .extern U2TXREG .equiv U2TXREGL, _U2TXREG .equiv U2TXREGH, _U2TXREG+1 .extern U2RXREG .equiv U2RXREGL, _U2RXREG .equiv U2RXREGH, _U2RXREG+1 .extern U2BRG .equiv U2BRGL, _U2BRG .equiv U2BRGH, _U2BRG+1 .extern SPI1STAT .equiv SPI1STATL, _SPI1STAT .equiv SPI1STATH, _SPI1STAT+1 .extern SPI1CON1 .equiv SPI1CON1L, _SPI1CON1 .equiv SPI1CON1H, _SPI1CON1+1 .extern SPI1CON2 .equiv SPI1CON2L, _SPI1CON2 .equiv SPI1CON2H, _SPI1CON2+1 .extern SPI1BUF .equiv SPI1BUFL, _SPI1BUF .equiv SPI1BUFH, _SPI1BUF+1 .extern SPI2STAT .equiv SPI2STATL, _SPI2STAT .equiv SPI2STATH, _SPI2STAT+1 .extern SPI2CON1 .equiv SPI2CON1L, _SPI2CON1 .equiv SPI2CON1H, _SPI2CON1+1 .extern SPI2CON2 .equiv SPI2CON2L, _SPI2CON2 .equiv SPI2CON2H, _SPI2CON2+1 .extern SPI2BUF .equiv SPI2BUFL, _SPI2BUF .equiv SPI2BUFH, _SPI2BUF+1 .extern ADC1BUF0 .equiv ADC1BUF0L, _ADC1BUF0 .equiv ADC1BUF0H, _ADC1BUF0+1 .extern ADC1BUF1 .equiv ADC1BUF1L, _ADC1BUF1 .equiv ADC1BUF1H, _ADC1BUF1+1 .extern ADC1BUF2 .equiv ADC1BUF2L, _ADC1BUF2 .equiv ADC1BUF2H, _ADC1BUF2+1 .extern ADC1BUF3 .equiv ADC1BUF3L, _ADC1BUF3 .equiv ADC1BUF3H, _ADC1BUF3+1 .extern ADC1BUF4 .equiv ADC1BUF4L, _ADC1BUF4 .equiv ADC1BUF4H, _ADC1BUF4+1 .extern ADC1BUF5 .equiv ADC1BUF5L, _ADC1BUF5 .equiv ADC1BUF5H, _ADC1BUF5+1 .extern ADC1BUF6 .equiv ADC1BUF6L, _ADC1BUF6 .equiv ADC1BUF6H, _ADC1BUF6+1 .extern ADC1BUF7 .equiv ADC1BUF7L, _ADC1BUF7 .equiv ADC1BUF7H, _ADC1BUF7+1 .extern ADC1BUF8 .equiv ADC1BUF8L, _ADC1BUF8 .equiv ADC1BUF8H, _ADC1BUF8+1 .extern ADC1BUF9 .equiv ADC1BUF9L, _ADC1BUF9 .equiv ADC1BUF9H, _ADC1BUF9+1 .extern ADC1BUFA .equiv ADC1BUFAL, _ADC1BUFA .equiv ADC1BUFAH, _ADC1BUFA+1 .extern ADC1BUFB .equiv ADC1BUFBL, _ADC1BUFB .equiv ADC1BUFBH, _ADC1BUFB+1 .extern ADC1BUFC .equiv ADC1BUFCL, _ADC1BUFC .equiv ADC1BUFCH, _ADC1BUFC+1 .extern ADC1BUFD .equiv ADC1BUFDL, _ADC1BUFD .equiv ADC1BUFDH, _ADC1BUFD+1 .extern ADC1BUFE .equiv ADC1BUFEL, _ADC1BUFE .equiv ADC1BUFEH, _ADC1BUFE+1 .extern ADC1BUFF .equiv ADC1BUFFL, _ADC1BUFF .equiv ADC1BUFFH, _ADC1BUFF+1 .extern AD1CON1 .equiv AD1CON1L, _AD1CON1 .equiv AD1CON1H, _AD1CON1+1 .extern AD1CON2 .equiv AD1CON2L, _AD1CON2 .equiv AD1CON2H, _AD1CON2+1 .extern AD1CON3 .equiv AD1CON3L, _AD1CON3 .equiv AD1CON3H, _AD1CON3+1 .extern AD1CHS123 .equiv AD1CHS123L, _AD1CHS123 .equiv AD1CHS123H, _AD1CHS123+1 .extern AD1CHS0 .equiv AD1CHS0L, _AD1CHS0 .equiv AD1CHS0H, _AD1CHS0+1 .extern AD1CSSH .equiv AD1CSSHL, _AD1CSSH .equiv AD1CSSHH, _AD1CSSH+1 .extern AD1CSSL .equiv AD1CSSLL, _AD1CSSL .equiv AD1CSSLH, _AD1CSSL+1 .extern AD1CON4 .equiv AD1CON4L, _AD1CON4 .equiv AD1CON4H, _AD1CON4+1 .extern CTMUCON1 .equiv CTMUCON1L, _CTMUCON1 .equiv CTMUCON1H, _CTMUCON1+1 .extern CTMUCON2 .equiv CTMUCON2L, _CTMUCON2 .equiv CTMUCON2H, _CTMUCON2+1 .extern CTMUICON .equiv CTMUICONL, _CTMUICON .equiv CTMUICONH, _CTMUICON+1 .extern SENT1CON1 .equiv SENT1CON1L, _SENT1CON1 .equiv SENT1CON1H, _SENT1CON1+1 .extern SENT1CON2 .equiv SENT1CON2L, _SENT1CON2 .equiv SENT1CON2H, _SENT1CON2+1 .extern SENT1CON3 .equiv SENT1CON3L, _SENT1CON3 .equiv SENT1CON3H, _SENT1CON3+1 .extern SENT1STAT .equiv SENT1STATL, _SENT1STAT .equiv SENT1STATH, _SENT1STAT+1 .extern SENT1SYNC .equiv SENT1SYNCL, _SENT1SYNC .equiv SENT1SYNCH, _SENT1SYNC+1 .extern SENT1DATL .equiv SENT1DATLL, _SENT1DATL .equiv SENT1DATLH, _SENT1DATL+1 .extern SENT1DATH .equiv SENT1DATHL, _SENT1DATH .equiv SENT1DATHH, _SENT1DATH+1 .extern SENT2CON1 .equiv SENT2CON1L, _SENT2CON1 .equiv SENT2CON1H, _SENT2CON1+1 .extern SENT2CON2 .equiv SENT2CON2L, _SENT2CON2 .equiv SENT2CON2H, _SENT2CON2+1 .extern SENT2CON3 .equiv SENT2CON3L, _SENT2CON3 .equiv SENT2CON3H, _SENT2CON3+1 .extern SENT2STAT .equiv SENT2STATL, _SENT2STAT .equiv SENT2STATH, _SENT2STAT+1 .extern SENT2SYNC .equiv SENT2SYNCL, _SENT2SYNC .equiv SENT2SYNCH, _SENT2SYNC+1 .extern SENT2DATL .equiv SENT2DATLL, _SENT2DATL .equiv SENT2DATLH, _SENT2DATL+1 .extern SENT2DATH .equiv SENT2DATHL, _SENT2DATH .equiv SENT2DATHH, _SENT2DATH+1 .extern RPOR0 .equiv RPOR0L, _RPOR0 .equiv RPOR0H, _RPOR0+1 .extern RPOR1 .equiv RPOR1L, _RPOR1 .equiv RPOR1H, _RPOR1+1 .extern RPOR2 .equiv RPOR2L, _RPOR2 .equiv RPOR2H, _RPOR2+1 .extern RPOR3 .equiv RPOR3L, _RPOR3 .equiv RPOR3H, _RPOR3+1 .extern RPOR4 .equiv RPOR4L, _RPOR4 .equiv RPOR4H, _RPOR4+1 .extern RPOR10 .equiv RPOR10L, _RPOR10 .equiv RPOR10H, _RPOR10+1 .extern RPOR11 .equiv RPOR11L, _RPOR11 .equiv RPOR11H, _RPOR11+1 .extern RPOR12 .equiv RPOR12L, _RPOR12 .equiv RPOR12H, _RPOR12+1 .extern RPOR13 .equiv RPOR13L, _RPOR13 .equiv RPOR13H, _RPOR13+1 .extern RPINR0 .equiv RPINR0L, _RPINR0 .equiv RPINR0H, _RPINR0+1 .extern RPINR1 .equiv RPINR1L, _RPINR1 .equiv RPINR1H, _RPINR1+1 .extern RPINR3 .equiv RPINR3L, _RPINR3 .equiv RPINR3H, _RPINR3+1 .extern RPINR7 .equiv RPINR7L, _RPINR7 .equiv RPINR7H, _RPINR7+1 .extern RPINR8 .equiv RPINR8L, _RPINR8 .equiv RPINR8H, _RPINR8+1 .extern RPINR11 .equiv RPINR11L, _RPINR11 .equiv RPINR11H, _RPINR11+1 .extern RPINR12 .equiv RPINR12L, _RPINR12 .equiv RPINR12H, _RPINR12+1 .extern RPINR18 .equiv RPINR18L, _RPINR18 .equiv RPINR18H, _RPINR18+1 .extern RPINR19 .equiv RPINR19L, _RPINR19 .equiv RPINR19H, _RPINR19+1 .extern RPINR22 .equiv RPINR22L, _RPINR22 .equiv RPINR22H, _RPINR22+1 .extern RPINR23 .equiv RPINR23L, _RPINR23 .equiv RPINR23H, _RPINR23+1 .extern RPINR37 .equiv RPINR37L, _RPINR37 .equiv RPINR37H, _RPINR37+1 .extern RPINR38 .equiv RPINR38L, _RPINR38 .equiv RPINR38H, _RPINR38+1 .extern RPINR39 .equiv RPINR39L, _RPINR39 .equiv RPINR39H, _RPINR39+1 .extern RPINR44 .equiv RPINR44L, _RPINR44 .equiv RPINR44H, _RPINR44+1 .extern RPINR45 .equiv RPINR45L, _RPINR45 .equiv RPINR45H, _RPINR45+1 .extern DMTCON .equiv DMTCONL, _DMTCON .equiv DMTCONH, _DMTCON+1 .extern DMTPRECLR .equiv DMTPRECLRL, _DMTPRECLR .equiv DMTPRECLRH, _DMTPRECLR+1 .extern DMTCLR .equiv DMTCLRL, _DMTCLR .equiv DMTCLRH, _DMTCLR+1 .extern DMTSTAT .equiv DMTSTATL, _DMTSTAT .equiv DMTSTATH, _DMTSTAT+1 .extern DMTCNTL .equiv DMTCNTLL, _DMTCNTL .equiv DMTCNTLH, _DMTCNTL+1 .extern DMTCNTH .equiv DMTCNTHL, _DMTCNTH .equiv DMTCNTHH, _DMTCNTH+1 .extern DMTHOLDREG .equiv DMTHOLDREGL, _DMTHOLDREG .equiv DMTHOLDREGH, _DMTHOLDREG+1 .extern DMTPSCNTL .equiv DMTPSCNTLL, _DMTPSCNTL .equiv DMTPSCNTLH, _DMTPSCNTL+1 .extern DMTPSCNTH .equiv DMTPSCNTHL, _DMTPSCNTH .equiv DMTPSCNTHH, _DMTPSCNTH+1 .extern DMTPSINTVL .equiv DMTPSINTVLL, _DMTPSINTVL .equiv DMTPSINTVLH, _DMTPSINTVL+1 .extern DMTPSINTVH .equiv DMTPSINTVHL, _DMTPSINTVH .equiv DMTPSINTVHH, _DMTPSINTVH+1 .extern NVMCON .equiv NVMCONL, _NVMCON .equiv NVMCONH, _NVMCON+1 .extern NVMADR .equiv NVMADRL, _NVMADR .equiv NVMADRH, _NVMADR+1 .extern NVMADRU .equiv NVMADRUL, _NVMADRU .equiv NVMADRUH, _NVMADRU+1 .extern NVMKEY .equiv NVMKEYL, _NVMKEY .equiv NVMKEYH, _NVMKEY+1 .extern NVMSRCADRL .equiv NVMSRCADRLL, _NVMSRCADRL .equiv NVMSRCADRLH, _NVMSRCADRL+1 .extern NVMSRCADRH .equiv NVMSRCADRHL, _NVMSRCADRH .equiv NVMSRCADRHH, _NVMSRCADRH+1 .extern RCON .equiv RCONL, _RCON .equiv RCONH, _RCON+1 .extern OSCCON .extern OSCCONL .equiv OSCCONLL, _OSCCONL .equiv OSCCONLH, _OSCCONL+1 .extern OSCCONH .equiv OSCCONHL, _OSCCONH .equiv OSCCONHH, _OSCCONH+1 .extern CLKDIV .equiv CLKDIVL, _CLKDIV .equiv CLKDIVH, _CLKDIV+1 .extern PLLFBD .equiv PLLFBDL, _PLLFBD .equiv PLLFBDH, _PLLFBD+1 .extern OSCTUN .equiv OSCTUNL, _OSCTUN .equiv OSCTUNH, _OSCTUN+1 .extern REFOCON .equiv REFOCONL, _REFOCON .equiv REFOCONH, _REFOCON+1 .extern PMD1 .equiv PMD1L, _PMD1 .equiv PMD1H, _PMD1+1 .extern PMD2 .equiv PMD2L, _PMD2 .equiv PMD2H, _PMD2+1 .extern PMD3 .equiv PMD3L, _PMD3 .equiv PMD3H, _PMD3+1 .extern PMD4 .equiv PMD4L, _PMD4 .equiv PMD4H, _PMD4+1 .extern PMD6 .equiv PMD6L, _PMD6 .equiv PMD6H, _PMD6+1 .extern PMD7 .equiv PMD7L, _PMD7 .equiv PMD7H, _PMD7+1 .extern PMD8 .equiv PMD8L, _PMD8 .equiv PMD8H, _PMD8+1 .extern IFS0 .equiv IFS0L, _IFS0 .equiv IFS0H, _IFS0+1 .extern IFS1 .equiv IFS1L, _IFS1 .equiv IFS1H, _IFS1+1 .extern IFS2 .equiv IFS2L, _IFS2 .equiv IFS2H, _IFS2+1 .extern IFS3 .equiv IFS3L, _IFS3 .equiv IFS3H, _IFS3+1 .extern IFS4 .equiv IFS4L, _IFS4 .equiv IFS4H, _IFS4+1 .extern IFS5 .equiv IFS5L, _IFS5 .equiv IFS5H, _IFS5+1 .extern IFS6 .equiv IFS6L, _IFS6 .equiv IFS6H, _IFS6+1 .extern IFS8 .equiv IFS8L, _IFS8 .equiv IFS8H, _IFS8+1 .extern IFS10 .equiv IFS10L, _IFS10 .equiv IFS10H, _IFS10+1 .extern IFS11 .equiv IFS11L, _IFS11 .equiv IFS11H, _IFS11+1 .extern IEC0 .equiv IEC0L, _IEC0 .equiv IEC0H, _IEC0+1 .extern IEC1 .equiv IEC1L, _IEC1 .equiv IEC1H, _IEC1+1 .extern IEC2 .equiv IEC2L, _IEC2 .equiv IEC2H, _IEC2+1 .extern IEC3 .equiv IEC3L, _IEC3 .equiv IEC3H, _IEC3+1 .extern IEC4 .equiv IEC4L, _IEC4 .equiv IEC4H, _IEC4+1 .extern IEC5 .equiv IEC5L, _IEC5 .equiv IEC5H, _IEC5+1 .extern IEC6 .equiv IEC6L, _IEC6 .equiv IEC6H, _IEC6+1 .extern IEC8 .equiv IEC8L, _IEC8 .equiv IEC8H, _IEC8+1 .extern IEC10 .equiv IEC10L, _IEC10 .equiv IEC10H, _IEC10+1 .extern IEC11 .equiv IEC11L, _IEC11 .equiv IEC11H, _IEC11+1 .extern IPC0 .equiv IPC0L, _IPC0 .equiv IPC0H, _IPC0+1 .extern IPC1 .equiv IPC1L, _IPC1 .equiv IPC1H, _IPC1+1 .extern IPC2 .equiv IPC2L, _IPC2 .equiv IPC2H, _IPC2+1 .extern IPC3 .equiv IPC3L, _IPC3 .equiv IPC3H, _IPC3+1 .extern IPC4 .equiv IPC4L, _IPC4 .equiv IPC4H, _IPC4+1 .extern IPC5 .equiv IPC5L, _IPC5 .equiv IPC5H, _IPC5+1 .extern IPC6 .equiv IPC6L, _IPC6 .equiv IPC6H, _IPC6+1 .extern IPC7 .equiv IPC7L, _IPC7 .equiv IPC7H, _IPC7+1 .extern IPC8 .equiv IPC8L, _IPC8 .equiv IPC8H, _IPC8+1 .extern IPC9 .equiv IPC9L, _IPC9 .equiv IPC9H, _IPC9+1 .extern IPC14 .equiv IPC14L, _IPC14 .equiv IPC14H, _IPC14+1 .extern IPC16 .equiv IPC16L, _IPC16 .equiv IPC16H, _IPC16+1 .extern IPC19 .equiv IPC19L, _IPC19 .equiv IPC19H, _IPC19+1 .extern IPC23 .equiv IPC23L, _IPC23 .equiv IPC23H, _IPC23+1 .extern IPC24 .equiv IPC24L, _IPC24 .equiv IPC24H, _IPC24+1 .extern IPC35 .equiv IPC35L, _IPC35 .equiv IPC35H, _IPC35+1 .extern IPC43 .equiv IPC43L, _IPC43 .equiv IPC43H, _IPC43+1 .extern IPC45 .equiv IPC45L, _IPC45 .equiv IPC45H, _IPC45+1 .extern IPC46 .equiv IPC46L, _IPC46 .equiv IPC46H, _IPC46+1 .extern INTCON1 .equiv INTCON1L, _INTCON1 .equiv INTCON1H, _INTCON1+1 .extern INTCON2 .equiv INTCON2L, _INTCON2 .equiv INTCON2H, _INTCON2+1 .extern INTCON3 .equiv INTCON3L, _INTCON3 .equiv INTCON3H, _INTCON3+1 .extern INTCON4 .equiv INTCON4L, _INTCON4 .equiv INTCON4H, _INTCON4+1 .extern INTTREG .equiv INTTREGL, _INTTREG .equiv INTTREGH, _INTTREG+1 .extern OC1CON1 .equiv OC1CON1L, _OC1CON1 .equiv OC1CON1H, _OC1CON1+1 .extern OC1CON2 .equiv OC1CON2L, _OC1CON2 .equiv OC1CON2H, _OC1CON2+1 .extern OC1RS .equiv OC1RSL, _OC1RS .equiv OC1RSH, _OC1RS+1 .extern OC1R .equiv OC1RL, _OC1R .equiv OC1RH, _OC1R+1 .extern OC1TMR .equiv OC1TMRL, _OC1TMR .equiv OC1TMRH, _OC1TMR+1 .extern OC2CON1 .equiv OC2CON1L, _OC2CON1 .equiv OC2CON1H, _OC2CON1+1 .extern OC2CON2 .equiv OC2CON2L, _OC2CON2 .equiv OC2CON2H, _OC2CON2+1 .extern OC2RS .equiv OC2RSL, _OC2RS .equiv OC2RSH, _OC2RS+1 .extern OC2R .equiv OC2RL, _OC2R .equiv OC2RH, _OC2R+1 .extern OC2TMR .equiv OC2TMRL, _OC2TMR .equiv OC2TMRH, _OC2TMR+1 .extern OC3CON1 .equiv OC3CON1L, _OC3CON1 .equiv OC3CON1H, _OC3CON1+1 .extern OC3CON2 .equiv OC3CON2L, _OC3CON2 .equiv OC3CON2H, _OC3CON2+1 .extern OC3RS .equiv OC3RSL, _OC3RS .equiv OC3RSH, _OC3RS+1 .extern OC3R .equiv OC3RL, _OC3R .equiv OC3RH, _OC3R+1 .extern OC3TMR .equiv OC3TMRL, _OC3TMR .equiv OC3TMRH, _OC3TMR+1 .extern OC4CON1 .equiv OC4CON1L, _OC4CON1 .equiv OC4CON1H, _OC4CON1+1 .extern OC4CON2 .equiv OC4CON2L, _OC4CON2 .equiv OC4CON2H, _OC4CON2+1 .extern OC4RS .equiv OC4RSL, _OC4RS .equiv OC4RSH, _OC4RS+1 .extern OC4R .equiv OC4RL, _OC4R .equiv OC4RH, _OC4R+1 .extern OC4TMR .equiv OC4TMRL, _OC4TMR .equiv OC4TMRH, _OC4TMR+1 .extern CMSTAT .equiv CMSTATL, _CMSTAT .equiv CMSTATH, _CMSTAT+1 .extern CVR1CON .equiv CVR1CONL, _CVR1CON .equiv CVR1CONH, _CVR1CON+1 .extern CM1CON .equiv CM1CONL, _CM1CON .equiv CM1CONH, _CM1CON+1 .extern CM1MSKSRC .equiv CM1MSKSRCL, _CM1MSKSRC .equiv CM1MSKSRCH, _CM1MSKSRC+1 .extern CM1MSKCON .equiv CM1MSKCONL, _CM1MSKCON .equiv CM1MSKCONH, _CM1MSKCON+1 .extern CM1FLTR .equiv CM1FLTRL, _CM1FLTR .equiv CM1FLTRH, _CM1FLTR+1 .extern CM2CON .equiv CM2CONL, _CM2CON .equiv CM2CONH, _CM2CON+1 .extern CM2MSKSRC .equiv CM2MSKSRCL, _CM2MSKSRC .equiv CM2MSKSRCH, _CM2MSKSRC+1 .extern CM2MSKCON .equiv CM2MSKCONL, _CM2MSKCON .equiv CM2MSKCONH, _CM2MSKCON+1 .extern CM2FLTR .equiv CM2FLTRL, _CM2FLTR .equiv CM2FLTRH, _CM2FLTR+1 .extern CM3CON .equiv CM3CONL, _CM3CON .equiv CM3CONH, _CM3CON+1 .extern CM3MSKSRC .equiv CM3MSKSRCL, _CM3MSKSRC .equiv CM3MSKSRCH, _CM3MSKSRC+1 .extern CM3MSKCON .equiv CM3MSKCONL, _CM3MSKCON .equiv CM3MSKCONH, _CM3MSKCON+1 .extern CM3FLTR .equiv CM3FLTRL, _CM3FLTR .equiv CM3FLTRH, _CM3FLTR+1 .extern CM4CON .equiv CM4CONL, _CM4CON .equiv CM4CONH, _CM4CON+1 .extern CM4MSKSRC .equiv CM4MSKSRCL, _CM4MSKSRC .equiv CM4MSKSRCH, _CM4MSKSRC+1 .extern CM4MSKCON .equiv CM4MSKCONL, _CM4MSKCON .equiv CM4MSKCONH, _CM4MSKCON+1 .extern CM4FLTR .equiv CM4FLTRL, _CM4FLTR .equiv CM4FLTRH, _CM4FLTR+1 .extern CM5CON .equiv CM5CONL, _CM5CON .equiv CM5CONH, _CM5CON+1 .extern CM5MSKSRC .equiv CM5MSKSRCL, _CM5MSKSRC .equiv CM5MSKSRCH, _CM5MSKSRC+1 .extern CM5MSKCON .equiv CM5MSKCONL, _CM5MSKCON .equiv CM5MSKCONH, _CM5MSKCON+1 .extern CM5FLTR .equiv CM5FLTRL, _CM5FLTR .equiv CM5FLTRH, _CM5FLTR+1 .extern CVR2CON .equiv CVR2CONL, _CVR2CON .equiv CVR2CONH, _CVR2CON+1 .extern DMA0CON .equiv DMA0CONL, _DMA0CON .equiv DMA0CONH, _DMA0CON+1 .extern DMA0REQ .equiv DMA0REQL, _DMA0REQ .equiv DMA0REQH, _DMA0REQ+1 .extern DMA0STAL .equiv DMA0STALL, _DMA0STAL .equiv DMA0STALH, _DMA0STAL+1 .extern DMA0STAH .equiv DMA0STAHL, _DMA0STAH .equiv DMA0STAHH, _DMA0STAH+1 .extern DMA0STBL .equiv DMA0STBLL, _DMA0STBL .equiv DMA0STBLH, _DMA0STBL+1 .extern DMA0STBH .equiv DMA0STBHL, _DMA0STBH .equiv DMA0STBHH, _DMA0STBH+1 .extern DMA0PAD .equiv DMA0PADL, _DMA0PAD .equiv DMA0PADH, _DMA0PAD+1 .extern DMA0CNT .equiv DMA0CNTL, _DMA0CNT .equiv DMA0CNTH, _DMA0CNT+1 .extern DMA1CON .equiv DMA1CONL, _DMA1CON .equiv DMA1CONH, _DMA1CON+1 .extern DMA1REQ .equiv DMA1REQL, _DMA1REQ .equiv DMA1REQH, _DMA1REQ+1 .extern DMA1STAL .equiv DMA1STALL, _DMA1STAL .equiv DMA1STALH, _DMA1STAL+1 .extern DMA1STAH .equiv DMA1STAHL, _DMA1STAH .equiv DMA1STAHH, _DMA1STAH+1 .extern DMA1STBL .equiv DMA1STBLL, _DMA1STBL .equiv DMA1STBLH, _DMA1STBL+1 .extern DMA1STBH .equiv DMA1STBHL, _DMA1STBH .equiv DMA1STBHH, _DMA1STBH+1 .extern DMA1PAD .equiv DMA1PADL, _DMA1PAD .equiv DMA1PADH, _DMA1PAD+1 .extern DMA1CNT .equiv DMA1CNTL, _DMA1CNT .equiv DMA1CNTH, _DMA1CNT+1 .extern DMA2CON .equiv DMA2CONL, _DMA2CON .equiv DMA2CONH, _DMA2CON+1 .extern DMA2REQ .equiv DMA2REQL, _DMA2REQ .equiv DMA2REQH, _DMA2REQ+1 .extern DMA2STAL .equiv DMA2STALL, _DMA2STAL .equiv DMA2STALH, _DMA2STAL+1 .extern DMA2STAH .equiv DMA2STAHL, _DMA2STAH .equiv DMA2STAHH, _DMA2STAH+1 .extern DMA2STBL .equiv DMA2STBLL, _DMA2STBL .equiv DMA2STBLH, _DMA2STBL+1 .extern DMA2STBH .equiv DMA2STBHL, _DMA2STBH .equiv DMA2STBHH, _DMA2STBH+1 .extern DMA2PAD .equiv DMA2PADL, _DMA2PAD .equiv DMA2PADH, _DMA2PAD+1 .extern DMA2CNT .equiv DMA2CNTL, _DMA2CNT .equiv DMA2CNTH, _DMA2CNT+1 .extern DMA3CON .equiv DMA3CONL, _DMA3CON .equiv DMA3CONH, _DMA3CON+1 .extern DMA3REQ .equiv DMA3REQL, _DMA3REQ .equiv DMA3REQH, _DMA3REQ+1 .extern DMA3STAL .equiv DMA3STALL, _DMA3STAL .equiv DMA3STALH, _DMA3STAL+1 .extern DMA3STAH .equiv DMA3STAHL, _DMA3STAH .equiv DMA3STAHH, _DMA3STAH+1 .extern DMA3STBL .equiv DMA3STBLL, _DMA3STBL .equiv DMA3STBLH, _DMA3STBL+1 .extern DMA3STBH .equiv DMA3STBHL, _DMA3STBH .equiv DMA3STBHH, _DMA3STBH+1 .extern DMA3PAD .equiv DMA3PADL, _DMA3PAD .equiv DMA3PADH, _DMA3PAD+1 .extern DMA3CNT .equiv DMA3CNTL, _DMA3CNT .equiv DMA3CNTH, _DMA3CNT+1 .extern DMAPWC .equiv DMAPWCL, _DMAPWC .equiv DMAPWCH, _DMAPWC+1 .extern DMARQC .equiv DMARQCL, _DMARQC .equiv DMARQCH, _DMARQC+1 .extern DMAPPS .equiv DMAPPSL, _DMAPPS .equiv DMAPPSH, _DMAPPS+1 .extern DMALCA .equiv DMALCAL, _DMALCA .equiv DMALCAH, _DMALCA+1 .extern DSADRL .equiv DSADRLL, _DSADRL .equiv DSADRLH, _DSADRL+1 .extern DSADRH .equiv DSADRHL, _DSADRH .equiv DSADRHH, _DSADRH+1 .extern PTCON .equiv PTCONL, _PTCON .equiv PTCONH, _PTCON+1 .extern PTCON2 .equiv PTCON2L, _PTCON2 .equiv PTCON2H, _PTCON2+1 .extern PTPER .equiv PTPERL, _PTPER .equiv PTPERH, _PTPER+1 .extern SEVTCMP .equiv SEVTCMPL, _SEVTCMP .equiv SEVTCMPH, _SEVTCMP+1 .extern MDC .equiv MDCL, _MDC .equiv MDCH, _MDC+1 .extern CHOP .equiv CHOPL, _CHOP .equiv CHOPH, _CHOP+1 .extern PWMKEY .equiv PWMKEYL, _PWMKEY .equiv PWMKEYH, _PWMKEY+1 .extern PWMCON1 .equiv PWMCON1L, _PWMCON1 .equiv PWMCON1H, _PWMCON1+1 .extern IOCON1 .equiv IOCON1L, _IOCON1 .equiv IOCON1H, _IOCON1+1 .extern FCLCON1 .equiv FCLCON1L, _FCLCON1 .equiv FCLCON1H, _FCLCON1+1 .extern PDC1 .equiv PDC1L, _PDC1 .equiv PDC1H, _PDC1+1 .extern PHASE1 .equiv PHASE1L, _PHASE1 .equiv PHASE1H, _PHASE1+1 .extern DTR1 .equiv DTR1L, _DTR1 .equiv DTR1H, _DTR1+1 .extern ALTDTR1 .equiv ALTDTR1L, _ALTDTR1 .equiv ALTDTR1H, _ALTDTR1+1 .extern TRIG1 .equiv TRIG1L, _TRIG1 .equiv TRIG1H, _TRIG1+1 .extern TRGCON1 .equiv TRGCON1L, _TRGCON1 .equiv TRGCON1H, _TRGCON1+1 .extern PWMCAP1 .equiv PWMCAP1L, _PWMCAP1 .equiv PWMCAP1H, _PWMCAP1+1 .extern LEBCON1 .equiv LEBCON1L, _LEBCON1 .equiv LEBCON1H, _LEBCON1+1 .extern LEBDLY1 .equiv LEBDLY1L, _LEBDLY1 .equiv LEBDLY1H, _LEBDLY1+1 .extern AUXCON1 .equiv AUXCON1L, _AUXCON1 .equiv AUXCON1H, _AUXCON1+1 .extern PWMCON2 .equiv PWMCON2L, _PWMCON2 .equiv PWMCON2H, _PWMCON2+1 .extern IOCON2 .equiv IOCON2L, _IOCON2 .equiv IOCON2H, _IOCON2+1 .extern FCLCON2 .equiv FCLCON2L, _FCLCON2 .equiv FCLCON2H, _FCLCON2+1 .extern PDC2 .equiv PDC2L, _PDC2 .equiv PDC2H, _PDC2+1 .extern PHASE2 .equiv PHASE2L, _PHASE2 .equiv PHASE2H, _PHASE2+1 .extern DTR2 .equiv DTR2L, _DTR2 .equiv DTR2H, _DTR2+1 .extern ALTDTR2 .equiv ALTDTR2L, _ALTDTR2 .equiv ALTDTR2H, _ALTDTR2+1 .extern TRIG2 .equiv TRIG2L, _TRIG2 .equiv TRIG2H, _TRIG2+1 .extern TRGCON2 .equiv TRGCON2L, _TRGCON2 .equiv TRGCON2H, _TRGCON2+1 .extern PWMCAP2 .equiv PWMCAP2L, _PWMCAP2 .equiv PWMCAP2H, _PWMCAP2+1 .extern LEBCON2 .equiv LEBCON2L, _LEBCON2 .equiv LEBCON2H, _LEBCON2+1 .extern LEBDLY2 .equiv LEBDLY2L, _LEBDLY2 .equiv LEBDLY2H, _LEBDLY2+1 .extern AUXCON2 .equiv AUXCON2L, _AUXCON2 .equiv AUXCON2H, _AUXCON2+1 .extern PWMCON3 .equiv PWMCON3L, _PWMCON3 .equiv PWMCON3H, _PWMCON3+1 .extern IOCON3 .equiv IOCON3L, _IOCON3 .equiv IOCON3H, _IOCON3+1 .extern FCLCON3 .equiv FCLCON3L, _FCLCON3 .equiv FCLCON3H, _FCLCON3+1 .extern PDC3 .equiv PDC3L, _PDC3 .equiv PDC3H, _PDC3+1 .extern PHASE3 .equiv PHASE3L, _PHASE3 .equiv PHASE3H, _PHASE3+1 .extern DTR3 .equiv DTR3L, _DTR3 .equiv DTR3H, _DTR3+1 .extern ALTDTR3 .equiv ALTDTR3L, _ALTDTR3 .equiv ALTDTR3H, _ALTDTR3+1 .extern TRIG3 .equiv TRIG3L, _TRIG3 .equiv TRIG3H, _TRIG3+1 .extern TRGCON3 .equiv TRGCON3L, _TRGCON3 .equiv TRGCON3H, _TRGCON3+1 .extern PWMCAP3 .equiv PWMCAP3L, _PWMCAP3 .equiv PWMCAP3H, _PWMCAP3+1 .extern LEBCON3 .equiv LEBCON3L, _LEBCON3 .equiv LEBCON3H, _LEBCON3+1 .extern LEBDLY3 .equiv LEBDLY3L, _LEBDLY3 .equiv LEBDLY3H, _LEBDLY3+1 .extern AUXCON3 .equiv AUXCON3L, _AUXCON3 .equiv AUXCON3H, _AUXCON3+1 .extern TRISA .equiv TRISAL, _TRISA .equiv TRISAH, _TRISA+1 .extern PORTA .equiv PORTAL, _PORTA .equiv PORTAH, _PORTA+1 .extern LATA .equiv LATAL, _LATA .equiv LATAH, _LATA+1 .extern ODCA .equiv ODCAL, _ODCA .equiv ODCAH, _ODCA+1 .extern CNENA .equiv CNENAL, _CNENA .equiv CNENAH, _CNENA+1 .extern CNPUA .equiv CNPUAL, _CNPUA .equiv CNPUAH, _CNPUA+1 .extern CNPDA .equiv CNPDAL, _CNPDA .equiv CNPDAH, _CNPDA+1 .extern ANSELA .equiv ANSELAL, _ANSELA .equiv ANSELAH, _ANSELA+1 .extern SR1A .equiv SR1AL, _SR1A .equiv SR1AH, _SR1A+1 .extern SR0A .equiv SR0AL, _SR0A .equiv SR0AH, _SR0A+1 .extern TRISB .equiv TRISBL, _TRISB .equiv TRISBH, _TRISB+1 .extern PORTB .equiv PORTBL, _PORTB .equiv PORTBH, _PORTB+1 .extern LATB .equiv LATBL, _LATB .equiv LATBH, _LATB+1 .extern ODCB .equiv ODCBL, _ODCB .equiv ODCBH, _ODCB+1 .extern CNENB .equiv CNENBL, _CNENB .equiv CNENBH, _CNENB+1 .extern CNPUB .equiv CNPUBL, _CNPUB .equiv CNPUBH, _CNPUB+1 .extern CNPDB .equiv CNPDBL, _CNPDB .equiv CNPDBH, _CNPDB+1 .extern ANSELB .equiv ANSELBL, _ANSELB .equiv ANSELBH, _ANSELB+1 .extern SR1B .equiv SR1BL, _SR1B .equiv SR1BH, _SR1B+1 .extern SR0B .equiv SR0BL, _SR0B .equiv SR0BH, _SR0B+1 .extern FEXL .equiv FEXLL, _FEXL .equiv FEXLH, _FEXL+1 .extern FEXU .equiv FEXUL, _FEXU .equiv FEXUH, _FEXU+1 .extern FEX2L .equiv FEX2LL, _FEX2L .equiv FEX2LH, _FEX2L+1 .extern FEX2U .equiv FEX2UL, _FEX2U .equiv FEX2UH, _FEX2U+1 .extern VISI .equiv VISIL, _VISI .equiv VISIH, _VISI+1 .extern DPCL .equiv DPCLL, _DPCL .equiv DPCLH, _DPCL+1 .extern DPCH .equiv DPCHL, _DPCH .equiv DPCHH, _DPCH+1 .extern APPO .equiv APPOL, _APPO .equiv APPOH, _APPO+1 .extern APPI .equiv APPIL, _APPI .equiv APPIH, _APPI+1 .extern APPS .equiv APPSL, _APPS .equiv APPSH, _APPS+1 .extern STROUTL .equiv STROUTLL, _STROUTL .equiv STROUTLH, _STROUTL+1 .extern STROUTH .equiv STROUTHL, _STROUTH .equiv STROUTHH, _STROUTH+1 .extern STROVCNT .equiv STROVCNTL, _STROVCNT .equiv STROVCNTH, _STROVCNT+1 ;----- SR Bits ----------------------------------------------------- .equiv C, 0x0000 .equiv Z, 0x0001 .equiv OV, 0x0002 .equiv N, 0x0003 .equiv RA, 0x0004 .equiv DC, 0x0008 .equiv DA, 0x0009 .equiv SAB, 0x000A .equiv OAB, 0x000B .equiv SB, 0x000C .equiv SA, 0x000D .equiv OB, 0x000E .equiv OA, 0x000F .equiv IPL0, 0x0005 .equiv IPL1, 0x0006 .equiv IPL2, 0x0007 ;----- CORCON Bits ----------------------------------------------------- .equiv IF, 0x0000 .equiv RND, 0x0001 .equiv SFA, 0x0002 .equiv IPL3, 0x0003 .equiv ACCSAT, 0x0004 .equiv SATDW, 0x0005 .equiv SATB, 0x0006 .equiv SATA, 0x0007 .equiv EDT, 0x000B .equiv VAR, 0x000F .equiv DL0, 0x0008 .equiv DL1, 0x0009 .equiv DL2, 0x000A .equiv US0, 0x000C .equiv US1, 0x000D ;----- MODCON Bits ----------------------------------------------------- .equiv YMODEN, 0x000E .equiv XMODEN, 0x000F .equiv XWM0, 0x0000 .equiv XWM1, 0x0001 .equiv XWM2, 0x0002 .equiv XWM3, 0x0003 .equiv YWM0, 0x0004 .equiv YWM1, 0x0005 .equiv YWM2, 0x0006 .equiv YWM3, 0x0007 .equiv BWM0, 0x0008 .equiv BWM1, 0x0009 .equiv BWM2, 0x000A .equiv BWM3, 0x000B ;----- XBREV Bits ----------------------------------------------------- .equiv BREN, 0x000F .equiv XB0, 0x0000 .equiv XB1, 0x0001 .equiv XB2, 0x0002 .equiv XB3, 0x0003 .equiv XB4, 0x0004 .equiv XB5, 0x0005 .equiv XB6, 0x0006 .equiv XB7, 0x0007 .equiv XB8, 0x0008 .equiv XB9, 0x0009 .equiv XB10, 0x000A .equiv XB11, 0x000B .equiv XB12, 0x000C .equiv XB13, 0x000D .equiv XB14, 0x000E ;----- T1CON Bits ----------------------------------------------------- .equiv TCS, 0x0001 .equiv TSYNC, 0x0002 .equiv TGATE, 0x0006 .equiv TSIDL, 0x000D .equiv TON, 0x000F .equiv TCKPS0, 0x0004 .equiv TCKPS1, 0x0005 ;----- T2CON Bits ----------------------------------------------------- ;.equiv TCS, 0x0001 .equiv T32, 0x0003 ;.equiv TGATE, 0x0006 ;.equiv TSIDL, 0x000D ;.equiv TON, 0x000F ;.equiv TCKPS0, 0x0004 ;.equiv TCKPS1, 0x0005 ;----- T3CON Bits ----------------------------------------------------- ;.equiv TCS, 0x0001 ;.equiv TGATE, 0x0006 ;.equiv TSIDL, 0x000D ;.equiv TON, 0x000F ;.equiv TCKPS0, 0x0004 ;.equiv TCKPS1, 0x0005 ;----- T4CON Bits ----------------------------------------------------- ;.equiv TCS, 0x0001 ;.equiv T32, 0x0003 ;.equiv TGATE, 0x0006 ;.equiv TSIDL, 0x000D ;.equiv TON, 0x000F ;.equiv TCKPS0, 0x0004 ;.equiv TCKPS1, 0x0005 ;----- T5CON Bits ----------------------------------------------------- ;.equiv TCS, 0x0001 ;.equiv TGATE, 0x0006 ;.equiv TSIDL, 0x000D ;.equiv TON, 0x000F ;.equiv TCKPS0, 0x0004 ;.equiv TCKPS1, 0x0005 ;----- IC1CON1 Bits ----------------------------------------------------- .equiv ICBNE, 0x0003 .equiv ICOV, 0x0004 .equiv ICSIDL, 0x000D .equiv ICM0, 0x0000 .equiv ICM1, 0x0001 .equiv ICM2, 0x0002 .equiv ICI0, 0x0005 .equiv ICI1, 0x0006 .equiv ICTSEL0, 0x000A .equiv ICTSEL1, 0x000B .equiv ICTSEL2, 0x000C ;----- IC1CON2 Bits ----------------------------------------------------- .equiv TRIGSTAT, 0x0006 .equiv ICTRIG, 0x0007 .equiv IC32, 0x0008 .equiv SYNCSEL0, 0x0000 .equiv SYNCSEL1, 0x0001 .equiv SYNCSEL2, 0x0002 .equiv SYNCSEL3, 0x0003 .equiv SYNCSEL4, 0x0004 ;----- IC2CON1 Bits ----------------------------------------------------- ;.equiv ICBNE, 0x0003 ;.equiv ICOV, 0x0004 ;.equiv ICSIDL, 0x000D ;.equiv ICM0, 0x0000 ;.equiv ICM1, 0x0001 ;.equiv ICM2, 0x0002 ;.equiv ICI0, 0x0005 ;.equiv ICI1, 0x0006 ;.equiv ICTSEL0, 0x000A ;.equiv ICTSEL1, 0x000B ;.equiv ICTSEL2, 0x000C ;----- IC2CON2 Bits ----------------------------------------------------- ;.equiv TRIGSTAT, 0x0006 ;.equiv ICTRIG, 0x0007 ;.equiv IC32, 0x0008 ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;----- IC3CON1 Bits ----------------------------------------------------- ;.equiv ICBNE, 0x0003 ;.equiv ICOV, 0x0004 ;.equiv ICSIDL, 0x000D ;.equiv ICM0, 0x0000 ;.equiv ICM1, 0x0001 ;.equiv ICM2, 0x0002 ;.equiv ICI0, 0x0005 ;.equiv ICI1, 0x0006 ;.equiv ICTSEL0, 0x000A ;.equiv ICTSEL1, 0x000B ;.equiv ICTSEL2, 0x000C ;----- IC3CON2 Bits ----------------------------------------------------- ;.equiv TRIGSTAT, 0x0006 ;.equiv ICTRIG, 0x0007 ;.equiv IC32, 0x0008 ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;----- IC4CON1 Bits ----------------------------------------------------- ;.equiv ICBNE, 0x0003 ;.equiv ICOV, 0x0004 ;.equiv ICSIDL, 0x000D ;.equiv ICM0, 0x0000 ;.equiv ICM1, 0x0001 ;.equiv ICM2, 0x0002 ;.equiv ICI0, 0x0005 ;.equiv ICI1, 0x0006 ;.equiv ICTSEL0, 0x000A ;.equiv ICTSEL1, 0x000B ;.equiv ICTSEL2, 0x000C ;----- IC4CON2 Bits ----------------------------------------------------- ;.equiv TRIGSTAT, 0x0006 ;.equiv ICTRIG, 0x0007 ;.equiv IC32, 0x0008 ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;----- I2C1CON1 Bits ----------------------------------------------------- .equiv SEN, 0x0000 .equiv RSEN, 0x0001 .equiv PEN, 0x0002 .equiv RCEN, 0x0003 .equiv ACKEN, 0x0004 .equiv ACKDT, 0x0005 .equiv STREN, 0x0006 .equiv GCEN, 0x0007 .equiv SMEN, 0x0008 .equiv DISSLW, 0x0009 .equiv A10M, 0x000A .equiv STRICT, 0x000B .equiv SCLREL, 0x000C .equiv I2CSIDL, 0x000D .equiv I2CEN, 0x000F ;----- I2C1CONL Bits ----------------------------------------------------- ;.equiv SEN, 0x0000 ;.equiv RSEN, 0x0001 ;.equiv PEN, 0x0002 ;.equiv RCEN, 0x0003 ;.equiv ACKEN, 0x0004 ;.equiv ACKDT, 0x0005 ;.equiv STREN, 0x0006 ;.equiv GCEN, 0x0007 ;.equiv SMEN, 0x0008 ;.equiv DISSLW, 0x0009 ;.equiv A10M, 0x000A ;.equiv STRICT, 0x000B ;.equiv SCLREL, 0x000C ;.equiv I2CSIDL, 0x000D ;.equiv I2CEN, 0x000F ;----- I2C1CON2 Bits ----------------------------------------------------- .equiv DHEN, 0x0000 .equiv AHEN, 0x0001 .equiv SBCDE, 0x0002 .equiv SDAHT, 0x0003 .equiv BOEN, 0x0004 .equiv SCIE, 0x0005 .equiv PCIE, 0x0006 ;----- I2C1CONH Bits ----------------------------------------------------- ;.equiv DHEN, 0x0000 ;.equiv AHEN, 0x0001 ;.equiv SBCDE, 0x0002 ;.equiv SDAHT, 0x0003 ;.equiv BOEN, 0x0004 ;.equiv SCIE, 0x0005 ;.equiv PCIE, 0x0006 ;----- I2C1STAT Bits ----------------------------------------------------- .equiv TBF, 0x0000 .equiv RBF, 0x0001 .equiv R_W, 0x0002 .equiv S, 0x0003 .equiv P, 0x0004 .equiv D_A, 0x0005 .equiv I2COV, 0x0006 .equiv IWCOL, 0x0007 .equiv ADD10, 0x0008 .equiv GCSTAT, 0x0009 .equiv BCL_I2C1STAT, 0x000A .equiv ACKTIM, 0x000D .equiv TRSTAT, 0x000E .equiv ACKSTAT, 0x000F ;----- I2C1MSK Bits ----------------------------------------------------- .equiv AMSK0, 0x0000 .equiv AMSK1, 0x0001 .equiv AMSK2, 0x0002 .equiv AMSK3, 0x0003 .equiv AMSK4, 0x0004 .equiv AMSK5, 0x0005 .equiv AMSK6, 0x0006 .equiv AMSK7, 0x0007 .equiv AMSK8, 0x0008 .equiv AMSK9, 0x0009 ;----- U1MODE Bits ----------------------------------------------------- .equiv STSEL, 0x0000 .equiv BRGH, 0x0003 .equiv URXINV, 0x0004 .equiv ABAUD, 0x0005 .equiv LPBACK, 0x0006 .equiv WAKE, 0x0007 .equiv RTSMD, 0x000B .equiv IREN, 0x000C .equiv USIDL, 0x000D .equiv UARTEN, 0x000F .equiv PDSEL0, 0x0001 .equiv PDSEL1, 0x0002 .equiv RXINV, 0x0004 .equiv UEN0, 0x0008 .equiv UEN1, 0x0009 ;----- U1STA Bits ----------------------------------------------------- .equiv URXDA, 0x0000 .equiv OERR, 0x0001 .equiv FERR, 0x0002 .equiv PERR, 0x0003 .equiv RIDLE, 0x0004 .equiv ADDEN, 0x0005 .equiv TRMT, 0x0008 .equiv UTXBF, 0x0009 .equiv UTXEN, 0x000A .equiv UTXBRK, 0x000B .equiv UTXISEL0, 0x000D .equiv UTXINV, 0x000E .equiv UTXISEL1, 0x000F .equiv URXISEL0, 0x0006 .equiv URXISEL1, 0x0007 .equiv TXINV, 0x000E ;----- U2MODE Bits ----------------------------------------------------- ;.equiv STSEL, 0x0000 ;.equiv BRGH, 0x0003 ;.equiv URXINV, 0x0004 ;.equiv ABAUD, 0x0005 ;.equiv LPBACK, 0x0006 ;.equiv WAKE, 0x0007 ;.equiv RTSMD, 0x000B ;.equiv IREN, 0x000C ;.equiv USIDL, 0x000D ;.equiv UARTEN, 0x000F ;.equiv PDSEL0, 0x0001 ;.equiv PDSEL1, 0x0002 ;.equiv RXINV, 0x0004 ;.equiv UEN0, 0x0008 ;.equiv UEN1, 0x0009 ;----- U2STA Bits ----------------------------------------------------- ;.equiv URXDA, 0x0000 ;.equiv OERR, 0x0001 ;.equiv FERR, 0x0002 ;.equiv PERR, 0x0003 ;.equiv RIDLE, 0x0004 ;.equiv ADDEN, 0x0005 ;.equiv TRMT, 0x0008 ;.equiv UTXBF, 0x0009 ;.equiv UTXEN, 0x000A ;.equiv UTXBRK, 0x000B ;.equiv UTXISEL0, 0x000D ;.equiv UTXINV, 0x000E ;.equiv UTXISEL1, 0x000F ;.equiv URXISEL0, 0x0006 ;.equiv URXISEL1, 0x0007 ;.equiv TXINV, 0x000E ;----- SPI1STAT Bits ----------------------------------------------------- .equiv SPIRBF, 0x0000 .equiv SPITBF, 0x0001 .equiv SRXMPT, 0x0005 .equiv SPIROV, 0x0006 .equiv SRMPT, 0x0007 .equiv SPISIDL, 0x000D .equiv SPIEN, 0x000F .equiv SISEL0, 0x0002 .equiv SISEL1, 0x0003 .equiv SISEL2, 0x0004 .equiv SPIBEC0, 0x0008 .equiv SPIBEC1, 0x0009 .equiv SPIBEC2, 0x000A ;----- SPI1CON1 Bits ----------------------------------------------------- .equiv MSTEN, 0x0005 .equiv CKP, 0x0006 .equiv SSEN, 0x0007 .equiv CKE, 0x0008 .equiv SMP, 0x0009 .equiv MODE16, 0x000A .equiv DISSDO, 0x000B .equiv DISSCK, 0x000C .equiv PPRE0, 0x0000 .equiv PPRE1, 0x0001 .equiv SPRE0, 0x0002 .equiv SPRE1, 0x0003 .equiv SPRE2, 0x0004 ;----- SPI1CON2 Bits ----------------------------------------------------- .equiv SPIBEN, 0x0000 .equiv FRMDLY, 0x0001 .equiv FRMPOL, 0x000D .equiv SPIFSD, 0x000E .equiv FRMEN, 0x000F ;----- SPI2STAT Bits ----------------------------------------------------- ;.equiv SPIRBF, 0x0000 ;.equiv SPITBF, 0x0001 ;.equiv SRXMPT, 0x0005 ;.equiv SPIROV, 0x0006 ;.equiv SRMPT, 0x0007 ;.equiv SPISIDL, 0x000D ;.equiv SPIEN, 0x000F ;.equiv SISEL0, 0x0002 ;.equiv SISEL1, 0x0003 ;.equiv SISEL2, 0x0004 ;.equiv SPIBEC0, 0x0008 ;.equiv SPIBEC1, 0x0009 ;.equiv SPIBEC2, 0x000A ;----- SPI2CON1 Bits ----------------------------------------------------- ;.equiv MSTEN, 0x0005 ;.equiv CKP, 0x0006 ;.equiv SSEN, 0x0007 ;.equiv CKE, 0x0008 ;.equiv SMP, 0x0009 ;.equiv MODE16, 0x000A ;.equiv DISSDO, 0x000B ;.equiv DISSCK, 0x000C ;.equiv PPRE0, 0x0000 ;.equiv PPRE1, 0x0001 ;.equiv SPRE0, 0x0002 ;.equiv SPRE1, 0x0003 ;.equiv SPRE2, 0x0004 ;----- SPI2CON2 Bits ----------------------------------------------------- ;.equiv SPIBEN, 0x0000 ;.equiv FRMDLY, 0x0001 ;.equiv FRMPOL, 0x000D ;.equiv SPIFSD, 0x000E ;.equiv FRMEN, 0x000F ;----- AD1CON1 Bits ----------------------------------------------------- .equiv DONE, 0x0000 .equiv SAMP, 0x0001 .equiv ASAM, 0x0002 .equiv SIMSAM, 0x0003 .equiv SSRCG, 0x0004 .equiv AD12B, 0x000A .equiv ADDMABM, 0x000C .equiv ADSIDL, 0x000D .equiv ADON, 0x000F .equiv SSRC0, 0x0005 .equiv SSRC1, 0x0006 .equiv SSRC2, 0x0007 .equiv FORM0, 0x0008 .equiv FORM1, 0x0009 ;----- AD1CON2 Bits ----------------------------------------------------- .equiv ALTS, 0x0000 .equiv BUFM, 0x0001 .equiv BUFS, 0x0007 .equiv CSCNA, 0x000A .equiv SMPI0, 0x0002 .equiv SMPI1, 0x0003 .equiv SMPI2, 0x0004 .equiv SMPI3, 0x0005 .equiv SMPI4, 0x0006 .equiv CHPS0, 0x0008 .equiv CHPS1, 0x0009 .equiv VCFG0, 0x000D .equiv VCFG1, 0x000E .equiv VCFG2, 0x000F ;----- AD1CON3 Bits ----------------------------------------------------- .equiv ADRC, 0x000F .equiv ADCS0, 0x0000 .equiv ADCS1, 0x0001 .equiv ADCS2, 0x0002 .equiv ADCS3, 0x0003 .equiv ADCS4, 0x0004 .equiv ADCS5, 0x0005 .equiv ADCS6, 0x0006 .equiv ADCS7, 0x0007 .equiv SAMC0, 0x0008 .equiv SAMC1, 0x0009 .equiv SAMC2, 0x000A .equiv SAMC3, 0x000B .equiv SAMC4, 0x000C ;----- AD1CHS123 Bits ----------------------------------------------------- .equiv CH123SA0, 0x0000 .equiv CH123SA1, 0x0003 .equiv CH123SA2, 0x0004 .equiv CH123SB0, 0x0008 .equiv CH123SB1, 0x000B .equiv CH123SB2, 0x000C .equiv CH123NA0, 0x0001 .equiv CH123NA1, 0x0002 .equiv CH123NB0, 0x0009 .equiv CH123NB1, 0x000A ;----- AD1CHS0 Bits ----------------------------------------------------- .equiv CH0NA, 0x0007 .equiv CH0NB, 0x000F .equiv CH0SA0, 0x0000 .equiv CH0SA1, 0x0001 .equiv CH0SA2, 0x0002 .equiv CH0SA3, 0x0003 .equiv CH0SA4, 0x0004 .equiv CH0SB0, 0x0008 .equiv CH0SB1, 0x0009 .equiv CH0SB2, 0x000A .equiv CH0SB3, 0x000B .equiv CH0SB4, 0x000C ;----- AD1CSSH Bits ----------------------------------------------------- .equiv CSS16, 0x0000 .equiv CSS17, 0x0001 .equiv CSS18, 0x0002 .equiv CSS19, 0x0003 .equiv CSS24, 0x0008 .equiv CSS25, 0x0009 .equiv CSS26, 0x000A .equiv CSS27, 0x000B .equiv CSS28, 0x000C .equiv CSS29, 0x000D .equiv CSS30, 0x000E .equiv CSS31, 0x000F ;----- AD1CSSL Bits ----------------------------------------------------- .equiv CSS0, 0x0000 .equiv CSS1, 0x0001 .equiv CSS2, 0x0002 .equiv CSS3, 0x0003 .equiv CSS4, 0x0004 .equiv CSS5, 0x0005 .equiv CSS6, 0x0006 .equiv CSS7, 0x0007 .equiv CSS8, 0x0008 .equiv CSS9, 0x0009 .equiv CSS10, 0x000A .equiv CSS11, 0x000B .equiv CSS12, 0x000C .equiv CSS13, 0x000D .equiv CSS14, 0x000E .equiv CSS15, 0x000F ;----- AD1CON4 Bits ----------------------------------------------------- .equiv ADDMAEN, 0x0008 .equiv DMABL0, 0x0000 .equiv DMABL1, 0x0001 .equiv DMABL2, 0x0002 ;----- CTMUCON1 Bits ----------------------------------------------------- .equiv CTTRIG, 0x0008 .equiv IDISSEN, 0x0009 .equiv EDGSEQEN, 0x000A .equiv EDGEN, 0x000B .equiv TGEN, 0x000C .equiv CTMUSIDL, 0x000D .equiv CTMUEN, 0x000F ;----- CTMUCON2 Bits ----------------------------------------------------- .equiv EDG2POL, 0x0006 .equiv EDG2MOD, 0x0007 .equiv EDG1STAT, 0x0008 .equiv EDG2STAT, 0x0009 .equiv EDG1POL, 0x000E .equiv EDG1MOD, 0x000F .equiv EDG2SEL0, 0x0002 .equiv EDG2SEL1, 0x0003 .equiv EDG2SEL2, 0x0004 .equiv EDG2SEL3, 0x0005 .equiv EDG1SEL0, 0x000A .equiv EDG1SEL1, 0x000B .equiv EDG1SEL2, 0x000C .equiv EDG1SEL3, 0x000D ;----- CTMUICON Bits ----------------------------------------------------- .equiv IRNG0, 0x0008 .equiv IRNG1, 0x0009 .equiv ITRIM0, 0x000A .equiv ITRIM1, 0x000B .equiv ITRIM2, 0x000C .equiv ITRIM3, 0x000D .equiv ITRIM4, 0x000E .equiv ITRIM5, 0x000F ;----- SENT1CON1 Bits ----------------------------------------------------- .equiv PS, 0x0004 .equiv SPCEN, 0x0006 .equiv PPP, 0x0007 .equiv CRCEN, 0x0008 .equiv TXPOL, 0x0009 .equiv TXM, 0x000A .equiv RCVEN, 0x000B .equiv SNTSIDL, 0x000D .equiv SNTEN, 0x000F ;----- SENT1STAT Bits ----------------------------------------------------- .equiv SYNC, 0x0000 .equiv RXIDLE, 0x0001 .equiv FRMERR, 0x0002 .equiv CRCERR, 0x0003 .equiv PAUSE, 0x0007 .equiv TXEN, 0x0000 .equiv NIB0, 0x0004 .equiv NIB1, 0x0005 .equiv NIB2, 0x0006 ;----- SENT1DATL Bits ----------------------------------------------------- .equiv CRC0, 0x0000 .equiv CRC1, 0x0001 .equiv CRC2, 0x0002 .equiv CRC3, 0x0003 .equiv DATA60, 0x0004 .equiv DATA61, 0x0005 .equiv DATA62, 0x0006 .equiv DATA63, 0x0007 .equiv DATA50, 0x0008 .equiv DATA51, 0x0009 .equiv DATA52, 0x000A .equiv DATA53, 0x000B .equiv DATA40, 0x000C .equiv DATA41, 0x000D .equiv DATA42, 0x000E .equiv DATA43, 0x000F ;----- SENT1DATH Bits ----------------------------------------------------- .equiv DATA30, 0x0000 .equiv DATA31, 0x0001 .equiv DATA32, 0x0002 .equiv DATA33, 0x0003 .equiv DATA20, 0x0004 .equiv DATA21, 0x0005 .equiv DATA22, 0x0006 .equiv DATA23, 0x0007 .equiv DATA10, 0x0008 .equiv DATA11, 0x0009 .equiv DATA12, 0x000A .equiv DATA13, 0x000B .equiv STAT0, 0x000C .equiv STAT1, 0x000D .equiv STAT2, 0x000E .equiv STAT3, 0x000F ;----- SENT2CON1 Bits ----------------------------------------------------- ;.equiv PS, 0x0004 ;.equiv SPCEN, 0x0006 ;.equiv PPP, 0x0007 ;.equiv CRCEN, 0x0008 ;.equiv TXPOL, 0x0009 ;.equiv TXM, 0x000A ;.equiv RCVEN, 0x000B ;.equiv SNTSIDL, 0x000D ;.equiv SNTEN, 0x000F ;----- SENT2STAT Bits ----------------------------------------------------- ;.equiv SYNC, 0x0000 ;.equiv RXIDLE, 0x0001 ;.equiv FRMERR, 0x0002 ;.equiv CRCERR, 0x0003 ;.equiv PAUSE, 0x0007 ;.equiv TXEN, 0x0000 ;.equiv NIB0, 0x0004 ;.equiv NIB1, 0x0005 ;.equiv NIB2, 0x0006 ;----- SENT2DATL Bits ----------------------------------------------------- ;.equiv CRC0, 0x0000 ;.equiv CRC1, 0x0001 ;.equiv CRC2, 0x0002 ;.equiv CRC3, 0x0003 ;.equiv DATA60, 0x0004 ;.equiv DATA61, 0x0005 ;.equiv DATA62, 0x0006 ;.equiv DATA63, 0x0007 ;.equiv DATA50, 0x0008 ;.equiv DATA51, 0x0009 ;.equiv DATA52, 0x000A ;.equiv DATA53, 0x000B ;.equiv DATA40, 0x000C ;.equiv DATA41, 0x000D ;.equiv DATA42, 0x000E ;.equiv DATA43, 0x000F ;----- SENT2DATH Bits ----------------------------------------------------- ;.equiv DATA30, 0x0000 ;.equiv DATA31, 0x0001 ;.equiv DATA32, 0x0002 ;.equiv DATA33, 0x0003 ;.equiv DATA20, 0x0004 ;.equiv DATA21, 0x0005 ;.equiv DATA22, 0x0006 ;.equiv DATA23, 0x0007 ;.equiv DATA10, 0x0008 ;.equiv DATA11, 0x0009 ;.equiv DATA12, 0x000A ;.equiv DATA13, 0x000B ;.equiv STAT0, 0x000C ;.equiv STAT1, 0x000D ;.equiv STAT2, 0x000E ;.equiv STAT3, 0x000F ;----- RPOR0 Bits ----------------------------------------------------- .equiv RP20R0, 0x0000 .equiv RP20R1, 0x0001 .equiv RP20R2, 0x0002 .equiv RP20R3, 0x0003 .equiv RP20R4, 0x0004 .equiv RP20R5, 0x0005 .equiv RP35R0, 0x0008 .equiv RP35R1, 0x0009 .equiv RP35R2, 0x000A .equiv RP35R3, 0x000B .equiv RP35R4, 0x000C .equiv RP35R5, 0x000D ;----- RPOR1 Bits ----------------------------------------------------- .equiv RP36R0, 0x0000 .equiv RP36R1, 0x0001 .equiv RP36R2, 0x0002 .equiv RP36R3, 0x0003 .equiv RP36R4, 0x0004 .equiv RP36R5, 0x0005 .equiv RP37R0, 0x0008 .equiv RP37R1, 0x0009 .equiv RP37R2, 0x000A .equiv RP37R3, 0x000B .equiv RP37R4, 0x000C .equiv RP37R5, 0x000D ;----- RPOR2 Bits ----------------------------------------------------- .equiv RP38R0, 0x0000 .equiv RP38R1, 0x0001 .equiv RP38R2, 0x0002 .equiv RP38R3, 0x0003 .equiv RP38R4, 0x0004 .equiv RP38R5, 0x0005 .equiv RP39R0, 0x0008 .equiv RP39R1, 0x0009 .equiv RP39R2, 0x000A .equiv RP39R3, 0x000B .equiv RP39R4, 0x000C .equiv RP39R5, 0x000D ;----- RPOR3 Bits ----------------------------------------------------- .equiv RP40R0, 0x0000 .equiv RP40R1, 0x0001 .equiv RP40R2, 0x0002 .equiv RP40R3, 0x0003 .equiv RP40R4, 0x0004 .equiv RP40R5, 0x0005 .equiv RP41R0, 0x0008 .equiv RP41R1, 0x0009 .equiv RP41R2, 0x000A .equiv RP41R3, 0x000B .equiv RP41R4, 0x000C .equiv RP41R5, 0x000D ;----- RPOR4 Bits ----------------------------------------------------- .equiv RP42R0, 0x0000 .equiv RP42R1, 0x0001 .equiv RP42R2, 0x0002 .equiv RP42R3, 0x0003 .equiv RP42R4, 0x0004 .equiv RP42R5, 0x0005 .equiv RP43R0, 0x0008 .equiv RP43R1, 0x0009 .equiv RP43R2, 0x000A .equiv RP43R3, 0x000B .equiv RP43R4, 0x000C .equiv RP43R5, 0x000D ;----- RPOR10 Bits ----------------------------------------------------- .equiv RP176R0, 0x0008 .equiv RP176R1, 0x0009 .equiv RP176R2, 0x000A .equiv RP176R3, 0x000B .equiv RP176R4, 0x000C .equiv RP176R5, 0x000D ;----- RPOR11 Bits ----------------------------------------------------- .equiv RP177R0, 0x0000 .equiv RP177R1, 0x0001 .equiv RP177R2, 0x0002 .equiv RP177R3, 0x0003 .equiv RP177R4, 0x0004 .equiv RP177R5, 0x0005 .equiv RP178R0, 0x0008 .equiv RP178R1, 0x0009 .equiv RP178R2, 0x000A .equiv RP178R3, 0x000B .equiv RP178R4, 0x000C .equiv RP178R5, 0x000D ;----- RPOR12 Bits ----------------------------------------------------- .equiv RP179R0, 0x0000 .equiv RP179R1, 0x0001 .equiv RP179R2, 0x0002 .equiv RP179R3, 0x0003 .equiv RP179R4, 0x0004 .equiv RP179R5, 0x0005 .equiv RP180R0, 0x0008 .equiv RP180R1, 0x0009 .equiv RP180R2, 0x000A .equiv RP180R3, 0x000B .equiv RP180R4, 0x000C .equiv RP180R5, 0x000D ;----- RPOR13 Bits ----------------------------------------------------- .equiv RP181R0, 0x0000 .equiv RP181R1, 0x0001 .equiv RP181R2, 0x0002 .equiv RP181R3, 0x0003 .equiv RP181R4, 0x0004 .equiv RP181R5, 0x0005 ;----- RPINR0 Bits ----------------------------------------------------- .equiv INT1R0, 0x0008 .equiv INT1R1, 0x0009 .equiv INT1R2, 0x000A .equiv INT1R3, 0x000B .equiv INT1R4, 0x000C .equiv INT1R5, 0x000D .equiv INT1R6, 0x000E .equiv INT1R7, 0x000F ;----- RPINR1 Bits ----------------------------------------------------- .equiv INT2R0, 0x0000 .equiv INT2R1, 0x0001 .equiv INT2R2, 0x0002 .equiv INT2R3, 0x0003 .equiv INT2R4, 0x0004 .equiv INT2R5, 0x0005 .equiv INT2R6, 0x0006 .equiv INT2R7, 0x0007 ;----- RPINR3 Bits ----------------------------------------------------- .equiv T2CKR0, 0x0000 .equiv T2CKR1, 0x0001 .equiv T2CKR2, 0x0002 .equiv T2CKR3, 0x0003 .equiv T2CKR4, 0x0004 .equiv T2CKR5, 0x0005 .equiv T2CKR6, 0x0006 .equiv T2CKR7, 0x0007 ;----- RPINR7 Bits ----------------------------------------------------- .equiv IC1R0, 0x0000 .equiv IC1R1, 0x0001 .equiv IC1R2, 0x0002 .equiv IC1R3, 0x0003 .equiv IC1R4, 0x0004 .equiv IC1R5, 0x0005 .equiv IC1R6, 0x0006 .equiv IC1R7, 0x0007 .equiv IC2R0, 0x0008 .equiv IC2R1, 0x0009 .equiv IC2R2, 0x000A .equiv IC2R3, 0x000B .equiv IC2R4, 0x000C .equiv IC2R5, 0x000D .equiv IC2R6, 0x000E .equiv IC2R7, 0x000F ;----- RPINR8 Bits ----------------------------------------------------- .equiv IC3R0, 0x0000 .equiv IC3R1, 0x0001 .equiv IC3R2, 0x0002 .equiv IC3R3, 0x0003 .equiv IC3R4, 0x0004 .equiv IC3R5, 0x0005 .equiv IC3R6, 0x0006 .equiv IC3R7, 0x0007 .equiv IC4R0, 0x0008 .equiv IC4R1, 0x0009 .equiv IC4R2, 0x000A .equiv IC4R3, 0x000B .equiv IC4R4, 0x000C .equiv IC4R5, 0x000D .equiv IC4R6, 0x000E .equiv IC4R7, 0x000F ;----- RPINR11 Bits ----------------------------------------------------- .equiv OCFAR0, 0x0000 .equiv OCFAR1, 0x0001 .equiv OCFAR2, 0x0002 .equiv OCFAR3, 0x0003 .equiv OCFAR4, 0x0004 .equiv OCFAR5, 0x0005 .equiv OCFAR6, 0x0006 .equiv OCFAR7, 0x0007 ;----- RPINR12 Bits ----------------------------------------------------- .equiv FLT1R0, 0x0000 .equiv FLT1R1, 0x0001 .equiv FLT1R2, 0x0002 .equiv FLT1R3, 0x0003 .equiv FLT1R4, 0x0004 .equiv FLT1R5, 0x0005 .equiv FLT1R6, 0x0006 .equiv FLT1R7, 0x0007 .equiv FLT2R0, 0x0008 .equiv FLT2R1, 0x0009 .equiv FLT2R2, 0x000A .equiv FLT2R3, 0x000B .equiv FLT2R4, 0x000C .equiv FLT2R5, 0x000D .equiv FLT2R6, 0x000E .equiv FLT2R7, 0x000F ;----- RPINR18 Bits ----------------------------------------------------- .equiv U1RXR0, 0x0000 .equiv U1RXR1, 0x0001 .equiv U1RXR2, 0x0002 .equiv U1RXR3, 0x0003 .equiv U1RXR4, 0x0004 .equiv U1RXR5, 0x0005 .equiv U1RXR6, 0x0006 .equiv U1RXR7, 0x0007 ;----- RPINR19 Bits ----------------------------------------------------- .equiv U2RXR0, 0x0000 .equiv U2RXR1, 0x0001 .equiv U2RXR2, 0x0002 .equiv U2RXR3, 0x0003 .equiv U2RXR4, 0x0004 .equiv U2RXR5, 0x0005 .equiv U2RXR6, 0x0006 .equiv U2RXR7, 0x0007 ;----- RPINR22 Bits ----------------------------------------------------- .equiv SDI2R0, 0x0000 .equiv SDI2R1, 0x0001 .equiv SDI2R2, 0x0002 .equiv SDI2R3, 0x0003 .equiv SDI2R4, 0x0004 .equiv SDI2R5, 0x0005 .equiv SDI2R6, 0x0006 .equiv SDI2R7, 0x0007 .equiv SCK2R0, 0x0008 .equiv SCK2R1, 0x0009 .equiv SCK2R2, 0x000A .equiv SCK2R3, 0x000B .equiv SCK2R4, 0x000C .equiv SCK2R5, 0x000D .equiv SCK2R6, 0x000E .equiv SCK2R7, 0x000F ;----- RPINR23 Bits ----------------------------------------------------- .equiv SS2R0, 0x0000 .equiv SS2R1, 0x0001 .equiv SS2R2, 0x0002 .equiv SS2R3, 0x0003 .equiv SS2R4, 0x0004 .equiv SS2R5, 0x0005 .equiv SS2R6, 0x0006 .equiv SS2R7, 0x0007 ;----- RPINR37 Bits ----------------------------------------------------- .equiv SYNCI1R0, 0x0008 .equiv SYNCI1R1, 0x0009 .equiv SYNCI1R2, 0x000A .equiv SYNCI1R3, 0x000B .equiv SYNCI1R4, 0x000C .equiv SYNCI1R5, 0x000D .equiv SYNCI1R6, 0x000E .equiv SYNCI1R7, 0x000F ;----- RPINR38 Bits ----------------------------------------------------- .equiv DTCMP1R0, 0x0008 .equiv DTCMP1R1, 0x0009 .equiv DTCMP1R2, 0x000A .equiv DTCMP1R3, 0x000B .equiv DTCMP1R4, 0x000C .equiv DTCMP1R5, 0x000D .equiv DTCMP1R6, 0x000E .equiv DTCMP1R7, 0x000F ;----- RPINR39 Bits ----------------------------------------------------- .equiv DTCMP2R0, 0x0000 .equiv DTCMP2R1, 0x0001 .equiv DTCMP2R2, 0x0002 .equiv DTCMP2R3, 0x0003 .equiv DTCMP2R4, 0x0004 .equiv DTCMP2R5, 0x0005 .equiv DTCMP2R6, 0x0006 .equiv DTCMP2R7, 0x0007 .equiv DTCMP3R0, 0x0008 .equiv DTCMP3R1, 0x0009 .equiv DTCMP3R2, 0x000A .equiv DTCMP3R3, 0x000B .equiv DTCMP3R4, 0x000C .equiv DTCMP3R5, 0x000D .equiv DTCMP3R6, 0x000E .equiv DTCMP3R7, 0x000F ;----- RPINR44 Bits ----------------------------------------------------- .equiv SENT1R0, 0x0008 .equiv SENT1R1, 0x0009 .equiv SENT1R2, 0x000A .equiv SENT1R3, 0x000B .equiv SENT1R4, 0x000C .equiv SENT1R5, 0x000D .equiv SENT1R6, 0x000E .equiv SENT1R7, 0x000F ;----- RPINR45 Bits ----------------------------------------------------- .equiv SENT2R0, 0x0000 .equiv SENT2R1, 0x0001 .equiv SENT2R2, 0x0002 .equiv SENT2R3, 0x0003 .equiv SENT2R4, 0x0004 .equiv SENT2R5, 0x0005 .equiv SENT2R6, 0x0006 .equiv SENT2R7, 0x0007 ;----- DMTCON Bits ----------------------------------------------------- .equiv ON, 0x000F ;----- DMTSTAT Bits ----------------------------------------------------- .equiv WINOPN, 0x0000 .equiv DMTEVENT, 0x0005 .equiv BAD2, 0x0006 .equiv BAD1, 0x0007 ;----- NVMCON Bits ----------------------------------------------------- .equiv URERR, 0x0008 .equiv RPDF, 0x0009 .equiv NVMSIDL, 0x000C .equiv WRERR, 0x000D .equiv WREN, 0x000E .equiv WR, 0x000F .equiv NVMOP0, 0x0000 .equiv NVMOP1, 0x0001 .equiv NVMOP2, 0x0002 .equiv NVMOP3, 0x0003 ;----- RCON Bits ----------------------------------------------------- .equiv POR, 0x0000 .equiv BOR, 0x0001 .equiv IDLE, 0x0002 .equiv SLEEP, 0x0003 .equiv WDTO, 0x0004 .equiv SWDTEN, 0x0005 .equiv SWR, 0x0006 .equiv EXTR, 0x0007 .equiv VREGS, 0x0008 .equiv CM, 0x0009 .equiv VREGSF, 0x000B .equiv IOPUWR, 0x000E .equiv TRAPR, 0x000F ;----- OSCCON Bits ----------------------------------------------------- .equiv OSWEN, 0x0000 .equiv CF, 0x0003 .equiv LOCK, 0x0005 .equiv IOLOCK, 0x0006 .equiv CLKLOCK, 0x0007 .equiv NOSC0, 0x0008 .equiv NOSC1, 0x0009 .equiv NOSC2, 0x000A .equiv COSC0, 0x000C .equiv COSC1, 0x000D .equiv COSC2, 0x000E ;----- CLKDIV Bits ----------------------------------------------------- .equiv DOZEN, 0x000B .equiv ROI, 0x000F .equiv PLLPRE0, 0x0000 .equiv PLLPRE1, 0x0001 .equiv PLLPRE2, 0x0002 .equiv PLLPRE3, 0x0003 .equiv PLLPRE4, 0x0004 .equiv PLLPOST0, 0x0006 .equiv PLLPOST1, 0x0007 .equiv FRCDIV0, 0x0008 .equiv FRCDIV1, 0x0009 .equiv FRCDIV2, 0x000A .equiv DOZE0, 0x000C .equiv DOZE1, 0x000D .equiv DOZE2, 0x000E ;----- PLLFBD Bits ----------------------------------------------------- .equiv PLLDIV0, 0x0000 .equiv PLLDIV1, 0x0001 .equiv PLLDIV2, 0x0002 .equiv PLLDIV3, 0x0003 .equiv PLLDIV4, 0x0004 .equiv PLLDIV5, 0x0005 .equiv PLLDIV6, 0x0006 .equiv PLLDIV7, 0x0007 .equiv PLLDIV8, 0x0008 ;----- OSCTUN Bits ----------------------------------------------------- .equiv TUN0, 0x0000 .equiv TUN1, 0x0001 .equiv TUN2, 0x0002 .equiv TUN3, 0x0003 .equiv TUN4, 0x0004 .equiv TUN5, 0x0005 ;----- REFOCON Bits ----------------------------------------------------- .equiv ROSEL, 0x000C .equiv ROSSLP, 0x000D .equiv ROON, 0x000F .equiv RODIV0, 0x0008 .equiv RODIV1, 0x0009 .equiv RODIV2, 0x000A .equiv RODIV3, 0x000B ;----- PMD1 Bits ----------------------------------------------------- .equiv AD1MD, 0x0000 .equiv SPI1MD, 0x0003 .equiv SPI2MD, 0x0004 .equiv U1MD, 0x0005 .equiv U2MD, 0x0006 .equiv I2C1MD, 0x0007 .equiv PWMMD, 0x0009 .equiv T1MD, 0x000B .equiv T2MD, 0x000C .equiv T3MD, 0x000D .equiv T4MD, 0x000E .equiv T5MD, 0x000F ;----- PMD2 Bits ----------------------------------------------------- .equiv OC1MD, 0x0000 .equiv OC2MD, 0x0001 .equiv OC3MD, 0x0002 .equiv OC4MD, 0x0003 .equiv IC1MD, 0x0008 .equiv IC2MD, 0x0009 .equiv IC3MD, 0x000A .equiv IC4MD, 0x000B ;----- PMD3 Bits ----------------------------------------------------- .equiv CMPMD, 0x000A ;----- PMD4 Bits ----------------------------------------------------- .equiv CTMUMD, 0x0002 .equiv REFOMD, 0x0003 ;----- PMD6 Bits ----------------------------------------------------- .equiv PWM1MD, 0x0008 .equiv PWM2MD, 0x0009 .equiv PWM3MD, 0x000A ;----- PMD7 Bits ----------------------------------------------------- .equiv DMA0MD, 0x0004 .equiv DMA1MD, 0x0004 .equiv DMA2MD, 0x0004 .equiv DMA3MD, 0x0004 ;----- PMD8 Bits ----------------------------------------------------- .equiv DMTMD, 0x0008 .equiv SENT1MD, 0x000B .equiv SENT2MD, 0x000C ;----- IFS0 Bits ----------------------------------------------------- .equiv INT0IF, 0x0000 .equiv IC1IF, 0x0001 .equiv OC1IF, 0x0002 .equiv T1IF, 0x0003 .equiv DMA0IF, 0x0004 .equiv IC2IF, 0x0005 .equiv OC2IF, 0x0006 .equiv T2IF, 0x0007 .equiv T3IF, 0x0008 .equiv SPI1EIF, 0x0009 .equiv SPI1IF, 0x000A .equiv U1RXIF, 0x000B .equiv U1TXIF, 0x000C .equiv AD1IF, 0x000D .equiv DMA1IF, 0x000E .equiv NVMIF, 0x000F ;----- IFS1 Bits ----------------------------------------------------- .equiv SI2C1IF, 0x0000 .equiv MI2C1IF, 0x0001 .equiv CMIF, 0x0002 .equiv CNIF, 0x0003 .equiv INT1IF, 0x0004 .equiv DMA2IF, 0x0008 .equiv OC3IF, 0x0009 .equiv OC4IF, 0x000A .equiv T4IF, 0x000B .equiv T5IF, 0x000C .equiv INT2IF, 0x000D .equiv U2RXIF, 0x000E .equiv U2TXIF, 0x000F .equiv CMPIF, 0x0002 ;----- IFS2 Bits ----------------------------------------------------- .equiv SPI2EIF, 0x0000 .equiv SPI2IF, 0x0001 .equiv DMA3IF, 0x0004 .equiv IC3IF, 0x0005 .equiv IC4IF, 0x0006 ;----- IFS3 Bits ----------------------------------------------------- .equiv PSEMIF, 0x0009 ;----- IFS4 Bits ----------------------------------------------------- .equiv U1EIF, 0x0001 .equiv U2EIF, 0x0002 .equiv CTMUIF, 0x000D ;----- IFS5 Bits ----------------------------------------------------- .equiv PWM1IF, 0x000E .equiv PWM2IF, 0x000F ;----- IFS6 Bits ----------------------------------------------------- .equiv PWM3IF, 0x0000 ;----- IFS8 Bits ----------------------------------------------------- .equiv ICDIF, 0x000E ;----- IFS10 Bits ----------------------------------------------------- .equiv I2C1BCIF, 0x000D ;----- IFS11 Bits ----------------------------------------------------- .equiv SENT1EIF, 0x0006 .equiv SENT1IF, 0x0007 .equiv SENT2EIF, 0x0008 .equiv SENT2IF, 0x0009 .equiv ECCSBEIF, 0x000A ;----- IEC0 Bits ----------------------------------------------------- .equiv INT0IE, 0x0000 .equiv IC1IE, 0x0001 .equiv OC1IE, 0x0002 .equiv T1IE, 0x0003 .equiv DMA0IE, 0x0004 .equiv IC2IE, 0x0005 .equiv OC2IE, 0x0006 .equiv T2IE, 0x0007 .equiv T3IE, 0x0008 .equiv SPI1EIE, 0x0009 .equiv SPI1IE, 0x000A .equiv U1RXIE, 0x000B .equiv U1TXIE, 0x000C .equiv AD1IE, 0x000D .equiv DMA1IE, 0x000E .equiv NVMIE, 0x000F ;----- IEC1 Bits ----------------------------------------------------- .equiv SI2C1IE, 0x0000 .equiv MI2C1IE, 0x0001 .equiv CMIE, 0x0002 .equiv CNIE, 0x0003 .equiv INT1IE, 0x0004 .equiv DMA2IE, 0x0008 .equiv OC3IE, 0x0009 .equiv OC4IE, 0x000A .equiv T4IE, 0x000B .equiv T5IE, 0x000C .equiv INT2IE, 0x000D .equiv U2RXIE, 0x000E .equiv U2TXIE, 0x000F .equiv CMPIE, 0x0002 ;----- IEC2 Bits ----------------------------------------------------- .equiv SPI2EIE, 0x0000 .equiv SPI2IE, 0x0001 .equiv DMA3IE, 0x0004 .equiv IC3IE, 0x0005 .equiv IC4IE, 0x0006 ;----- IEC3 Bits ----------------------------------------------------- .equiv PSEMIE, 0x0009 ;----- IEC4 Bits ----------------------------------------------------- .equiv U1EIE, 0x0001 .equiv U2EIE, 0x0002 .equiv CTMUIE, 0x000D ;----- IEC5 Bits ----------------------------------------------------- .equiv PWM1IE, 0x000E .equiv PWM2IE, 0x000F ;----- IEC6 Bits ----------------------------------------------------- .equiv PWM3IE, 0x0000 ;----- IEC8 Bits ----------------------------------------------------- .equiv ICDIE, 0x000E ;----- IEC10 Bits ----------------------------------------------------- .equiv I2C1BCIE, 0x000D ;----- IEC11 Bits ----------------------------------------------------- .equiv SENT1EIE, 0x0006 .equiv SENT1IE, 0x0007 .equiv SENT2EIE, 0x0008 .equiv SENT2IE, 0x0009 .equiv ECCSBEIE, 0x000A ;----- IPC0 Bits ----------------------------------------------------- .equiv INT0IP0, 0x0000 .equiv INT0IP1, 0x0001 .equiv INT0IP2, 0x0002 .equiv IC1IP0, 0x0004 .equiv IC1IP1, 0x0005 .equiv IC1IP2, 0x0006 .equiv OC1IP0, 0x0008 .equiv OC1IP1, 0x0009 .equiv OC1IP2, 0x000A .equiv T1IP0, 0x000C .equiv T1IP1, 0x000D .equiv T1IP2, 0x000E ;----- IPC1 Bits ----------------------------------------------------- .equiv DMA0IP0, 0x0000 .equiv DMA0IP1, 0x0001 .equiv DMA0IP2, 0x0002 .equiv IC2IP0, 0x0004 .equiv IC2IP1, 0x0005 .equiv IC2IP2, 0x0006 .equiv OC2IP0, 0x0008 .equiv OC2IP1, 0x0009 .equiv OC2IP2, 0x000A .equiv T2IP0, 0x000C .equiv T2IP1, 0x000D .equiv T2IP2, 0x000E ;----- IPC2 Bits ----------------------------------------------------- .equiv T3IP0, 0x0000 .equiv T3IP1, 0x0001 .equiv T3IP2, 0x0002 .equiv SPI1EIP0, 0x0004 .equiv SPI1EIP1, 0x0005 .equiv SPI1EIP2, 0x0006 .equiv SPI1IP0, 0x0008 .equiv SPI1IP1, 0x0009 .equiv SPI1IP2, 0x000A .equiv U1RXIP0, 0x000C .equiv U1RXIP1, 0x000D .equiv U1RXIP2, 0x000E ;----- IPC3 Bits ----------------------------------------------------- .equiv U1TXIP0, 0x0000 .equiv U1TXIP1, 0x0001 .equiv U1TXIP2, 0x0002 .equiv AD1IP0, 0x0004 .equiv AD1IP1, 0x0005 .equiv AD1IP2, 0x0006 .equiv DMA1IP0, 0x0008 .equiv DMA1IP1, 0x0009 .equiv DMA1IP2, 0x000A .equiv NVMIP0, 0x000C .equiv NVMIP1, 0x000D .equiv NVMIP2, 0x000E ;----- IPC4 Bits ----------------------------------------------------- .equiv SI2C1IP0, 0x0000 .equiv SI2C1IP1, 0x0001 .equiv SI2C1IP2, 0x0002 .equiv MI2C1IP0, 0x0004 .equiv MI2C1IP1, 0x0005 .equiv MI2C1IP2, 0x0006 .equiv CMIP0, 0x0008 .equiv CMIP1, 0x0009 .equiv CMIP2, 0x000A .equiv CNIP0, 0x000C .equiv CNIP1, 0x000D .equiv CNIP2, 0x000E ;----- IPC5 Bits ----------------------------------------------------- .equiv INT1IP0, 0x0000 .equiv INT1IP1, 0x0001 .equiv INT1IP2, 0x0002 .equiv AD2IP0, 0x0004 .equiv AD2IP1, 0x0005 .equiv AD2IP2, 0x0006 .equiv IC7IP0, 0x0008 .equiv IC7IP1, 0x0009 .equiv IC7IP2, 0x000A .equiv IC8IP0, 0x000C .equiv IC8IP1, 0x000D .equiv IC8IP2, 0x000E ;----- IPC6 Bits ----------------------------------------------------- .equiv DMA2IP0, 0x0000 .equiv DMA2IP1, 0x0001 .equiv DMA2IP2, 0x0002 .equiv OC3IP0, 0x0004 .equiv OC3IP1, 0x0005 .equiv OC3IP2, 0x0006 .equiv OC4IP0, 0x0008 .equiv OC4IP1, 0x0009 .equiv OC4IP2, 0x000A .equiv T4IP0, 0x000C .equiv T4IP1, 0x000D .equiv T4IP2, 0x000E ;----- IPC7 Bits ----------------------------------------------------- .equiv T5IP0, 0x0000 .equiv T5IP1, 0x0001 .equiv T5IP2, 0x0002 .equiv INT2IP0, 0x0004 .equiv INT2IP1, 0x0005 .equiv INT2IP2, 0x0006 .equiv U2RXIP0, 0x0008 .equiv U2RXIP1, 0x0009 .equiv U2RXIP2, 0x000A .equiv U2TXIP0, 0x000C .equiv U2TXIP1, 0x000D .equiv U2TXIP2, 0x000E ;----- IPC8 Bits ----------------------------------------------------- .equiv SPI2EIP0, 0x0000 .equiv SPI2EIP1, 0x0001 .equiv SPI2EIP2, 0x0002 .equiv SPI2IP0, 0x0004 .equiv SPI2IP1, 0x0005 .equiv SPI2IP2, 0x0006 ;----- IPC9 Bits ----------------------------------------------------- .equiv DMA3IP0, 0x0000 .equiv DMA3IP1, 0x0001 .equiv DMA3IP2, 0x0002 .equiv IC3IP0, 0x0004 .equiv IC3IP1, 0x0005 .equiv IC3IP2, 0x0006 .equiv IC4IP0, 0x0008 .equiv IC4IP1, 0x0009 .equiv IC4IP2, 0x000A .equiv IC5IP0, 0x000C .equiv IC5IP1, 0x000D .equiv IC5IP2, 0x000E ;----- IPC14 Bits ----------------------------------------------------- .equiv C2IP0, 0x0000 .equiv C2IP1, 0x0001 .equiv C2IP2, 0x0002 .equiv PSEMIP0, 0x0004 .equiv PSEMIP1, 0x0005 .equiv PSEMIP2, 0x0006 .equiv QEI1IP0, 0x0008 .equiv QEI1IP1, 0x0009 .equiv QEI1IP2, 0x000A .equiv DCIEIP0, 0x000C .equiv DCIEIP1, 0x000D .equiv DCIEIP2, 0x000E ;----- IPC16 Bits ----------------------------------------------------- .equiv U1EIP0, 0x0004 .equiv U1EIP1, 0x0005 .equiv U1EIP2, 0x0006 .equiv U2EIP0, 0x0008 .equiv U2EIP1, 0x0009 .equiv U2EIP2, 0x000A .equiv CRCIP0, 0x000C .equiv CRCIP1, 0x000D .equiv CRCIP2, 0x000E ;----- IPC19 Bits ----------------------------------------------------- .equiv CTMUIP0, 0x0004 .equiv CTMUIP1, 0x0005 .equiv CTMUIP2, 0x0006 ;----- IPC23 Bits ----------------------------------------------------- .equiv OC9IP0, 0x0000 .equiv OC9IP1, 0x0001 .equiv OC9IP2, 0x0002 .equiv IC9IP0, 0x0004 .equiv IC9IP1, 0x0005 .equiv IC9IP2, 0x0006 .equiv PWM1IP0, 0x0008 .equiv PWM1IP1, 0x0009 .equiv PWM1IP2, 0x000A .equiv PWM2IP0, 0x000C .equiv PWM2IP1, 0x000D .equiv PWM2IP2, 0x000E ;----- IPC24 Bits ----------------------------------------------------- .equiv PWM3IP0, 0x0000 .equiv PWM3IP1, 0x0001 .equiv PWM3IP2, 0x0002 .equiv PWM4IP0, 0x0004 .equiv PWM4IP1, 0x0005 .equiv PWM4IP2, 0x0006 .equiv PWM5IP0, 0x0008 .equiv PWM5IP1, 0x0009 .equiv PWM5IP2, 0x000A .equiv PWM6IP0, 0x000C .equiv PWM6IP1, 0x000D .equiv PWM6IP2, 0x000E ;----- IPC35 Bits ----------------------------------------------------- .equiv OC16IP0, 0x0000 .equiv OC16IP1, 0x0001 .equiv OC16IP2, 0x0002 .equiv IC16IP0, 0x0004 .equiv IC16IP1, 0x0005 .equiv IC16IP2, 0x0006 .equiv ICDIP0, 0x0008 .equiv ICDIP1, 0x0009 .equiv ICDIP2, 0x000A ;----- IPC43 Bits ----------------------------------------------------- .equiv I2C1BCIP0, 0x0004 .equiv I2C1BCIP1, 0x0005 .equiv I2C1BCIP2, 0x0006 ;----- IPC45 Bits ----------------------------------------------------- .equiv SENT1EIP0, 0x0008 .equiv SENT1EIP1, 0x0009 .equiv SENT1EIP2, 0x000A .equiv SENT1IP0, 0x000C .equiv SENT1IP1, 0x000D .equiv SENT1IP2, 0x000E ;----- IPC46 Bits ----------------------------------------------------- .equiv SENT2EIP0, 0x0000 .equiv SENT2EIP1, 0x0001 .equiv SENT2EIP2, 0x0002 .equiv SENT2IP0, 0x0004 .equiv SENT2IP1, 0x0005 .equiv SENT2IP2, 0x0006 .equiv ECCSBEIP0, 0x0008 .equiv ECCSBEIP1, 0x0009 .equiv ECCSBEIP2, 0x000A ;----- INTCON1 Bits ----------------------------------------------------- .equiv OSCFAIL, 0x0001 .equiv STKERR, 0x0002 .equiv ADDRERR, 0x0003 .equiv MATHERR, 0x0004 .equiv DMACERR, 0x0005 .equiv DIV0ERR, 0x0006 .equiv SFTACERR, 0x0007 .equiv COVTE, 0x0008 .equiv OVBTE, 0x0009 .equiv OVATE, 0x000A .equiv COVBERR, 0x000B .equiv COVAERR, 0x000C .equiv OVBERR, 0x000D .equiv OVAERR, 0x000E .equiv NSTDIS, 0x000F ;----- INTCON2 Bits ----------------------------------------------------- .equiv INT0EP, 0x0000 .equiv INT1EP, 0x0001 .equiv INT2EP, 0x0002 .equiv AIVTEN, 0x0008 .equiv SWTRAP, 0x000D .equiv DISI, 0x000E .equiv GIE, 0x000F ;----- INTCON3 Bits ----------------------------------------------------- .equiv DOOVR, 0x0004 .equiv DAE, 0x0005 .equiv NAE, 0x0008 .equiv DMT, 0x000F ;----- INTCON4 Bits ----------------------------------------------------- .equiv SGHT, 0x0000 .equiv ECCDBE, 0x0001 ;----- INTTREG Bits ----------------------------------------------------- .equiv VECNUM0, 0x0000 .equiv VECNUM1, 0x0001 .equiv VECNUM2, 0x0002 .equiv VECNUM3, 0x0003 .equiv VECNUM4, 0x0004 .equiv VECNUM5, 0x0005 .equiv VECNUM6, 0x0006 .equiv VECNUM7, 0x0007 .equiv ILR0, 0x0008 .equiv ILR1, 0x0009 .equiv ILR2, 0x000A .equiv ILR3, 0x000B ;----- OC1CON1 Bits ----------------------------------------------------- .equiv TRIGMODE, 0x0003 .equiv OCFLTA, 0x0004 .equiv ENFLTA, 0x0007 .equiv OCSIDL, 0x000D .equiv OCM0, 0x0000 .equiv OCM1, 0x0001 .equiv OCM2, 0x0002 .equiv OCTSEL0, 0x000A .equiv OCTSEL1, 0x000B .equiv OCTSEL2, 0x000C .equiv OCFLT0, 0x0004 .equiv ENFLT0, 0x0007 ;----- OC1CON2 Bits ----------------------------------------------------- .equiv OCTRIS, 0x0005 ;.equiv TRIGSTAT, 0x0006 .equiv OCTRIG, 0x0007 .equiv OC32, 0x0008 .equiv OCINV, 0x000C .equiv FLTTRIEN, 0x000D .equiv FLTOUT, 0x000E .equiv FLTMD, 0x000F ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 .equiv FLTMODE, 0x000E ;----- OC2CON1 Bits ----------------------------------------------------- ;.equiv TRIGMODE, 0x0003 ;.equiv OCFLTA, 0x0004 ;.equiv ENFLTA, 0x0007 ;.equiv OCSIDL, 0x000D ;.equiv OCM0, 0x0000 ;.equiv OCM1, 0x0001 ;.equiv OCM2, 0x0002 ;.equiv OCTSEL0, 0x000A ;.equiv OCTSEL1, 0x000B ;.equiv OCTSEL2, 0x000C ;.equiv OCFLT0, 0x0004 ;.equiv ENFLT0, 0x0007 ;----- OC2CON2 Bits ----------------------------------------------------- ;.equiv OCTRIS, 0x0005 ;.equiv TRIGSTAT, 0x0006 ;.equiv OCTRIG, 0x0007 ;.equiv OC32, 0x0008 ;.equiv OCINV, 0x000C ;.equiv FLTTRIEN, 0x000D ;.equiv FLTOUT, 0x000E ;.equiv FLTMD, 0x000F ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;.equiv FLTMODE, 0x000E ;----- OC3CON1 Bits ----------------------------------------------------- ;.equiv TRIGMODE, 0x0003 ;.equiv OCFLTA, 0x0004 ;.equiv ENFLTA, 0x0007 ;.equiv OCSIDL, 0x000D ;.equiv OCM0, 0x0000 ;.equiv OCM1, 0x0001 ;.equiv OCM2, 0x0002 ;.equiv OCTSEL0, 0x000A ;.equiv OCTSEL1, 0x000B ;.equiv OCTSEL2, 0x000C ;.equiv OCFLT0, 0x0004 ;.equiv ENFLT0, 0x0007 ;----- OC3CON2 Bits ----------------------------------------------------- ;.equiv OCTRIS, 0x0005 ;.equiv TRIGSTAT, 0x0006 ;.equiv OCTRIG, 0x0007 ;.equiv OC32, 0x0008 ;.equiv OCINV, 0x000C ;.equiv FLTTRIEN, 0x000D ;.equiv FLTOUT, 0x000E ;.equiv FLTMD, 0x000F ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;.equiv FLTMODE, 0x000E ;----- OC4CON1 Bits ----------------------------------------------------- ;.equiv TRIGMODE, 0x0003 ;.equiv OCFLTA, 0x0004 ;.equiv ENFLTA, 0x0007 ;.equiv OCSIDL, 0x000D ;.equiv OCM0, 0x0000 ;.equiv OCM1, 0x0001 ;.equiv OCM2, 0x0002 ;.equiv OCTSEL0, 0x000A ;.equiv OCTSEL1, 0x000B ;.equiv OCTSEL2, 0x000C ;.equiv OCFLT0, 0x0004 ;.equiv ENFLT0, 0x0007 ;----- OC4CON2 Bits ----------------------------------------------------- ;.equiv OCTRIS, 0x0005 ;.equiv TRIGSTAT, 0x0006 ;.equiv OCTRIG, 0x0007 ;.equiv OC32, 0x0008 ;.equiv OCINV, 0x000C ;.equiv FLTTRIEN, 0x000D ;.equiv FLTOUT, 0x000E ;.equiv FLTMD, 0x000F ;.equiv SYNCSEL0, 0x0000 ;.equiv SYNCSEL1, 0x0001 ;.equiv SYNCSEL2, 0x0002 ;.equiv SYNCSEL3, 0x0003 ;.equiv SYNCSEL4, 0x0004 ;.equiv FLTMODE, 0x000E ;----- CMSTAT Bits ----------------------------------------------------- .equiv C1OUT, 0x0000 .equiv C2OUT, 0x0001 .equiv C3OUT, 0x0002 .equiv C4OUT, 0x0003 .equiv C5OUT, 0x0004 .equiv C1EVT, 0x0008 .equiv C2EVT, 0x0009 .equiv C3EVT, 0x000A .equiv C4EVT, 0x000B .equiv C5EVT, 0x000C .equiv PSIDL, 0x000F ;----- CVR1CON Bits ----------------------------------------------------- .equiv VREFSEL, 0x000A .equiv CVRSS, 0x000B .equiv CVROE, 0x000E .equiv CVREN, 0x000F .equiv CVR0, 0x0000 .equiv CVR1, 0x0001 .equiv CVR2, 0x0002 .equiv CVR3, 0x0003 .equiv CVR4, 0x0004 .equiv CVR5, 0x0005 .equiv CVR6, 0x0006 ;----- CM1CON Bits ----------------------------------------------------- .equiv CREF, 0x0004 .equiv COUT, 0x0008 .equiv CEVT, 0x0009 .equiv OPAEN, 0x000A .equiv CPOL, 0x000D .equiv COE, 0x000E .equiv CON, 0x000F .equiv CCH0, 0x0000 .equiv CCH1, 0x0001 .equiv EVPOL0, 0x0006 .equiv EVPOL1, 0x0007 .equiv CEN, 0x000F ;----- CM1MSKSRC Bits ----------------------------------------------------- .equiv SELSRCA0, 0x0000 .equiv SELSRCA1, 0x0001 .equiv SELSRCA2, 0x0002 .equiv SELSRCA3, 0x0003 .equiv SELSRCB0, 0x0004 .equiv SELSRCB1, 0x0005 .equiv SELSRCB2, 0x0006 .equiv SELSRCB3, 0x0007 .equiv SELSRCC0, 0x0008 .equiv SELSRCC1, 0x0009 .equiv SELSRCC2, 0x000A .equiv SELSRCC3, 0x000B ;----- CM1MSKCON Bits ----------------------------------------------------- .equiv AANEN, 0x0000 .equiv AAEN, 0x0001 .equiv ABNEN, 0x0002 .equiv ABEN, 0x0003 .equiv ACNEN, 0x0004 .equiv ACEN, 0x0005 .equiv PAGS, 0x0006 .equiv NAGS, 0x0007 .equiv OANEN, 0x0008 .equiv OAEN, 0x0009 .equiv OBNEN, 0x000A .equiv OBEN, 0x000B .equiv OCNEN, 0x000C .equiv OCEN, 0x000D .equiv HLMS, 0x000F ;----- CM1FLTR Bits ----------------------------------------------------- .equiv CFLTREN, 0x0003 .equiv CFDIV0, 0x0000 .equiv CFDIV1, 0x0001 .equiv CFDIV2, 0x0002 .equiv CFSEL0, 0x0004 .equiv CFSEL1, 0x0005 .equiv CFSEL2, 0x0006 ;----- CM2CON Bits ----------------------------------------------------- ;.equiv CREF, 0x0004 ;.equiv COUT, 0x0008 ;.equiv CEVT, 0x0009 ;.equiv OPAEN, 0x000A ;.equiv CPOL, 0x000D ;.equiv COE, 0x000E ;.equiv CON, 0x000F ;.equiv CCH0, 0x0000 ;.equiv CCH1, 0x0001 ;.equiv EVPOL0, 0x0006 ;.equiv EVPOL1, 0x0007 ;.equiv CEN, 0x000F ;----- CM2MSKSRC Bits ----------------------------------------------------- ;.equiv SELSRCA0, 0x0000 ;.equiv SELSRCA1, 0x0001 ;.equiv SELSRCA2, 0x0002 ;.equiv SELSRCA3, 0x0003 ;.equiv SELSRCB0, 0x0004 ;.equiv SELSRCB1, 0x0005 ;.equiv SELSRCB2, 0x0006 ;.equiv SELSRCB3, 0x0007 ;.equiv SELSRCC0, 0x0008 ;.equiv SELSRCC1, 0x0009 ;.equiv SELSRCC2, 0x000A ;.equiv SELSRCC3, 0x000B ;----- CM2MSKCON Bits ----------------------------------------------------- ;.equiv AANEN, 0x0000 ;.equiv AAEN, 0x0001 ;.equiv ABNEN, 0x0002 ;.equiv ABEN, 0x0003 ;.equiv ACNEN, 0x0004 ;.equiv ACEN, 0x0005 ;.equiv PAGS, 0x0006 ;.equiv NAGS, 0x0007 ;.equiv OANEN, 0x0008 ;.equiv OAEN, 0x0009 ;.equiv OBNEN, 0x000A ;.equiv OBEN, 0x000B ;.equiv OCNEN, 0x000C ;.equiv OCEN, 0x000D ;.equiv HLMS, 0x000F ;----- CM2FLTR Bits ----------------------------------------------------- ;.equiv CFLTREN, 0x0003 ;.equiv CFDIV0, 0x0000 ;.equiv CFDIV1, 0x0001 ;.equiv CFDIV2, 0x0002 ;.equiv CFSEL0, 0x0004 ;.equiv CFSEL1, 0x0005 ;.equiv CFSEL2, 0x0006 ;----- CM3CON Bits ----------------------------------------------------- ;.equiv CREF, 0x0004 ;.equiv COUT, 0x0008 ;.equiv CEVT, 0x0009 ;.equiv OPAEN, 0x000A ;.equiv CPOL, 0x000D ;.equiv COE, 0x000E ;.equiv CON, 0x000F ;.equiv CCH0, 0x0000 ;.equiv CCH1, 0x0001 ;.equiv EVPOL0, 0x0006 ;.equiv EVPOL1, 0x0007 ;.equiv CEN, 0x000F ;----- CM3MSKSRC Bits ----------------------------------------------------- ;.equiv SELSRCA0, 0x0000 ;.equiv SELSRCA1, 0x0001 ;.equiv SELSRCA2, 0x0002 ;.equiv SELSRCA3, 0x0003 ;.equiv SELSRCB0, 0x0004 ;.equiv SELSRCB1, 0x0005 ;.equiv SELSRCB2, 0x0006 ;.equiv SELSRCB3, 0x0007 ;.equiv SELSRCC0, 0x0008 ;.equiv SELSRCC1, 0x0009 ;.equiv SELSRCC2, 0x000A ;.equiv SELSRCC3, 0x000B ;----- CM3MSKCON Bits ----------------------------------------------------- ;.equiv AANEN, 0x0000 ;.equiv AAEN, 0x0001 ;.equiv ABNEN, 0x0002 ;.equiv ABEN, 0x0003 ;.equiv ACNEN, 0x0004 ;.equiv ACEN, 0x0005 ;.equiv PAGS, 0x0006 ;.equiv NAGS, 0x0007 ;.equiv OANEN, 0x0008 ;.equiv OAEN, 0x0009 ;.equiv OBNEN, 0x000A ;.equiv OBEN, 0x000B ;.equiv OCNEN, 0x000C ;.equiv OCEN, 0x000D ;.equiv HLMS, 0x000F ;----- CM3FLTR Bits ----------------------------------------------------- ;.equiv CFLTREN, 0x0003 ;.equiv CFDIV0, 0x0000 ;.equiv CFDIV1, 0x0001 ;.equiv CFDIV2, 0x0002 ;.equiv CFSEL0, 0x0004 ;.equiv CFSEL1, 0x0005 ;.equiv CFSEL2, 0x0006 ;----- CM4CON Bits ----------------------------------------------------- ;.equiv CREF, 0x0004 ;.equiv COUT, 0x0008 ;.equiv CEVT, 0x0009 ;.equiv CPOL, 0x000D ;.equiv COE, 0x000E ;.equiv CON, 0x000F ;.equiv CCH0, 0x0000 ;.equiv CCH1, 0x0001 ;.equiv EVPOL0, 0x0006 ;.equiv EVPOL1, 0x0007 ;.equiv CEN, 0x000F ;----- CM4MSKSRC Bits ----------------------------------------------------- ;.equiv SELSRCA0, 0x0000 ;.equiv SELSRCA1, 0x0001 ;.equiv SELSRCA2, 0x0002 ;.equiv SELSRCA3, 0x0003 ;.equiv SELSRCB0, 0x0004 ;.equiv SELSRCB1, 0x0005 ;.equiv SELSRCB2, 0x0006 ;.equiv SELSRCB3, 0x0007 ;.equiv SELSRCC0, 0x0008 ;.equiv SELSRCC1, 0x0009 ;.equiv SELSRCC2, 0x000A ;.equiv SELSRCC3, 0x000B ;----- CM4MSKCON Bits ----------------------------------------------------- ;.equiv AANEN, 0x0000 ;.equiv AAEN, 0x0001 ;.equiv ABNEN, 0x0002 ;.equiv ABEN, 0x0003 ;.equiv ACNEN, 0x0004 ;.equiv ACEN, 0x0005 ;.equiv PAGS, 0x0006 ;.equiv NAGS, 0x0007 ;.equiv OANEN, 0x0008 ;.equiv OAEN, 0x0009 ;.equiv OBNEN, 0x000A ;.equiv OBEN, 0x000B ;.equiv OCNEN, 0x000C ;.equiv OCEN, 0x000D ;.equiv HLMS, 0x000F ;----- CM4FLTR Bits ----------------------------------------------------- ;.equiv CFLTREN, 0x0003 ;.equiv CFDIV0, 0x0000 ;.equiv CFDIV1, 0x0001 ;.equiv CFDIV2, 0x0002 ;.equiv CFSEL0, 0x0004 ;.equiv CFSEL1, 0x0005 ;.equiv CFSEL2, 0x0006 ;----- CM5CON Bits ----------------------------------------------------- ;.equiv CREF, 0x0004 ;.equiv COUT, 0x0008 ;.equiv CEVT, 0x0009 ;.equiv OPAEN, 0x000A ;.equiv CPOL, 0x000D ;.equiv COE, 0x000E ;.equiv CON, 0x000F ;.equiv CCH0, 0x0000 ;.equiv CCH1, 0x0001 ;.equiv EVPOL0, 0x0006 ;.equiv EVPOL1, 0x0007 ;.equiv CEN, 0x000F ;----- CM5MSKSRC Bits ----------------------------------------------------- ;.equiv SELSRCA0, 0x0000 ;.equiv SELSRCA1, 0x0001 ;.equiv SELSRCA2, 0x0002 ;.equiv SELSRCA3, 0x0003 ;.equiv SELSRCB0, 0x0004 ;.equiv SELSRCB1, 0x0005 ;.equiv SELSRCB2, 0x0006 ;.equiv SELSRCB3, 0x0007 ;.equiv SELSRCC0, 0x0008 ;.equiv SELSRCC1, 0x0009 ;.equiv SELSRCC2, 0x000A ;.equiv SELSRCC3, 0x000B ;----- CM5MSKCON Bits ----------------------------------------------------- ;.equiv AANEN, 0x0000 ;.equiv AAEN, 0x0001 ;.equiv ABNEN, 0x0002 ;.equiv ABEN, 0x0003 ;.equiv ACNEN, 0x0004 ;.equiv ACEN, 0x0005 ;.equiv PAGS, 0x0006 ;.equiv NAGS, 0x0007 ;.equiv OANEN, 0x0008 ;.equiv OAEN, 0x0009 ;.equiv OBNEN, 0x000A ;.equiv OBEN, 0x000B ;.equiv OCNEN, 0x000C ;.equiv OCEN, 0x000D ;.equiv HLMS, 0x000F ;----- CM5FLTR Bits ----------------------------------------------------- ;.equiv CFLTREN, 0x0003 ;.equiv CFDIV0, 0x0000 ;.equiv CFDIV1, 0x0001 ;.equiv CFDIV2, 0x0002 ;.equiv CFSEL0, 0x0004 ;.equiv CFSEL1, 0x0005 ;.equiv CFSEL2, 0x0006 ;----- CVR2CON Bits ----------------------------------------------------- ;.equiv VREFSEL, 0x000A ;.equiv CVRSS, 0x000B ;.equiv CVROE, 0x000E ;.equiv CVREN, 0x000F ;.equiv CVR0, 0x0000 ;.equiv CVR1, 0x0001 ;.equiv CVR2, 0x0002 ;.equiv CVR3, 0x0003 ;.equiv CVR4, 0x0004 ;.equiv CVR5, 0x0005 ;.equiv CVR6, 0x0006 ;----- DMA0CON Bits ----------------------------------------------------- .equiv NULLW, 0x000B .equiv HALF, 0x000C .equiv DIR, 0x000D .equiv SIZE, 0x000E .equiv CHEN, 0x000F .equiv MODE0, 0x0000 .equiv MODE1, 0x0001 .equiv AMODE0, 0x0004 .equiv AMODE1, 0x0005 ;----- DMA0REQ Bits ----------------------------------------------------- .equiv FORCE, 0x000F .equiv IRQSEL0, 0x0000 .equiv IRQSEL1, 0x0001 .equiv IRQSEL2, 0x0002 .equiv IRQSEL3, 0x0003 .equiv IRQSEL4, 0x0004 .equiv IRQSEL5, 0x0005 .equiv IRQSEL6, 0x0006 .equiv IRQSEL7, 0x0007 ;----- DMA1CON Bits ----------------------------------------------------- ;.equiv NULLW, 0x000B ;.equiv HALF, 0x000C ;.equiv DIR, 0x000D ;.equiv SIZE, 0x000E ;.equiv CHEN, 0x000F ;.equiv MODE0, 0x0000 ;.equiv MODE1, 0x0001 ;.equiv AMODE0, 0x0004 ;.equiv AMODE1, 0x0005 ;----- DMA1REQ Bits ----------------------------------------------------- ;.equiv FORCE, 0x000F ;.equiv IRQSEL0, 0x0000 ;.equiv IRQSEL1, 0x0001 ;.equiv IRQSEL2, 0x0002 ;.equiv IRQSEL3, 0x0003 ;.equiv IRQSEL4, 0x0004 ;.equiv IRQSEL5, 0x0005 ;.equiv IRQSEL6, 0x0006 ;.equiv IRQSEL7, 0x0007 ;----- DMA2CON Bits ----------------------------------------------------- ;.equiv NULLW, 0x000B ;.equiv HALF, 0x000C ;.equiv DIR, 0x000D ;.equiv SIZE, 0x000E ;.equiv CHEN, 0x000F ;.equiv MODE0, 0x0000 ;.equiv MODE1, 0x0001 ;.equiv AMODE0, 0x0004 ;.equiv AMODE1, 0x0005 ;----- DMA2REQ Bits ----------------------------------------------------- ;.equiv FORCE, 0x000F ;.equiv IRQSEL0, 0x0000 ;.equiv IRQSEL1, 0x0001 ;.equiv IRQSEL2, 0x0002 ;.equiv IRQSEL3, 0x0003 ;.equiv IRQSEL4, 0x0004 ;.equiv IRQSEL5, 0x0005 ;.equiv IRQSEL6, 0x0006 ;.equiv IRQSEL7, 0x0007 ;----- DMA3CON Bits ----------------------------------------------------- ;.equiv NULLW, 0x000B ;.equiv HALF, 0x000C ;.equiv DIR, 0x000D ;.equiv SIZE, 0x000E ;.equiv CHEN, 0x000F ;.equiv MODE0, 0x0000 ;.equiv MODE1, 0x0001 ;.equiv AMODE0, 0x0004 ;.equiv AMODE1, 0x0005 ;----- DMA3REQ Bits ----------------------------------------------------- ;.equiv FORCE, 0x000F ;.equiv IRQSEL0, 0x0000 ;.equiv IRQSEL1, 0x0001 ;.equiv IRQSEL2, 0x0002 ;.equiv IRQSEL3, 0x0003 ;.equiv IRQSEL4, 0x0004 ;.equiv IRQSEL5, 0x0005 ;.equiv IRQSEL6, 0x0006 ;.equiv IRQSEL7, 0x0007 ;----- DMAPWC Bits ----------------------------------------------------- .equiv PWCOL0, 0x0000 .equiv PWCOL1, 0x0001 .equiv PWCOL2, 0x0002 .equiv PWCOL3, 0x0003 ;----- DMARQC Bits ----------------------------------------------------- .equiv RQCOL0, 0x0000 .equiv RQCOL1, 0x0001 .equiv RQCOL2, 0x0002 .equiv RQCOL3, 0x0003 ;----- DMAPPS Bits ----------------------------------------------------- .equiv PPST0, 0x0000 .equiv PPST1, 0x0001 .equiv PPST2, 0x0002 .equiv PPST3, 0x0003 ;----- DMALCA Bits ----------------------------------------------------- .equiv LSTCH0, 0x0000 .equiv LSTCH1, 0x0001 .equiv LSTCH2, 0x0002 .equiv LSTCH3, 0x0003 ;----- PTCON Bits ----------------------------------------------------- .equiv SYNCEN, 0x0007 .equiv SYNCOEN, 0x0008 .equiv SYNCPOL, 0x0009 .equiv EIPU, 0x000A .equiv SEIEN, 0x000B .equiv SESTAT, 0x000C .equiv PTSIDL, 0x000D .equiv PTEN, 0x000F .equiv SEVTPS0, 0x0000 .equiv SEVTPS1, 0x0001 .equiv SEVTPS2, 0x0002 .equiv SEVTPS3, 0x0003 .equiv SYNCSRC0, 0x0004 .equiv SYNCSRC1, 0x0005 .equiv SYNCSRC2, 0x0006 ;----- PTCON2 Bits ----------------------------------------------------- .equiv PCLKDIV0, 0x0000 .equiv PCLKDIV1, 0x0001 .equiv PCLKDIV2, 0x0002 ;----- CHOP Bits ----------------------------------------------------- .equiv CHPCLKEN, 0x000F .equiv CHOPCLK0, 0x0000 .equiv CHOPCLK1, 0x0001 .equiv CHOPCLK2, 0x0002 .equiv CHOPCLK3, 0x0003 .equiv CHOPCLK4, 0x0004 .equiv CHOPCLK5, 0x0005 .equiv CHOPCLK6, 0x0006 .equiv CHOPCLK7, 0x0007 .equiv CHOPCLK8, 0x0008 .equiv CHOPCLK9, 0x0009 ;----- PWMCON1 Bits ----------------------------------------------------- .equiv IUE, 0x0000 .equiv XPRES, 0x0001 .equiv CAM, 0x0002 .equiv DTCP, 0x0005 .equiv MDCS, 0x0008 .equiv ITB, 0x0009 .equiv TRGIEN, 0x000A .equiv CLIEN, 0x000B .equiv FLTIEN, 0x000C .equiv TRGSTAT, 0x000D .equiv CLSTAT, 0x000E .equiv FLTSTAT, 0x000F .equiv DTC0, 0x0006 .equiv DTC1, 0x0007 ;----- IOCON1 Bits ----------------------------------------------------- .equiv OSYNC, 0x0000 .equiv SWAP, 0x0001 .equiv OVRENL, 0x0008 .equiv OVRENH, 0x0009 .equiv POLL, 0x000C .equiv POLH, 0x000D .equiv PENL, 0x000E .equiv PENH, 0x000F .equiv CLDAT0, 0x0002 .equiv CLDAT1, 0x0003 .equiv FLTDAT0, 0x0004 .equiv FLTDAT1, 0x0005 .equiv OVRDAT0, 0x0006 .equiv OVRDAT1, 0x0007 .equiv PMOD0, 0x000A .equiv PMOD1, 0x000B ;----- FCLCON1 Bits ----------------------------------------------------- .equiv FLTPOL, 0x0002 .equiv CLMOD, 0x0008 .equiv CLPOL, 0x0009 .equiv IFLTMOD, 0x000F .equiv FLTMOD0, 0x0000 .equiv FLTMOD1, 0x0001 .equiv FLTSRC0, 0x0003 .equiv FLTSRC1, 0x0004 .equiv FLTSRC2, 0x0005 .equiv FLTSRC3, 0x0006 .equiv FLTSRC4, 0x0007 .equiv CLSRC0, 0x000A .equiv CLSRC1, 0x000B .equiv CLSRC2, 0x000C .equiv CLSRC3, 0x000D .equiv CLSRC4, 0x000E ;----- TRIG1 Bits ----------------------------------------------------- .equiv TRGCMP0, 0x0000 .equiv TRGCMP1, 0x0001 .equiv TRGCMP2, 0x0002 .equiv TRGCMP3, 0x0003 .equiv TRGCMP4, 0x0004 .equiv TRGCMP5, 0x0005 .equiv TRGCMP6, 0x0006 .equiv TRGCMP7, 0x0007 .equiv TRGCMP8, 0x0008 .equiv TRGCMP9, 0x0009 .equiv TRGCMP10, 0x000A .equiv TRGCMP11, 0x000B .equiv TRGCMP12, 0x000C .equiv TRGCMP13, 0x000D .equiv TRGCMP14, 0x000E .equiv TRGCMP15, 0x000F ;----- TRGCON1 Bits ----------------------------------------------------- .equiv TRGSTRT0, 0x0000 .equiv TRGSTRT1, 0x0001 .equiv TRGSTRT2, 0x0002 .equiv TRGSTRT3, 0x0003 .equiv TRGSTRT4, 0x0004 .equiv TRGSTRT5, 0x0005 .equiv TRGDIV0, 0x000C .equiv TRGDIV1, 0x000D .equiv TRGDIV2, 0x000E .equiv TRGDIV3, 0x000F ;----- PWMCAP1 Bits ----------------------------------------------------- .equiv PWMCAP0, 0x0003 .equiv PWMCAP1, 0x0004 .equiv PWMCAP2, 0x0005 .equiv PWMCAP3, 0x0006 .equiv PWMCAP4, 0x0007 .equiv PWMCAP5, 0x0008 .equiv PWMCAP6, 0x0009 .equiv PWMCAP7, 0x000A .equiv PWMCAP8, 0x000B .equiv PWMCAP9, 0x000C .equiv PWMCAP10, 0x000D .equiv PWMCAP11, 0x000E .equiv PWMCAP12, 0x000F ;----- LEBCON1 Bits ----------------------------------------------------- .equiv BPLL, 0x0000 .equiv BPLH, 0x0001 .equiv BPHL, 0x0002 .equiv BPHH, 0x0003 .equiv BCL_LEBCON1, 0x0004 .equiv BCH, 0x0005 .equiv CLLEBEN, 0x000A .equiv FLTLEBEN, 0x000B .equiv PLF, 0x000C .equiv PLR, 0x000D .equiv PHF, 0x000E .equiv PHR, 0x000F ;----- LEBDLY1 Bits ----------------------------------------------------- .equiv LEB0, 0x0003 .equiv LEB1, 0x0004 .equiv LEB2, 0x0005 .equiv LEB3, 0x0006 .equiv LEB4, 0x0007 .equiv LEB5, 0x0008 .equiv LEB6, 0x0009 .equiv LEB7, 0x000A .equiv LEB8, 0x000B ;----- AUXCON1 Bits ----------------------------------------------------- .equiv CHOPLEN, 0x0000 .equiv CHOPHEN, 0x0001 .equiv CHOPSEL0, 0x0002 .equiv CHOPSEL1, 0x0003 .equiv CHOPSEL2, 0x0004 .equiv CHOPSEL3, 0x0005 .equiv BLANKSEL0, 0x0008 .equiv BLANKSEL1, 0x0009 .equiv BLANKSEL2, 0x000A .equiv BLANKSEL3, 0x000B ;----- PWMCON2 Bits ----------------------------------------------------- ;.equiv IUE, 0x0000 ;.equiv XPRES, 0x0001 ;.equiv CAM, 0x0002 ;.equiv DTCP, 0x0005 ;.equiv MDCS, 0x0008 ;.equiv ITB, 0x0009 ;.equiv TRGIEN, 0x000A ;.equiv CLIEN, 0x000B ;.equiv FLTIEN, 0x000C ;.equiv TRGSTAT, 0x000D ;.equiv CLSTAT, 0x000E ;.equiv FLTSTAT, 0x000F ;.equiv DTC0, 0x0006 ;.equiv DTC1, 0x0007 ;----- IOCON2 Bits ----------------------------------------------------- ;.equiv OSYNC, 0x0000 ;.equiv SWAP, 0x0001 ;.equiv OVRENL, 0x0008 ;.equiv OVRENH, 0x0009 ;.equiv POLL, 0x000C ;.equiv POLH, 0x000D ;.equiv PENL, 0x000E ;.equiv PENH, 0x000F ;.equiv CLDAT0, 0x0002 ;.equiv CLDAT1, 0x0003 ;.equiv FLTDAT0, 0x0004 ;.equiv FLTDAT1, 0x0005 ;.equiv OVRDAT0, 0x0006 ;.equiv OVRDAT1, 0x0007 ;.equiv PMOD0, 0x000A ;.equiv PMOD1, 0x000B ;----- FCLCON2 Bits ----------------------------------------------------- ;.equiv FLTPOL, 0x0002 ;.equiv CLMOD, 0x0008 ;.equiv CLPOL, 0x0009 ;.equiv IFLTMOD, 0x000F ;.equiv FLTMOD0, 0x0000 ;.equiv FLTMOD1, 0x0001 ;.equiv FLTSRC0, 0x0003 ;.equiv FLTSRC1, 0x0004 ;.equiv FLTSRC2, 0x0005 ;.equiv FLTSRC3, 0x0006 ;.equiv FLTSRC4, 0x0007 ;.equiv CLSRC0, 0x000A ;.equiv CLSRC1, 0x000B ;.equiv CLSRC2, 0x000C ;.equiv CLSRC3, 0x000D ;.equiv CLSRC4, 0x000E ;----- TRIG2 Bits ----------------------------------------------------- ;.equiv TRGCMP0, 0x0000 ;.equiv TRGCMP1, 0x0001 ;.equiv TRGCMP2, 0x0002 ;.equiv TRGCMP3, 0x0003 ;.equiv TRGCMP4, 0x0004 ;.equiv TRGCMP5, 0x0005 ;.equiv TRGCMP6, 0x0006 ;.equiv TRGCMP7, 0x0007 ;.equiv TRGCMP8, 0x0008 ;.equiv TRGCMP9, 0x0009 ;.equiv TRGCMP10, 0x000A ;.equiv TRGCMP11, 0x000B ;.equiv TRGCMP12, 0x000C ;.equiv TRGCMP13, 0x000D ;.equiv TRGCMP14, 0x000E ;.equiv TRGCMP15, 0x000F ;----- TRGCON2 Bits ----------------------------------------------------- ;.equiv TRGSTRT0, 0x0000 ;.equiv TRGSTRT1, 0x0001 ;.equiv TRGSTRT2, 0x0002 ;.equiv TRGSTRT3, 0x0003 ;.equiv TRGSTRT4, 0x0004 ;.equiv TRGSTRT5, 0x0005 ;.equiv TRGDIV0, 0x000C ;.equiv TRGDIV1, 0x000D ;.equiv TRGDIV2, 0x000E ;.equiv TRGDIV3, 0x000F ;----- PWMCAP2 Bits ----------------------------------------------------- ;.equiv PWMCAP0, 0x0003 ;.equiv PWMCAP1, 0x0004 ;.equiv PWMCAP2, 0x0005 ;.equiv PWMCAP3, 0x0006 ;.equiv PWMCAP4, 0x0007 ;.equiv PWMCAP5, 0x0008 ;.equiv PWMCAP6, 0x0009 ;.equiv PWMCAP7, 0x000A ;.equiv PWMCAP8, 0x000B ;.equiv PWMCAP9, 0x000C ;.equiv PWMCAP10, 0x000D ;.equiv PWMCAP11, 0x000E ;.equiv PWMCAP12, 0x000F ;----- LEBCON2 Bits ----------------------------------------------------- ;.equiv BPLL, 0x0000 ;.equiv BPLH, 0x0001 ;.equiv BPHL, 0x0002 ;.equiv BPHH, 0x0003 .equiv BCL_LEBCON2, 0x0004 ;.equiv BCH, 0x0005 ;.equiv CLLEBEN, 0x000A ;.equiv FLTLEBEN, 0x000B ;.equiv PLF, 0x000C ;.equiv PLR, 0x000D ;.equiv PHF, 0x000E ;.equiv PHR, 0x000F ;----- LEBDLY2 Bits ----------------------------------------------------- ;.equiv LEB0, 0x0003 ;.equiv LEB1, 0x0004 ;.equiv LEB2, 0x0005 ;.equiv LEB3, 0x0006 ;.equiv LEB4, 0x0007 ;.equiv LEB5, 0x0008 ;.equiv LEB6, 0x0009 ;.equiv LEB7, 0x000A ;.equiv LEB8, 0x000B ;----- AUXCON2 Bits ----------------------------------------------------- ;.equiv CHOPLEN, 0x0000 ;.equiv CHOPHEN, 0x0001 ;.equiv CHOPSEL0, 0x0002 ;.equiv CHOPSEL1, 0x0003 ;.equiv CHOPSEL2, 0x0004 ;.equiv CHOPSEL3, 0x0005 ;.equiv BLANKSEL0, 0x0008 ;.equiv BLANKSEL1, 0x0009 ;.equiv BLANKSEL2, 0x000A ;.equiv BLANKSEL3, 0x000B ;----- PWMCON3 Bits ----------------------------------------------------- ;.equiv IUE, 0x0000 ;.equiv XPRES, 0x0001 ;.equiv CAM, 0x0002 ;.equiv DTCP, 0x0005 ;.equiv MDCS, 0x0008 ;.equiv ITB, 0x0009 ;.equiv TRGIEN, 0x000A ;.equiv CLIEN, 0x000B ;.equiv FLTIEN, 0x000C ;.equiv TRGSTAT, 0x000D ;.equiv CLSTAT, 0x000E ;.equiv FLTSTAT, 0x000F ;.equiv DTC0, 0x0006 ;.equiv DTC1, 0x0007 ;----- IOCON3 Bits ----------------------------------------------------- ;.equiv OSYNC, 0x0000 ;.equiv SWAP, 0x0001 ;.equiv OVRENL, 0x0008 ;.equiv OVRENH, 0x0009 ;.equiv POLL, 0x000C ;.equiv POLH, 0x000D ;.equiv PENL, 0x000E ;.equiv PENH, 0x000F ;.equiv CLDAT0, 0x0002 ;.equiv CLDAT1, 0x0003 ;.equiv FLTDAT0, 0x0004 ;.equiv FLTDAT1, 0x0005 ;.equiv OVRDAT0, 0x0006 ;.equiv OVRDAT1, 0x0007 ;.equiv PMOD0, 0x000A ;.equiv PMOD1, 0x000B ;----- FCLCON3 Bits ----------------------------------------------------- ;.equiv FLTPOL, 0x0002 ;.equiv CLMOD, 0x0008 ;.equiv CLPOL, 0x0009 ;.equiv IFLTMOD, 0x000F ;.equiv FLTMOD0, 0x0000 ;.equiv FLTMOD1, 0x0001 ;.equiv FLTSRC0, 0x0003 ;.equiv FLTSRC1, 0x0004 ;.equiv FLTSRC2, 0x0005 ;.equiv FLTSRC3, 0x0006 ;.equiv FLTSRC4, 0x0007 ;.equiv CLSRC0, 0x000A ;.equiv CLSRC1, 0x000B ;.equiv CLSRC2, 0x000C ;.equiv CLSRC3, 0x000D ;.equiv CLSRC4, 0x000E ;----- TRIG3 Bits ----------------------------------------------------- ;.equiv TRGCMP0, 0x0000 ;.equiv TRGCMP1, 0x0001 ;.equiv TRGCMP2, 0x0002 ;.equiv TRGCMP3, 0x0003 ;.equiv TRGCMP4, 0x0004 ;.equiv TRGCMP5, 0x0005 ;.equiv TRGCMP6, 0x0006 ;.equiv TRGCMP7, 0x0007 ;.equiv TRGCMP8, 0x0008 ;.equiv TRGCMP9, 0x0009 ;.equiv TRGCMP10, 0x000A ;.equiv TRGCMP11, 0x000B ;.equiv TRGCMP12, 0x000C ;.equiv TRGCMP13, 0x000D ;.equiv TRGCMP14, 0x000E ;.equiv TRGCMP15, 0x000F ;----- TRGCON3 Bits ----------------------------------------------------- ;.equiv TRGSTRT0, 0x0000 ;.equiv TRGSTRT1, 0x0001 ;.equiv TRGSTRT2, 0x0002 ;.equiv TRGSTRT3, 0x0003 ;.equiv TRGSTRT4, 0x0004 ;.equiv TRGSTRT5, 0x0005 ;.equiv TRGDIV0, 0x000C ;.equiv TRGDIV1, 0x000D ;.equiv TRGDIV2, 0x000E ;.equiv TRGDIV3, 0x000F ;----- PWMCAP3 Bits ----------------------------------------------------- ;.equiv PWMCAP0, 0x0003 ;.equiv PWMCAP1, 0x0004 ;.equiv PWMCAP2, 0x0005 ;.equiv PWMCAP3, 0x0006 ;.equiv PWMCAP4, 0x0007 ;.equiv PWMCAP5, 0x0008 ;.equiv PWMCAP6, 0x0009 ;.equiv PWMCAP7, 0x000A ;.equiv PWMCAP8, 0x000B ;.equiv PWMCAP9, 0x000C ;.equiv PWMCAP10, 0x000D ;.equiv PWMCAP11, 0x000E ;.equiv PWMCAP12, 0x000F ;----- LEBCON3 Bits ----------------------------------------------------- ;.equiv BPLL, 0x0000 ;.equiv BPLH, 0x0001 ;.equiv BPHL, 0x0002 ;.equiv BPHH, 0x0003 .equiv BCL_LEBCON3, 0x0004 ;.equiv BCH, 0x0005 ;.equiv CLLEBEN, 0x000A ;.equiv FLTLEBEN, 0x000B ;.equiv PLF, 0x000C ;.equiv PLR, 0x000D ;.equiv PHF, 0x000E ;.equiv PHR, 0x000F ;----- LEBDLY3 Bits ----------------------------------------------------- ;.equiv LEB0, 0x0003 ;.equiv LEB1, 0x0004 ;.equiv LEB2, 0x0005 ;.equiv LEB3, 0x0006 ;.equiv LEB4, 0x0007 ;.equiv LEB5, 0x0008 ;.equiv LEB6, 0x0009 ;.equiv LEB7, 0x000A ;.equiv LEB8, 0x000B ;----- AUXCON3 Bits ----------------------------------------------------- ;.equiv CHOPLEN, 0x0000 ;.equiv CHOPHEN, 0x0001 ;.equiv CHOPSEL0, 0x0002 ;.equiv CHOPSEL1, 0x0003 ;.equiv CHOPSEL2, 0x0004 ;.equiv CHOPSEL3, 0x0005 ;.equiv BLANKSEL0, 0x0008 ;.equiv BLANKSEL1, 0x0009 ;.equiv BLANKSEL2, 0x000A ;.equiv BLANKSEL3, 0x000B ;----- TRISA Bits ----------------------------------------------------- .equiv TRISA0, 0x0000 .equiv TRISA1, 0x0001 .equiv TRISA2, 0x0002 .equiv TRISA3, 0x0003 .equiv TRISA4, 0x0004 ;----- PORTA Bits ----------------------------------------------------- .equiv RA0, 0x0000 .equiv RA1, 0x0001 .equiv RA2, 0x0002 .equiv RA3, 0x0003 .equiv RA4, 0x0004 ;----- LATA Bits ----------------------------------------------------- .equiv LATA0, 0x0000 .equiv LATA1, 0x0001 .equiv LATA2, 0x0002 .equiv LATA3, 0x0003 .equiv LATA4, 0x0004 ;----- ODCA Bits ----------------------------------------------------- .equiv ODCA0, 0x0000 .equiv ODCA1, 0x0001 .equiv ODCA2, 0x0002 .equiv ODCA3, 0x0003 .equiv ODCA4, 0x0004 ;----- CNENA Bits ----------------------------------------------------- .equiv CNIEA0, 0x0000 .equiv CNIEA1, 0x0001 .equiv CNIEA2, 0x0002 .equiv CNIEA3, 0x0003 .equiv CNIEA4, 0x0004 ;----- CNPUA Bits ----------------------------------------------------- .equiv CNPUA0, 0x0000 .equiv CNPUA1, 0x0001 .equiv CNPUA2, 0x0002 .equiv CNPUA3, 0x0003 .equiv CNPUA4, 0x0004 ;----- CNPDA Bits ----------------------------------------------------- .equiv CNPDA0, 0x0000 .equiv CNPDA1, 0x0001 .equiv CNPDA2, 0x0002 .equiv CNPDA3, 0x0003 .equiv CNPDA4, 0x0004 ;----- ANSELA Bits ----------------------------------------------------- .equiv ANSA0, 0x0000 .equiv ANSA1, 0x0001 .equiv ANSA2, 0x0002 .equiv ANSA4, 0x0004 ;----- SR1A Bits ----------------------------------------------------- .equiv SR1A4, 0x0004 ;----- SR0A Bits ----------------------------------------------------- .equiv SR0A4, 0x0004 ;----- TRISB Bits ----------------------------------------------------- .equiv TRISB0, 0x0000 .equiv TRISB1, 0x0001 .equiv TRISB2, 0x0002 .equiv TRISB3, 0x0003 .equiv TRISB4, 0x0004 .equiv TRISB5, 0x0005 .equiv TRISB6, 0x0006 .equiv TRISB7, 0x0007 .equiv TRISB8, 0x0008 .equiv TRISB9, 0x0009 .equiv TRISB10, 0x000A .equiv TRISB11, 0x000B .equiv TRISB12, 0x000C .equiv TRISB13, 0x000D .equiv TRISB14, 0x000E .equiv TRISB15, 0x000F ;----- PORTB Bits ----------------------------------------------------- .equiv RB0, 0x0000 .equiv RB1, 0x0001 .equiv RB2, 0x0002 .equiv RB3, 0x0003 .equiv RB4, 0x0004 .equiv RB5, 0x0005 .equiv RB6, 0x0006 .equiv RB7, 0x0007 .equiv RB8, 0x0008 .equiv RB9, 0x0009 .equiv RB10, 0x000A .equiv RB11, 0x000B .equiv RB12, 0x000C .equiv RB13, 0x000D .equiv RB14, 0x000E .equiv RB15, 0x000F ;----- LATB Bits ----------------------------------------------------- .equiv LATB0, 0x0000 .equiv LATB1, 0x0001 .equiv LATB2, 0x0002 .equiv LATB3, 0x0003 .equiv LATB4, 0x0004 .equiv LATB5, 0x0005 .equiv LATB6, 0x0006 .equiv LATB7, 0x0007 .equiv LATB8, 0x0008 .equiv LATB9, 0x0009 .equiv LATB10, 0x000A .equiv LATB11, 0x000B .equiv LATB12, 0x000C .equiv LATB13, 0x000D .equiv LATB14, 0x000E .equiv LATB15, 0x000F ;----- ODCB Bits ----------------------------------------------------- .equiv ODCB0, 0x0000 .equiv ODCB1, 0x0001 .equiv ODCB2, 0x0002 .equiv ODCB3, 0x0003 .equiv ODCB4, 0x0004 .equiv ODCB5, 0x0005 .equiv ODCB6, 0x0006 .equiv ODCB7, 0x0007 .equiv ODCB8, 0x0008 .equiv ODCB9, 0x0009 .equiv ODCB10, 0x000A .equiv ODCB11, 0x000B .equiv ODCB12, 0x000C .equiv ODCB13, 0x000D .equiv ODCB14, 0x000E .equiv ODCB15, 0x000F ;----- CNENB Bits ----------------------------------------------------- .equiv CNIEB0, 0x0000 .equiv CNIEB1, 0x0001 .equiv CNIEB2, 0x0002 .equiv CNIEB3, 0x0003 .equiv CNIEB4, 0x0004 .equiv CNIEB5, 0x0005 .equiv CNIEB6, 0x0006 .equiv CNIEB7, 0x0007 .equiv CNIEB8, 0x0008 .equiv CNIEB9, 0x0009 .equiv CNIEB10, 0x000A .equiv CNIEB11, 0x000B .equiv CNIEB12, 0x000C .equiv CNIEB13, 0x000D .equiv CNIEB14, 0x000E .equiv CNIEB15, 0x000F ;----- CNPUB Bits ----------------------------------------------------- .equiv CNPUB0, 0x0000 .equiv CNPUB1, 0x0001 .equiv CNPUB2, 0x0002 .equiv CNPUB3, 0x0003 .equiv CNPUB4, 0x0004 .equiv CNPUB5, 0x0005 .equiv CNPUB6, 0x0006 .equiv CNPUB7, 0x0007 .equiv CNPUB8, 0x0008 .equiv CNPUB9, 0x0009 .equiv CNPUB10, 0x000A .equiv CNPUB11, 0x000B .equiv CNPUB12, 0x000C .equiv CNPUB13, 0x000D .equiv CNPUB14, 0x000E .equiv CNPUB15, 0x000F ;----- CNPDB Bits ----------------------------------------------------- .equiv CNPDB0, 0x0000 .equiv CNPDB1, 0x0001 .equiv CNPDB2, 0x0002 .equiv CNPDB3, 0x0003 .equiv CNPDB4, 0x0004 .equiv CNPDB5, 0x0005 .equiv CNPDB6, 0x0006 .equiv CNPDB7, 0x0007 .equiv CNPDB8, 0x0008 .equiv CNPDB9, 0x0009 .equiv CNPDB10, 0x000A .equiv CNPDB11, 0x000B .equiv CNPDB12, 0x000C .equiv CNPDB13, 0x000D .equiv CNPDB14, 0x000E .equiv CNPDB15, 0x000F ;----- ANSELB Bits ----------------------------------------------------- .equiv ANSB0, 0x0000 .equiv ANSB1, 0x0001 .equiv ANSB2, 0x0002 .equiv ANSB3, 0x0003 .equiv ANSB7, 0x0007 .equiv ANSB8, 0x0008 .equiv ANSB9, 0x0009 ;----- SR1B Bits ----------------------------------------------------- .equiv SR1B4, 0x0004 .equiv SR1B7, 0x0007 .equiv SR1B8, 0x0008 .equiv SR1B9, 0x0009 ;----- SR0B Bits ----------------------------------------------------- .equiv SR0B4, 0x0004 .equiv SR0B7, 0x0007 .equiv SR0B8, 0x0008 .equiv SR0B9, 0x0009 ;----- APPS Bits ----------------------------------------------------- .equiv APIFUL, 0x0000 .equiv APIOV, 0x0001 .equiv APOFUL, 0x0002 .equiv APOOV, 0x0003 .equiv STRFUL, 0x0004 ; Some useful macros for PWRSAV instructions .equiv SLEEP_MODE, 0x0 .equiv IDLE_MODE, 0x1 ;========================================================================== ; ; Configuration Words ; ; Configuration words exist in Program Space and their locations are ; defined in the device linker script. They can be set in source code ; or in the MPLAB IDE. Each configuration word should be specified ; only once (multiple settings may be combined.) ; ;========================================================================== ; ; Setting configuration words using macros: ; ; The following macro named 'config' can be used to set configuration words: ; .macro config REG, VALUE .pushsection \REG.sec, code .global \REG \REG: .pword \VALUE .popsection .endm ; ; For example, to set CONFIG_REG using the macro above, the following line ; can be pasted only at the beginning of the assembly source code, ; immediately below the '.include' directive. ; ; config __CONFIG_REG, SETTING_A & SETTING_B ; ; Note that the 'config' macro takes two arguments: the first is the name ; of a configuration word (in this case, __CONFIG_REG), the second argument ; is a boolean expression that may include multiple settings. ; The example above would enable SETTING_A and also SETTING_B. ; ; A description of all possible settings for each configuration word ; appears below. ; ;========================================================================== ; ; Setting configuration words without using macros: ; ; To set configuration words without using the 'config' macro, ; use the following format: ; ; .section __CONFIG_REG.sec, code ; .global __CONFIG_REG ;__CONFIG_REG: .pword SETTING_A & SETTING_B ; ; This source code is equivalent to the expanded macro from the previous ; example. ; ;========================================================================== ;----- FSEC (0x5780) -------------------------------------------------- ; ; The following settings are available for FSEC: ; ; Boot Segment Write-Protect Bit: ; BWRP_ON Boot Segment is write protected ; BWRP_OFF Boot Segment may be written ; ; Boot Segment Code-Protect Level bits: ; BSS_HIGH High Security ; BSS_STNDRD Standard Security ; BSS_DISABLED No Protection (other than BWRP) ; ; Boot Segment Control Bit: ; BSS2_ON Boot Segment size determined by FBSLIM ; BSS2_OFF No Boot Segment ; ; General Segment Write-Protect Bit: ; GWRP_ON General Segment is write protected ; GWRP_OFF General Segment may be written ; ; General Segment Code-Protect Level bits: ; GSS_HIGH High Security ; GSS_STNDRD Standard Security ; GSS_DISABLED No Protection (other than GWRP) ; ; Configuration Segment Write-Protect Bit: ; CWRP_ON Configuration Segment is write protected ; CWRP_OFF Configuration Segment may be written ; ; Configuration Segment Code-Protect Level bits: ; CSS_HIGH High Security ; CSS_ENHNCD Enhanced Security ; CSS_STNDRD Standard Security ; CSS_DISABLED No Protection (other than CWRP) ; ; Alternate Interrupt Vector Table Disable Bit : ; AIVTDIS_ENABLE Enable Alternate Vector Table ; AIVTDIS_DISABLE Disable Alternate Vector Table ; .equiv BWRP_ON, 0xFFFE ; Boot Segment is write protected .equiv BWRP_OFF, 0xFFFF ; Boot Segment may be written .equiv BSS_HIGH, 0xFFF9 ; High Security .equiv BSS_STNDRD, 0xFFFD ; Standard Security .equiv BSS_DISABLED, 0xFFFF ; No Protection (other than BWRP) .equiv BSS2_ON, 0xFFF7 ; Boot Segment size determined by FBSLIM .equiv BSS2_OFF, 0xFFFF ; No Boot Segment .equiv GWRP_ON, 0xFFDF ; General Segment is write protected .equiv GWRP_OFF, 0xFFFF ; General Segment may be written .equiv GSS_HIGH, 0xFF3F ; High Security .equiv GSS_STNDRD, 0xFFBF ; Standard Security .equiv GSS_DISABLED, 0xFFFF ; No Protection (other than GWRP) .equiv CWRP_ON, 0xFEFF ; Configuration Segment is write protected .equiv CWRP_OFF, 0xFFFF ; Configuration Segment may be written .equiv CSS_HIGH, 0xF1FF ; High Security .equiv CSS_ENHNCD, 0xF9FF ; Enhanced Security .equiv CSS_STNDRD, 0xFDFF ; Standard Security .equiv CSS_DISABLED, 0xFFFF ; No Protection (other than CWRP) .equiv AIVTDIS_ENABLE, 0x7FFF ; Enable Alternate Vector Table .equiv AIVTDIS_DISABLE, 0xFFFF ; Disable Alternate Vector Table ;----- FBSLIM (0x5790) -------------------------------------------------- ; ; The following settings are available for FBSLIM: ; ; Boot Segment Code Flash Page Address Limit Bits: ; ;----- FOSCSEL (0x5798) -------------------------------------------------- ; ; The following settings are available for FOSCSEL: ; ; Initial oscillator Source Selection Bits: ; FNOSC_FRC Internal Fast RC (FRC) ; FNOSC_FRCPLL Fast RC Oscillator with divide-by-N with PLL module (FRCPLL) ; FNOSC_PRI Primary Oscillator (XT, HS, EC) ; FNOSC_PRIPLL Primary Oscillator with PLL module (XT + PLL, HS + PLL, EC + PLL) ; FNOSC_LPRC Low-Power RC Oscillator (LPRC) ; FNOSC_FRCDIV16 Internal Fast RC (FRC) Oscillator with divide by 16 ; FNOSC_FRCDIVN Internal Fast RC (FRC) Oscillator with postscaler ; ; Two Speed Oscillator Start-Up Bit: ; IESO_OFF Start up device with user selected oscillator source ; IESO_ON Start up device with FRC,then automatically switch to user selected oscillator source ; .equiv FNOSC_FRC, 0xFFF8 ; Internal Fast RC (FRC) .equiv FNOSC_FRCPLL, 0xFFF9 ; Fast RC Oscillator with divide-by-N with PLL module (FRCPLL) .equiv FNOSC_PRI, 0xFFFA ; Primary Oscillator (XT, HS, EC) .equiv FNOSC_PRIPLL, 0xFFFB ; Primary Oscillator with PLL module (XT + PLL, HS + PLL, EC + PLL) .equiv FNOSC_LPRC, 0xFFFD ; Low-Power RC Oscillator (LPRC) .equiv FNOSC_FRCDIV16, 0xFFFE ; Internal Fast RC (FRC) Oscillator with divide by 16 .equiv FNOSC_FRCDIVN, 0xFFFF ; Internal Fast RC (FRC) Oscillator with postscaler .equiv IESO_OFF, 0xFF7F ; Start up device with user selected oscillator source .equiv IESO_ON, 0xFFFF ; Start up device with FRC,then automatically switch to user selected oscillator source ;----- FOSC (0x579c) -------------------------------------------------- ; ; The following settings are available for FOSC: ; ; Primary Oscillator Mode Select Bits: ; POSCMD_EC EC (External Clock) mode ; POSCMD_XT XT Crystal Oscillator mode ; POSCMD_HS HS Crystal Oscillator mode ; POSCMD_NONE Primary Oscillator disabled ; ; OSC2 Pin I/O Function Enable Bit: ; OSCIOFNC_ON OSC2 is general purpose digital I/O pin ; OSCIOFNC_OFF OSC2 is clock output ; ; Peripheral Pin Select Configuration Bit: ; IOL1WAY_OFF Allow Multiple reconfigurations ; IOL1WAY_ON Allow Only One reconfiguration ; ; Clock Switching Mode Bits: ; FCKSM_CSECME Both Clock Switching and Fail-safe Clock Monitor are enabled ; FCKSM_CSECMD Clock Switching is enabled,Fail-safe Clock Monitor is disabled ; FCKSM_CSDCMD Both Clock Switching and Fail-safe Clock Monitor are disabled ; ; PLL Lock Enable Bit: ; PLLKEN_OFF Clock switch will not wait for the PLL lock signal ; PLLKEN_ON Clock switch to PLL source will wait until the PLL lock signal is valid ; .equiv POSCMD_EC, 0xFFFC ; EC (External Clock) mode .equiv POSCMD_XT, 0xFFFD ; XT Crystal Oscillator mode .equiv POSCMD_HS, 0xFFFE ; HS Crystal Oscillator mode .equiv POSCMD_NONE, 0xFFFF ; Primary Oscillator disabled .equiv OSCIOFNC_ON, 0xFFFB ; OSC2 is general purpose digital I/O pin .equiv OSCIOFNC_OFF, 0xFFFF ; OSC2 is clock output .equiv IOL1WAY_OFF, 0xFFDF ; Allow Multiple reconfigurations .equiv IOL1WAY_ON, 0xFFFF ; Allow Only One reconfiguration .equiv FCKSM_CSECME, 0xFF3F ; Both Clock Switching and Fail-safe Clock Monitor are enabled .equiv FCKSM_CSECMD, 0xFF7F ; Clock Switching is enabled,Fail-safe Clock Monitor is disabled .equiv FCKSM_CSDCMD, 0xFFBF ; Both Clock Switching and Fail-safe Clock Monitor are disabled .equiv PLLKEN_OFF, 0xFEFF ; Clock switch will not wait for the PLL lock signal .equiv PLLKEN_ON, 0xFFFF ; Clock switch to PLL source will wait until the PLL lock signal is valid ;----- FWDT (0x57a0) -------------------------------------------------- ; ; The following settings are available for FWDT: ; ; Watchdog Timer Postscaler Bits: ; WDTPOST_PS1 1:1 ; WDTPOST_PS2 1:2 ; WDTPOST_PS4 1:4 ; WDTPOST_PS8 1:8 ; WDTPOST_PS16 1:16 ; WDTPOST_PS32 1:32 ; WDTPOST_PS64 1:64 ; WDTPOST_PS128 1:128 ; WDTPOST_PS256 1:256 ; WDTPOST_PS512 1:512 ; WDTPOST_PS1024 1:1,024 ; WDTPOST_PS2048 1:2,048 ; WDTPOST_PS4096 1:4,096 ; WDTPOST_PS8192 1:8,192 ; WDTPOST_PS16384 1:16,384 ; WDTPOST_PS32768 1:32,768 ; ; Watchdog Timer Prescaler Bit: ; WDTPRE_PR32 1:32 ; WDTPRE_PR128 1:128 ; ; Watchdog Timer Enable Bits: ; FWDTEN_OFF WDT and SWDTEN Disabled ; FWDTEN_ON_DIS_SLEEP WDT Enabled only while device is active (disabled in sleep, SWDTEN disabled) ; FWDTEN_ON_SWDTEN WDT Enabled/Disabled (controlled using SWDTEN bit) ; FWDTEN_ON WDT Enabled ; ; Watchdog Timer Window Enable Bit: ; WINDIS_ON Watchdog timer in Window Mode ; WINDIS_OFF Watchdog timer in Non-Window Mode ; ; Watchdog Window Select Bits: ; WDTWIN_WIN75 WDT Window is 75% of WDT period ; WDTWIN_WIN50 WDT Window is 50% of WDT period ; WDTWIN_WIN37 WDT Window is 37.5% of WDT period ; WDTWIN_WIN25 WDT Window is 25% of WDT period ; .equiv WDTPOST_PS1, 0xFFF0 ; 1:1 .equiv WDTPOST_PS2, 0xFFF1 ; 1:2 .equiv WDTPOST_PS4, 0xFFF2 ; 1:4 .equiv WDTPOST_PS8, 0xFFF3 ; 1:8 .equiv WDTPOST_PS16, 0xFFF4 ; 1:16 .equiv WDTPOST_PS32, 0xFFF5 ; 1:32 .equiv WDTPOST_PS64, 0xFFF6 ; 1:64 .equiv WDTPOST_PS128, 0xFFF7 ; 1:128 .equiv WDTPOST_PS256, 0xFFF8 ; 1:256 .equiv WDTPOST_PS512, 0xFFF9 ; 1:512 .equiv WDTPOST_PS1024, 0xFFFA ; 1:1,024 .equiv WDTPOST_PS2048, 0xFFFB ; 1:2,048 .equiv WDTPOST_PS4096, 0xFFFC ; 1:4,096 .equiv WDTPOST_PS8192, 0xFFFD ; 1:8,192 .equiv WDTPOST_PS16384, 0xFFFE ; 1:16,384 .equiv WDTPOST_PS32768, 0xFFFF ; 1:32,768 .equiv WDTPRE_PR32, 0xFFEF ; 1:32 .equiv WDTPRE_PR128, 0xFFFF ; 1:128 .equiv FWDTEN_OFF, 0xFF9F ; WDT and SWDTEN Disabled .equiv FWDTEN_ON_DIS_SLEEP, 0xFFBF ; WDT Enabled only while device is active (disabled in sleep, SWDTEN disabled) .equiv FWDTEN_ON_SWDTEN, 0xFFDF ; WDT Enabled/Disabled (controlled using SWDTEN bit) .equiv FWDTEN_ON, 0xFFFF ; WDT Enabled .equiv WINDIS_ON, 0xFF7F ; Watchdog timer in Window Mode .equiv WINDIS_OFF, 0xFFFF ; Watchdog timer in Non-Window Mode .equiv WDTWIN_WIN75, 0xFCFF ; WDT Window is 75% of WDT period .equiv WDTWIN_WIN50, 0xFDFF ; WDT Window is 50% of WDT period .equiv WDTWIN_WIN37, 0xFEFF ; WDT Window is 37.5% of WDT period .equiv WDTWIN_WIN25, 0xFFFF ; WDT Window is 25% of WDT period ;----- FPOR (0x57a4) -------------------------------------------------- ; ; The following settings are available for FPOR: ; ; Brown Out Reset Detection Bit: ; BOREN0_OFF BOR is Disabled ; BOREN0_ON BOR is Enabled ; .equiv BOREN0_OFF, 0xFFFE ; BOR is Disabled .equiv BOREN0_ON, 0xFFFF ; BOR is Enabled ;----- FICD (0x57a8) -------------------------------------------------- ; ; The following settings are available for FICD: ; ; ICD Communication Channel Select Bits: ; ICS_NONE Reserved, do not use ; ICS_PGD3 Communicate on PGEC3 and PGED3 ; ICS_PGD2 Communicate on PGEC2 and PGED2 ; ICS_PGD1 Communicate on PGEC1 and PGED1 ; .equiv ICS_NONE, 0xFFFC ; Reserved, do not use .equiv ICS_PGD3, 0xFFFD ; Communicate on PGEC3 and PGED3 .equiv ICS_PGD2, 0xFFFE ; Communicate on PGEC2 and PGED2 .equiv ICS_PGD1, 0xFFFF ; Communicate on PGEC1 and PGED1 ;----- FDMTINTVL (0x57ac) -------------------------------------------------- ; ; The following settings are available for FDMTINTVL: ; ; Lower 16 Bits of 32 Bit DMT Window Interval: ; ;----- FDMTINTVH (0x57b0) -------------------------------------------------- ; ; The following settings are available for FDMTINTVH: ; ; Upper 16 Bits of 32 Bit DMT Window Interval: ; ;----- FDMTCNTL (0x57b4) -------------------------------------------------- ; ; The following settings are available for FDMTCNTL: ; ; Lower 16 Bits of 32 Bit DMT Instruction Count Time-Out Value: ; ;----- FDMTCNTH (0x57b8) -------------------------------------------------- ; ; The following settings are available for FDMTCNTH: ; ; Upper 16 Bits of 32 Bit DMT Instruction Count Time-Out Value: ; ;----- FDMT (0x57bc) -------------------------------------------------- ; ; The following settings are available for FDMT: ; ; Dead Man Timer Enable Bit: ; DMTEN_DISABLE Dead Man Timer is Disabled and can be enabled by software ; DMTEN_ENABLE Dead Man Timer is Enabled and cannot be disabled by software ; .equiv DMTEN_DISABLE, 0xFFFE ; Dead Man Timer is Disabled and can be enabled by software .equiv DMTEN_ENABLE, 0xFFFF ; Dead Man Timer is Enabled and cannot be disabled by software ;----- FDEVOPT (0x57c0) -------------------------------------------------- ; ; The following settings are available for FDEVOPT: ; ; PWM Lock Enable Bit: ; PWMLOCK_OFF PWM registers may be written without key sequence ; PWMLOCK_ON Certain PWM registers may only be written after key sequence ; ; Alternate I2C1 Pins Selection Bit: ; ALTI2C1_ON I2C1 mapped to ASDA1/ASCL1 pins ; ALTI2C1_OFF I2C1 mapped to SDA1/SCL1 pins ; .equiv PWMLOCK_OFF, 0xFFFE ; PWM registers may be written without key sequence .equiv PWMLOCK_ON, 0xFFFF ; Certain PWM registers may only be written after key sequence .equiv ALTI2C1_ON, 0xFFF7 ; I2C1 mapped to ASDA1/ASCL1 pins .equiv ALTI2C1_OFF, 0xFFFF ; I2C1 mapped to SDA1/SCL1 pins ;----- FALTREG (0x57c4) -------------------------------------------------- ; ; The following settings are available for FALTREG: ; ; Interrupt Priority Level (IPL) Selection Bits For Alternate Working Register Set 1: ; CTXT1_IPL1 Alternate register set 1 assigned to IPL level 1 ; CTXT1_IPL2 Alternate register set 1 assigned to IPL level 2 ; CTXT1_IPL3 Alternate register set 1 assigned to IPL level 3 ; CTXT1_IPL4 Alternate register set 1 assigned to IPL level 4 ; CTXT1_IPL5 Alternate register set 1 assigned to IPL level 5 ; CTXT1_IPL6 Alternate register set 1 assigned to IPL level 6 ; CTXT1_NONE Not Assigned ; ; Interrupt Priority Level (IPL) Selection Bits For Alternate Working Register Set 2: ; CTXT2_IPL1 Alternate register set 2 assigned to IPL level 1 ; CTXT2_IPL2 Alternate register set 2 assigned to IPL level 2 ; CTXT2_IPL3 Alternate register set 2 assigned to IPL level 3 ; CTXT2_IPL4 Alternate register set 2 assigned to IPL level 4 ; CTXT2_IPL5 Alternate register set 2 assigned to IPL level 5 ; CTXT2_IPL6 Alternate register set 2 assigned to IPL level 6 ; CTXT2_NONE Not Assigned ; .equiv CTXT1_IPL1, 0xFFF9 ; Alternate register set 1 assigned to IPL level 1 .equiv CTXT1_IPL2, 0xFFFA ; Alternate register set 1 assigned to IPL level 2 .equiv CTXT1_IPL3, 0xFFFB ; Alternate register set 1 assigned to IPL level 3 .equiv CTXT1_IPL4, 0xFFFC ; Alternate register set 1 assigned to IPL level 4 .equiv CTXT1_IPL5, 0xFFFD ; Alternate register set 1 assigned to IPL level 5 .equiv CTXT1_IPL6, 0xFFFE ; Alternate register set 1 assigned to IPL level 6 .equiv CTXT1_NONE, 0xFFFF ; Not Assigned .equiv CTXT2_IPL1, 0xFF9F ; Alternate register set 2 assigned to IPL level 1 .equiv CTXT2_IPL2, 0xFFAF ; Alternate register set 2 assigned to IPL level 2 .equiv CTXT2_IPL3, 0xFFBF ; Alternate register set 2 assigned to IPL level 3 .equiv CTXT2_IPL4, 0xFFCF ; Alternate register set 2 assigned to IPL level 4 .equiv CTXT2_IPL5, 0xFFDF ; Alternate register set 2 assigned to IPL level 5 .equiv CTXT2_IPL6, 0xFFEF ; Alternate register set 2 assigned to IPL level 6 .equiv CTXT2_NONE, 0xFFFF ; Not Assigned .LIST