Sorry Alain, I wasn't too clear on what I meant.
The easypic board HAS pullup resistors on those ports.
When i run the program, the lcd sits there with just the * displaying even when no button has been pressed (portA.0 in this circuit/program)
it does nothing else.
When I press portA.0 the display cycles through set temp (which I can set properly with portA.1 and portA.2)
Next press brings it to the Hysteresis which again will set ptoperly
the 3rd press brings up the temperature display mode (mode 0 )
It displays the temperature at the moment the button is pressed but it never updates or checks again.
I have checked it works by holding down the button on portA.0 and if held down (LOW) then the display works properly, measuring the temperature continious, and if the temp changes it makes port C.0 or C.2 high depending on the set temp and hysteresis.
My problem is I cannot get it to continually measure temperatre without holding down portA.0
Also when I turn the power on first all I get is the LCD blank other than * being displayed.
Having read the code, * should only display after each button press, but it always displays.
Also I'd like it when power is turned on to measure and show the temperature continoiusly until the button (portA.0) is pressed.
Hope that made more sense, as I knew I couldn't put resistors inside the pic![]()
Bookmarks