Maxim chip 1-Wire (OW) driver for MOD54415

Discussion to talk about software related topics only.
Post Reply
rhopf1
Posts: 37
Joined: Mon May 12, 2008 5:57 am

Maxim chip 1-Wire (OW) driver for MOD54415

Post by rhopf1 »

Don't suppose anyone's done this yet? Would be nice to have a starting point.
Thanks,
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by dciliske »

Indeed it would... got a part you want to use in mind? [Gotta have something to work with to make the example >:) Maybe we could use the same one]

I'm not saying that we'll be making one, but this has been on the todo list for a while.
Dan Ciliske
Project Engineer
Netburner, Inc
rhopf1
Posts: 37
Joined: Mon May 12, 2008 5:57 am

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by rhopf1 »

Just starting with a DS2401 Serial Number. We just want a unique to ID see what's plugged onto a cable without having to set switches, flash, etc. Seems an easy way to do it with little overhead.

The closest Freescale example I found is for the i.mx21 processor, probably similar enough to the 54415 but their example "sucks", they poll for bit-by-bit transfer done flags. This really needs to be done in the background under interrupt.

Every other example I've found is bit-banging with called time delays, even worse in a RTOS pre-emptive system.

Was hoping to find a 54415 example using interrupts, guess I have a bunch of homework to do.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by pbreed »

Just ordered some 1-wire parts from Digikey..
A good first project for our new summer intern...

I believe one of the regular commentators on the group has a bit bang 1-wire interface for the older netburners...
I'm just not sure of the code's IP ownership status...
ecasey
Posts: 164
Joined: Sat Mar 26, 2011 9:34 pm

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by ecasey »

I have done a lot of work with one-wire. I did bit banging on a 68HC11F1 originally. It was brutal.

Most recently I have used the DS2480B serial to One-wire chip and ported the Dallas One-wire software to work on the NetBurner MODxxxx series including the 54415 and the NANO. The DS2480B is impressive. It takes care of all of the low level signalling and timing, and is very fast.

The Dallas software takes care of all of the protocol stuff, including multiple serial numbers and configurations for different chip configurations (thermometer, memory, ADC, Switches, etc. Interrupt over one-wire might be doable, I never looked into it.

If you want to be up and running fast, I would recommend the DS2480B. If you want my port of the Dallas software, let me know.

Ed
rhopf1
Posts: 37
Joined: Mon May 12, 2008 5:57 am

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by rhopf1 »

The DS2480 is all nice and good but I don't see how it utilizes the built-in OW on the MOD54415. Seems the MCF54415 already has this functionality, just need to get it up-and-going, buffers, semaphores, interrupts and all.
ecasey
Posts: 164
Joined: Sat Mar 26, 2011 9:34 pm

Re: Maxim chip 1-Wire (OW) driver for MOD54415

Post by ecasey »

You're right, the DS2480B doesn't use the OW on the chip. I looked at that at one point and I recall that the OW on the chip has limited functionality compared to what the DS2480B can do. It appears to be specific to a DS2505 ROM chip, but it should work on any 1-wire chip.

Maxim provides an SDK at: http://www.maximintegrated.com/products ... irekit.cfm that might be helpful, although there is no port for a Freescale MCU. It has functions for handling serial numbers if you want to have more than one 1-wire chip on the bus.
Post Reply