Gast
#2246061
Hallo Forum, ich würde gerne eine KlimaLogger http://cgi.ebay.de/TFA-KLIMALOGGER-30-3015-PROFI-HYGROMETER-1-AUsENSENSOR-/260330379491?pt=Mess_Pr%C3%BCftechnik&hash=item3c9ce658e3 an einen AVR anschliessen. Inzwischen habe ich auch schon was über das verwendete Protokoll gefunden: http://web.student.tuwien.ac.at/~e9725348/Projects/klimalogger/documentation_tfa.html Nur werde ich nicht schlau daraus, könntet ihr mir bitte weiterhelfen? Kabel: GND 1 black 5 G -- 2 yellow < 3 TxD nSCL 3 blue < 4 DTR nSDA 4 brown < 7 RTS SCL 5 green > 6 DSR SDA 6 white > 8 CTS >OK, ist soweit klar.(oder auch nicht) >dazu brauch ich ja schon 2 x Max232 an den AVR? Communication Setup: Set DTR and RTS low (thus set SCL and SDA high). Write 'U' (0x55) to TxD at 300N1, until the DSR line starts making a ~12%-high duty cycle. A 50% duty cycle means the device is busy with RF reception, which might not be a good time to take over the I2C bus. Set DTR and RTS high (SCL = 0, SDA = 0) in order to keep control over the i2c bus. >also 0x55 auf TxD mit 300Baud aussenden bis auf DSR(SCL) ein Signal mit >ca 12% high Pegel anliegt. >Dann DTR(nSCL) und RTS(nSCA) auf high ziehen. Low-Level Bitbanging: To write one byte over i2c: for each bit (msb first): SDA = bit SCL = 1 SCL = 0 finish up with stop bit: SDA = 1 status = SDA SCL = 1 SCL = 0 >jetzt kommt die Stelle wo ich nicht mehr ganz mitkomme. >hier soll ich die EEPROM Adresse Bit für Bit an nSDA(RTS) anlegen >und mit wechsel von nSCL (DTR) 1 auf 0 wird das Bit übernommen? >nach 8Bit dann das Stopbit? >was bekomme ich dann als Antwort und auf welchen Leitungen? >Ist jemand hier der sowas schonmal gebastelt hat? >Achso, von C hab ich leder keine Ahnung. >Wenn ich aber verstanden habe wie das ablaufen soll bekomme ich das denke >ich auch in Bascom hin. >Danke schonmal für euere Hilfe.