if(input(pin_e0)==0)
{
count=count+1;
lcd_gotoxy(1, 1);
printf(lcd_putc, "%lu",cont);
}
if i reset the controller manually in 4 are 5th time, the if loop condition is executing that is i am getting the count constantly without the pin input if i measure the voltage on pin e0 it is 3.3v, why this happening. kindly help
the fuse setting are as follows
#include <33EP512MU814.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOCKSNOFSM //Clock Switching is disabled, fail Safe clock monitor is disabled
//#FUSES CKSFSM //Clock Switching is enabled, fail Safe clock monitor is enabled
//#FUSES NOBROWNOUT //No brownout reset
#FUSES NOJTAG //JTAG disabled
#FUSES PUT128 //Power On Reset Timer value 128ms
#device ICSP=1
#use delay(clock=96MHz,crystal=12MHz)
//#use i2c(MASTER, SCL=PIN_F5, SDA=PIN_F4, FAST, stream=I2C_PORT1)
#use i2c(MASTER, SCL=PIN_F5, SDA=PIN_F4, FAST)
#pin_select U1TX=PIN_G6
#pin_select U1RX=PIN_C4
#use rs232(UART1, baud=9600, stream=UART_PORT1)
#pin_select U2TX=PIN_G8
#pin_select U2RX=PIN_G7
#use rs232(UART2, baud=9600, stream=UART_PORT2)
#pin_select U3TX=PIN_D3
#pin_select U3RX=PIN_D12
#use rs232(UART3, baud=9600, stream=UART_PORT3)
#pin_select INT1=PIN_A3