;*******************************************************************************;
;*  This implements a generic library functionality to support 	
;*  using External LCD module for PIC16 family
;*******************************************************************************;
;* FileName:            XLCD.asm
;* Dependencies:        P16xxx.inc
;*                      XLCD.Def
;* Processor:           PIC16xxxx
;* Assembler:           MPASMWIN 02.70.02 or higher	
;* Linker:              MPLINK 2.33.00 or higher	
;* Company:             Microchip Technology, Inc.	
;*									
;* Software License Agreement		
;*									
;* The software supplied herewith by Microchip Technology Incorporated
;* (the "Company") for its PICmicro Microcontroller is intended and
;* supplied to you, the Company's customer, for use solely and
;* exclusively on Microchip PICmicro Microcontroller products. The
;* software is owned by the Company and/or its supplier, and is	
;* protected under applicable copyright laws. All rights are reserved.
;* Any use in violation of the foregoing restrictions may subject the
;* user to criminal sanctions under applicable laws, as well as to
;* civil liability for the breach of the terms and conditions of this
;* license.
;*	
;* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
;* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
;* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
;* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
;* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
;* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
;* ANY SPECIAL DESCRIPTION THAT MIGHT BE USEFUL FOR THIS FILE.
;* Author               Date            Comment	
;*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
;* Naveen Raj           March xx,2003   Initial Release (V1.0)
;***********************************************************************;


	
	#define     XLCD_Source
	#include    "XLCD.inc"
   
    #define     _ADD_PROC_INC_FILE
	#define     _GEN_MODULE_ERROR
    #include    "p16xxx.inc"			
	#include    "p18xxx.inc"
	
	;valriables defenitions(loacal _v, global v)
    UDATA
_vXLCDreg1      res 1
_vXLCDreg2      res 1
_vXLCDreg3      res 1			
_vXLCDtemp1     res 1
_vXLCDtemp2     res 1   ;used in XLCDDelay
_vXLCDStatus    res 1	
;***********************************************;

	#ifdef  _PIC18xxx			
    include "18XLCD.asm"			
	#endif					
						
	#ifdef  _PIC16xxx			
    include "16XLCD.asm"			
	#endif					
						
						
;***********************************************;
    end
