Ahmed.Soliman
Junior Member level 1
Good Day everyone,
I need some help fixing a bug in my code , I'm writing a program to log temperature in 5 positions using thermocouples , The temperatures should be written on pc using UART , The pic16f877a should measure temperatures through time intervals defined by the user , The user will input this interval in the begining of the program using an analog stick - for example if he push forward time (seconds) increase , pull back time (seconds) decrease , Left switch to minutes instead of seconds , another left hours then days , right will go back to hours ...and so on - then move a switch to start logging .
The problem is in the output of the LCD , when the program starts it should write " Temp. LOGGER" on the first line of the lcd - alphanumerical 16 x 2 - and "Initializing..." on the second line, and while setting hours , in the first line it should write " hours " and it flickers the write arrow in case of setting days .
will i know that the problem may not be clear for you , but the lcd write completely different things or write nothing in particular situations , its not ASCII problem , I've made another program for setting time only and it worked very well.
I really don't understand the reason for this error ,I'm using mikroC to program 16f877a and proteous for simulating my project .
I will attach the proteus simulation file and the C file.
thanks for your time i really appreciate that, and sorry for my poor English .
I need some help fixing a bug in my code , I'm writing a program to log temperature in 5 positions using thermocouples , The temperatures should be written on pc using UART , The pic16f877a should measure temperatures through time intervals defined by the user , The user will input this interval in the begining of the program using an analog stick - for example if he push forward time (seconds) increase , pull back time (seconds) decrease , Left switch to minutes instead of seconds , another left hours then days , right will go back to hours ...and so on - then move a switch to start logging .
The problem is in the output of the LCD , when the program starts it should write " Temp. LOGGER" on the first line of the lcd - alphanumerical 16 x 2 - and "Initializing..." on the second line, and while setting hours , in the first line it should write " hours " and it flickers the write arrow in case of setting days .
will i know that the problem may not be clear for you , but the lcd write completely different things or write nothing in particular situations , its not ASCII problem , I've made another program for setting time only and it worked very well.
I really don't understand the reason for this error ,I'm using mikroC to program 16f877a and proteous for simulating my project .
I will attach the proteus simulation file and the C file.
thanks for your time i really appreciate that, and sorry for my poor English .