glcd (ks0108) print number, problem??
Posted: Thu Oct 21, 2010 12:19 am
Hi
i am trying to setup a thermometer using a ks0108 type glcd 128x64 pixel.
I have been able to type text onto the screen etc, and my ADC is working fine.
Problem is when i use the Print Number function, it doenst do what i want it to, it just counts super fast, looks like its counting between 64 -80 over and over.
to eliminate any error in the ADC side of things i set a variable to 50, "Sample = 50"
then in the print number function told it to display "Sample" this again just counts really fast.
i tried a normal 4x20 display and this does what i expect it to do, so i can only imagine that it might be a bug in the custom_code.c file.
Can someone have a look and see what the problem may be?
My LCD is a JHD12864E. And im using a 16f877 pic
cheers
i am trying to setup a thermometer using a ks0108 type glcd 128x64 pixel.
I have been able to type text onto the screen etc, and my ADC is working fine.
Problem is when i use the Print Number function, it doenst do what i want it to, it just counts super fast, looks like its counting between 64 -80 over and over.
to eliminate any error in the ADC side of things i set a variable to 50, "Sample = 50"
then in the print number function told it to display "Sample" this again just counts really fast.
i tried a normal 4x20 display and this does what i expect it to do, so i can only imagine that it might be a bug in the custom_code.c file.
Can someone have a look and see what the problem may be?
My LCD is a JHD12864E. And im using a 16f877 pic
cheers