Code: Select all
z=0
z =3 ' this is only a test temporary debug-setting of z
select case z
case 1
lcd_out(2,1,"Volts")
case 2
lcd_out(2,1,"Ampere")
case 3
lcd_out(2,1,"Ohms")
case 4
lcd_out(2,1,"watts")
case else lcd_out(2,1,"fail")
end select
/code]
z has set as a byte, the only case section that functions is the "else" case and fail is displayed on the LCD.I have experimented with values of z, and originally had used tmr0 to provide the value. No attempts have succeeded as yet. I get the impression that the conflict is the call to the LCD function, Anyone else found this ,any ideas please?