I would read temperature from TC74 temperature sensor with PIC16F84 and LCD display.
This is my code
SCL var PORTA.3
SDA var PORTA.4
TEMP var BYTE
MAIN:
PAUSE 1000
I2CWRITE SDA, SCL, $9A, $1, [$00]
I2CREAD SDA, SCL, $9A, $0, [TEMP], NOREAD
GOTO OK
NOREAD:
LCDOUT $FE, 1
LCDOUT “NOREAD”
GOTO MAIN
OK:
LCDOUT $FE, 1
LCDOUT “TEMPERATURE= “, #TEMP
GOTO MAIN
END
I don’t know why the display always screen “noread”….. i have verified the connections and it seems ok.... please HELP!!!!!