This is a new problem and I am running out of ideas.
My VA meter is functioning as I wanted except for the proper display part.
That is the wrong messages are coming.
At first I used around 4 msgs and it worked fine.
The VA part uses pointers and "char *Vout" to take out the calculated voltage character by character and display them on LCD.
I removed the over load since I figured I will have current limit which is aslo an overload protection already build in. So I went for over heat shut down.
This part also works and displays proper msgs till it cools down.
All good.
Problem occurs when I added extra 4 msgs at startup of the supply which is only one time.
It was there before but as the code grew the LCD started giving out wrong display all thru out.
The displayed voltage or current shows wrong characters now.
I can fix this if I do not use the start up msgs.
The 4 first time msg that shows the model, spec, owner and version is creating the problem.
If I comment out the " Display_Model();"
which is
Every Msg works flawlessly.
If I add them this thing is going berserk.
I dunno why this is happening. I tried uninstalling and installing the mikroC too. But did not help. I tried other pic's, still same.
I know the PIC is fine cause when I remove the the above 4 msg's all's well.
Even the 4 Msg's are not working, and this drives me nuts.
Atleast they should show, right.
I searched for a long time and read all night long and I could not figure out why.
RB and t0 said something about assigning space for the msg's.
But I still could not figure this out.
This is the final road bump with this project.
I need advice on this
Thanks so far for all of you who helped me to get this far.
My VA meter is functioning as I wanted except for the proper display part.
That is the wrong messages are coming.
At first I used around 4 msgs and it worked fine.
The VA part uses pointers and "char *Vout" to take out the calculated voltage character by character and display them on LCD.
I removed the over load since I figured I will have current limit which is aslo an overload protection already build in. So I went for over heat shut down.
This part also works and displays proper msgs till it cools down.
All good.
Problem occurs when I added extra 4 msgs at startup of the supply which is only one time.
It was there before but as the code grew the LCD started giving out wrong display all thru out.
The displayed voltage or current shows wrong characters now.
I can fix this if I do not use the start up msgs.
The 4 first time msg that shows the model, spec, owner and version is creating the problem.
If I comment out the " Display_Model();"
which is
Rich (BB code):
char txt1[] = "EvilWorks PS600W";
char txt2[] = "0-23V,0-8(10)A";
char *Vout = "00.00";
char *Iout = "00.00";
// Model Information and spec
void Display_Model(){
Lcd_Out(1,1,txt1);
Delay_ms(400); //Delay 400ms
Lcd_Out(2,2,txt2); //Display spec on 2nd Row.
Delay_ms(5000); //Wait for 5 seconds.
Lcd_Cmd(_LCD_CLEAR); //Clear LCD.
Delay_ms(250); //Wait for 250ms.
Lcd_Out(1,1,"R!f@@ (XXXXXX)"); //Display text2.
Lcd_Out(2,1,"Software Ver3.0"); //Display text3.
Delay_ms(5000); //Wait for 5 seconds.
Lcd_Cmd(_LCD_CLEAR); //Clear LCD
}
If I add them this thing is going berserk.
I dunno why this is happening. I tried uninstalling and installing the mikroC too. But did not help. I tried other pic's, still same.
I know the PIC is fine cause when I remove the the above 4 msg's all's well.
Even the 4 Msg's are not working, and this drives me nuts.
Atleast they should show, right.
I searched for a long time and read all night long and I could not figure out why.
RB and t0 said something about assigning space for the msg's.
But I still could not figure this out.
This is the final road bump with this project.
I need advice on this
Thanks so far for all of you who helped me to get this far.