1Wire DS2408

Antworten
Lui
Beiträge: 6
Registriert: Sonntag 16. Januar 2011, 13:41

1Wire DS2408

Beitrag von Lui » Montag 21. November 2011, 15:35

Hi
Ich bräuchte mal Eure Hilfe.
Wie kann ich den Baustein DS2408, das ist ein 8 facher I/O, über Profilab ansprechen.
Ich müsste 3 Stück verwenden, wie sieht es dann aus mit der Seriennummer einlesen?
Danke schon mal...

abacom
Site Admin
Beiträge: 3917
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

Re: 1Wire DS2408

Beitrag von abacom » Dienstag 22. November 2011, 09:10

Wie Sie selbst schon bemerkt haben: Es ist ein 1-Wire-Chip!

Ein DIREKTES Ansprechen des 1-Wire-Bus ist mit Profilab NICHT möglich.
Sie benötigen einen "Adapter" auf (USB-)COM, der die 1-Wire-Kommunikation durchführt.
Ob es so etwas als "Kauflösung" gibt ist mir leider nicht bekannt.

Üblicherweise werden 1-Wire-Chips über µ-Controller angesteuert, die dann auch die
PC-Kommunikation ermöglichen. Ohne Kenntnisse der µ-Controller-Programmierung kommt man
aber in diesem Fall nicht aus.
ABACOM support

juergenex
Beiträge: 3
Registriert: Montag 28. Dezember 2009, 14:48

Re: 1Wire DS2408

Beitrag von juergenex » Dienstag 27. Dezember 2011, 15:44

Hatte damals auch lange rumgesucht, wollte die Temperatursensoren ansteuern, fand dann auch den IO chip und den AD Wandler. Hatte dann leider keine Zeit mehr.
Ansteuerung via serialle Schnittstelle, wird dann vom Board umgewandelt.


http://www.homechip.com/catalog/

http://www.homechip.com/catalog/index.p ... 3972a7af02

http://www.homechip.com/catalog/product ... cts_id=144

Kostet etwa 15 Euro. Beschreibung siehe PDF.

http://www.homechip.com/catalog/documen ... n-ha7s.pdf

Hatte damals 2009 auch versucht bei Ababkom USB Interface anzustossen

habe
Beiträge: 36
Registriert: Samstag 18. Oktober 2008, 18:51

Re: 1Wire DS2408

Beitrag von habe » Dienstag 27. Dezember 2011, 16:44

Hallo,

eine weitere Möglichkeit, wäre der DS2482-100 (1 Kanal) oder DS2482-800 (8 Kanäle) Chip.
Das ist ein I2C zu 1Wire Chip.

http://datasheets.maxim-ic.com/en/ds/DS2482-800.pdf

I2C geht ja mit ProfiLab.

juergenex
Beiträge: 3
Registriert: Montag 28. Dezember 2009, 14:48

Re: 1Wire DS2408

Beitrag von juergenex » Freitag 30. Dezember 2011, 11:27

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

Antworten

Zurück zu „Elektronik und µ-Controller“