#include <16F946.h>
#device adc=8

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES INTRC_IO                 //Internal RC Osc, no CLKOUT
#FUSES NOPUT                    //No Power Up Timer
#FUSES NOMCLR                   //Master Clear pin used for I/O
#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 NOFCMEN                  //Fail-safe clock monitor disabled
#FUSES NODEBUG                  //No Debug mode for ICD

#use delay(clock=8000000)

#byte LCDSE0 = 0x11c
#byte LCDSE1 = 0x11d
#byte LCDSE2 = 0x11e

#byte LCDSE3 = 0x19c
#byte LCDSE4 = 0x19d
#byte LCDSE5 = 0x19e

#byte LCDDATA0 = 0x110
#byte LCDDATA1 = 0x111
#byte LCDDATA2 = 0x112
#byte LCDDATA3 = 0x113
#byte LCDDATA4 = 0x114
#byte LCDDATA5 = 0x115
#byte LCDDATA6 = 0x116
#byte LCDDATA7 = 0x117
#byte LCDDATA8 = 0x118
#byte LCDDATA9 = 0x119
#byte LCDDATA10 = 0x11a
#byte LCDDATA11 = 0x11b

#byte LCDDATA12 = 0x190
#byte LCDDATA13 = 0x191
#byte LCDDATA14 = 0x192
#byte LCDDATA15 = 0x193
#byte LCDDATA16 = 0x194
#byte LCDDATA17 = 0x195
#byte LCDDATA18 = 0x196
#byte LCDDATA19 = 0x197
#byte LCDDATA20 = 0x198
#byte LCDDATA21 = 0x199
#byte LCDDATA22 = 0x19a
#byte LCDDATA23 = 0x19b

#byte IOCB = 0x96

#byte TMR1L = 0x0e
#byte TMR1H = 0x0f

#byte VRCON = 0x9d
#byte LVDCON = 0x109
#byte ADCON0 = 0x1f
#byte CMCON0 = 0x9c

#byte TRISA = 0x85


