Hi,
can you please advice how to impliment the One Wire Protocol with MPS430F2274.
my target to communicate with DS2407.
R.G. doron
I am not sure what protocol is needed for the device you are using, but we have this HDQ Application Report, which shows how to use this 1-wire protocol.
Alternatively you could use a GPIO and control this interface with user software.
the device i need to communicate is DS1990A (Serial Number iButton).
is the HDQ protocol is same the 1-wire?
Hi doron,
well, ever thought outside the own box? This interface is already implemented for various MCU's, so why not adapt the code to the MSP430??
Have a look at this AVR318: Dallas 1-Wire® master (app note pdf, related software).
RgdsaBUGSworstnightmare
Hello doron, have u implement the 1 wire interface for MPS430F2274? Regards, Gerald
Hello doron,
have u implement the 1 wire interface for MPS430F2274?
Regards,
Gerald
Hello doron, have u implement the 1 wire interface for MPS430F2274?
Each 1-WireTM device Datasheet contains a detailed description of its interface operation.
Maxim (formerly Dallas) provide a great deal of information - including example code - on how to use and implement their 1-WireTM bus.
http://www.maxim-ic.com/products/ibutton/
Andy Neil, on 8052.com The two key documents that you need to read are: APPLICATION NOTE 126: 1-Wire Communication Through Software Abstract: A microprocessor can easily generate 1-Wire® timing signals if a true bus master is not present (e.g., DS2480B, DS2490). This application note provides an example, written in 'C', of the basic standard speed 1-Wire master communication routines. The four basic operations of a 1-Wire bus are Reset, Write 1 bit, Write 0 bit, and Read bit. Byte functions can then be derived from multiple calls to the bit operations. The time values provided produce the most robust 1-Wire master for communication with all 1-Wire devices over various line conditions. http://pdfserv.maxim-ic.com/en/an/AN126.pdf You can take the code straight from this document - all you have to add is a delay function. APPLICATION NOTE 148: Guidelines for Reliable 1-Wire Networks Abstract: The 1-Wire® protocol was originally designed for communication with nearby devices connection — a way to add auxiliary memory on a single microprocessor port pin. Customers unique applications that involved extending the bus and moving the slave devices farther and master. Problems came up as the bus lengths exceeded both the capabilities of the bus masters of the protocol. 1-Wire device designs responded to the call with added features and protocols, (networking) capabilities, durable steel containers (iButtons®), and mechanisms to assure valid even in severely intermittent contact situations. This document explains the typical 1-Wire networking topologies and makes recommendations operation. It also presents how various 1-Wire masters impact these recommendations. http://pdfserv.maxim-ic.com/en/an/AN148.pdf This document shows you various hardware drive schemes from a single port pin, through a single FET, to advanced drivers. The full list of all iButton and 1-Wire App Notes is here: http://www.maxim-ic.com/appnotes10.cfm/ac_pk/1
The two key documents that you need to read are: APPLICATION NOTE 126: 1-Wire Communication Through Software Abstract: A microprocessor can easily generate 1-Wire® timing signals if a true bus master is not present (e.g., DS2480B, DS2490). This application note provides an example, written in 'C', of the basic standard speed 1-Wire master communication routines. The four basic operations of a 1-Wire bus are Reset, Write 1 bit, Write 0 bit, and Read bit. Byte functions can then be derived from multiple calls to the bit operations. The time values provided produce the most robust 1-Wire master for communication with all 1-Wire devices over various line conditions. http://pdfserv.maxim-ic.com/en/an/AN126.pdf You can take the code straight from this document - all you have to add is a delay function. APPLICATION NOTE 148: Guidelines for Reliable 1-Wire Networks Abstract: The 1-Wire® protocol was originally designed for communication with nearby devices connection — a way to add auxiliary memory on a single microprocessor port pin. Customers unique applications that involved extending the bus and moving the slave devices farther and master. Problems came up as the bus lengths exceeded both the capabilities of the bus masters of the protocol. 1-Wire device designs responded to the call with added features and protocols, (networking) capabilities, durable steel containers (iButtons®), and mechanisms to assure valid even in severely intermittent contact situations. This document explains the typical 1-Wire networking topologies and makes recommendations operation. It also presents how various 1-Wire masters impact these recommendations. http://pdfserv.maxim-ic.com/en/an/AN148.pdf This document shows you various hardware drive schemes from a single port pin, through a single FET, to advanced drivers. The full list of all iButton and 1-Wire App Notes is here: http://www.maxim-ic.com/appnotes10.cfm/ac_pk/1
See: http://www.8052.com/forum/read/149007
Andy Neil Andy Neil, on 8052.com The two key documents that you need to read are: ...
Andy Neil, on 8052.com The two key documents that you need to read are: ...
The two key documents that you need to read are: ...
Seems to be a forum bug there!
That should, of course, say "The two key documents that you need to read"
are they using an external oscillator http://www.ti.com/lit/an/slaa196/slaa196.pdf ? how much is the frequency?
what is BCSCTL2 |= DCOR; // Activate ROSC (Pin 25) ?
Hi! Maybe too late, but look at this implementation of 1-wire for msp430. D