Darrel, I've tried you code, may not of put it in the right place
but the set point displayed in hyper terminal is still twice the value shown on the lcd.Code:Main: FOR pid_Channel = 0 TO 3 ; cycle thru all sensors GOSUB SelectSensor GIE = 0 ; disable interrupts before 1-wire @ DS1820_Convert ; start a temperature conversion GIE = 1 ; enable interrupts after 1-wire NEXT pid_Channel Result VAR WORD GetSetpoint: FOR ADchan = 0 to 3 GOSUB GetADC Result = ADvalue*(MaxSetPoint - MinSetPoint) Result = (DIV32 ADmax) + MinSetPoint Setpoints(ADchan) = Result LCDOUT $FE,$C0, dec setpoints(0)>>1," " NEXT ADchan




Bookmarks