Ich habe noch einmal die alten Emails rausgesucht.
www.embeddeddatasystems.com in den USA.
Anderer Kontakt war
www.homechip.com/
Vielleicht hat jemand die Zeit, ein Beispiel aufzubauen, das duerfte dann fuer alle 1-Wire Chips passen.
Das ganze Haus verkabelt ueber ein 4 Draht Telefonflachkabel war der Plan: Masse, 1-Wire, +12V und Reserve.
Ich hoffe, es hilft.
Juergen,
The HA7S can read/write to the DS2450. Below are some instructions on how to read the DS2450’s 4 channels (I thought it might be helpful).
1. First, you have to configure the resolution at which the DS2450 will perform the A->D conversion. This is done by writing data into memory page 1 on the DS2450, as follows:
Address the DS2450, using the HA7E 'A'ddress command:
A710000000116C220 'Address device (of course you would substitute the 8 byte ROMId of your DS2450)
Write configuration data to page 1 using the HA7E's 'W'rite block command, as follows:
W0155 'Puts the DS2450 into 'Write memory' mode W0A080008FFFFFF00FFFFFF 'Enables channel A with 8 bit resolution W0A080008FFFFFF00FFFFFF 'Enables channel B with 8 bit resolution W0A080008FFFFFF00FFFFFF 'Enables channel C with 8 bit resolution W0A080008FFFFFF00FFFFFF 'Enables channel D with 8 bit resolution
2. Second, you need to tell the DS2450 to perform an A->D conversion on its input channels. This is done by issuing the Convert command to the DS2450 as follows:
A710000000116C220 'Resets the bus, and addresses the DS2450 (of course you would substitute the 8 byte ROMId of your DS2450) W053C0F00FFFF 'Tells the DS2450 to perform an A->D conversion on all 4 input channels.
Now, you need to wait for 100ms with no activity on the 1-Wire bus so the DS2450 can derive power from the bus while performing the A->D conversions.
3. The third step is to read the converted values out of the DS2450, as follows:
A710000000116C220 'Resets the bus, and addresses the DS2450 (of course you would substitute the 8 byte ROMId of your DS2450) W0BAA0000FFFFFFFFFFFFFFFF 'Reads the first 8 bytes from memory page 0
A sample response might be: AA000000CF00C900000000FFFF
The data for each channel is represented in two bytes, LSB first. Data for channel 1 begins at byte #1 (0 based) in the returned response. Resultantly, the response above would be parsed as follows:
LSB MSB
0x00 0x00 Channel 1
0x00 0xCF Channel 2
0x00 0xC9 Channel 3
0x00 0x00 Channel 4
Byte flipping and converting to decimal:
Channel 1 = 0 V ... 0 * (5.10 / 65535) = 0 V
Channel 2 = 52992 ... 52292 * (5.10 / 65535) = 4.069 V Channel 3 = 51456 ... 51456 * (5.10 / 65535) = 4.004 V
Channel 4 = 0 V ... 0 * (5.10 / 65535) = 0 V
Regards, David Cooley Sales Representative Phone 502-859-5490 x807 Fax 502-859-5490
Subject: Re: Embedded Data Systems: CRM Request
Hi David,
I felt a bit silly asking the question, but it all fits now. I saw the white blob on pin 1 as shown on the data sheet.
Thanks. can you confirm that the PCB can read/write as well the DS2450 A/D converter?
Kind regards Juergen
In a message dated 29/12/2009 21:33:28 GMT Standard Time,
david@embeddeddatasystems.com writes:
Juergen,
You are correct the TX is the TTL output (transmit) and the RX is the TTL input (receive). Our datasheets images are a bit confusing. If you were to look at a picture (attached) of the other side of the PCB board, picture would match the diagram.
Regards, David Cooley
From:
epldfpga@aol.com [mailto:
epldfpga@aol.com]
Sent: Monday, December 28, 2009 10:55 AM
To:
david@embeddeddatasystems.com
Subject: Re: Embedded Data Systems: CRM Request
Hi David, thanks for the manual.
Am I correct in assuming that a micro does this job and TX is a CMOS/TTL output of the micro and RX is a CMOS/TTL input of the micro?
It seems that the connections are contradictory, see drawing attached?
Picture bottom view and drawing top view or am I incorrect?
Kind regards
Juergen