declare P16 as AnalogIn stop my program

13 Oct 2014

Hello, i got an unusual problem, maybe there is a simple reason but it's crasy. When i declare P16 as an analog input, the compiler say it's ok, but the program stop in a function at this moment, i use a led to indicate when the problem occure. AnalogIn tension(p16); Voltage . . . strcpy(key,"Closed_value_LIN"); if (cfg.getValue(key,&value[0],sizeof(value))) Closed_value_LIN=StringToHex(value); led3=1;