Tnx for reply Bruce !
I'v tried what You just said, but no success.
the leds dont light up when i change it to "high portc.0[portnr]" instead of "portc.0 = 1"
With or without a Tris statement.
The 18B20 code is Yours from start (part 3 Ds1820&4 lines LCD) and what im try to do is a loop where i adress the port so i dont need 8 identical read parts.
I have it working direct adressing on the read parts and then a common calculate part but it's not a effective coding i guess and im curius why it does'nt work.
This work:
Start_Convert:
OWOUT porta.0, 1, [$CC, $44]' Skip ROM search & do temp conversion
This does not:
for portnr = 0 to 7
Start_Convert:
OWOUT porta.0[portnr], 1, [$CC, $44]' Skip ROM search & do temp conversion
( I can read the portnr on the LCD but not light leds or OW commands)
Brgds Roy
Bookmarks