#include <main.h>
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
#define ccp1 PIN_C2
#define ccp2 PIN_C1
#define en PIN_C4
#include <stdlib.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz FOR PCM/PCH) (>10mhz for PCD)
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOCPD //No EE protection
#FUSES NOBROWNOUT //No brownout reset
#FUSES IESO //Internal External SWITCH Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used FOR I/O
#FUSES NODEBUG //No Debug mode FOR ICD
#FUSES NOWRT //Program memory not write protected
#FUSES BORV40 //Brownout reset at 4.0V
#use Fast_IO( B )

#include <lcd4bit.c>
//UNSIGNED int8 ctimer=0;
float tocdo=0, tocdodat;
float xung=0, xungmoi = 0,xungcu =0 ;
float dem = 0, w=0;
void ngatkenhA();
void NGAT_TIMER1();
float xung21(FLOAT);

void main()
{

   while(TRUE)
   {
      //TODO: User Code
   }

}
