Aedolon
Just face it: sometimes nobody envies you. There has to be a bottom and that bottom is probaly you. // http://www.amazon.com/o/registry/VWZ93N4Y6XQT
Bastiaan
Bachelor of Engineering -- Microcontrollers AVR, PIC (asm, C), PC applicaties (C, C++), Webpages (HTML, CSS, PHP, SQL), Rail-infra engineer
Nee, maar ik heb wel een code voor een Atmel maar daar hebbie niks aan.
Probeer eens met google te zoeken naar projecten met PIC en DS1820, zit waarschijnlijk wel wat bij.
Aedolon
Just face it: sometimes nobody envies you. There has to be a bottom and that bottom is probaly you. // http://www.amazon.com/o/registry/VWZ93N4Y6XQT
http://groups.yahoo.com/group/jallist/files/Phil%20Pemberton%27s%20Cod… hier heb ik nu iets gevonden maar het probleem is ik probeer het met een 16F628 met interne clock en er komt niks op het LCD (het werkt want de testlijnen gaan weg)
Aedolon
Just face it: sometimes nobody envies you. There has to be a bottom and that bottom is probaly you. // http://www.amazon.com/o/registry/VWZ93N4Y6XQT
-- 1-Wire example program
-- DS1820, DS18S20, DS1822 thermometer
include 16f628_4
include jpic
include jprint
include jdelay
include 1wire
include hd447804
var byte temp
var byte lstemp
var byte mstemp
forever loop
temp = 1
while (temp != 0) loop
temp = _1w_reset
end loop
_1w_writebyte(0xCC) -- Skip ROM
_1w_writebyte(0x44) -- Convert T
_1w_waitconv -- Conversion delay
_1w_reset -- Reset
_1w_writebyte(0xCC) -- Skip ROM
_1w_writebyte(0xBE) -- Read ScratchPad
lstemp = _1w_readbyte
mstemp = _1w_readbyte
hd44780_clear -- Display the temperature
print_hexadecimal_2(hd44780, mstemp, "0")
print_hexadecimal_2(hd44780, lstemp, "0")
end loop
blijft steken op die loop till reset, sensor kapot ?!
als jullie rest vd includes willen vraag maar (staan op die site)