logo       

Re: How to program TINI 390 DS2433: msg#00646

hardware.microcontrollers.tini

Subject: Re: How to program TINI 390 DS2433

Pavel Parkhomenko wrote:
Hello all!

I have searched archives, but cannot found any reference to internal
TINI DS2433 programming example. I am trying to do it through
writePagePacket, but its behaviour is very strange: it holds all
information I store until reset, but after reset only one parameter of
five remain intact - all other becomes zeroes.
What is the reason? I thinked that it needs to call a
sendProgramPulse(), but internal adapter's canProgram() call returns
false...


Pavel,

This is a 1-Wire library specific question, but I'll try to answer it.

1-Wire devices have NVRAM (battery backed), EEPROM, or EPROM as memory. The canProgram() function returns true if the adapter can program EPROM devices (12V required). The function you are probably looking for is canDeliverPower() which is a 5V pulse that is used for temperature conversion and EEPROM programming. The DS2433 is an EEPROM device.

I haven't used the DS2433 device, but it looks like you can just call the write() function from the MemoryBank class you get from getMemoryBanks().

Are any exceptions thrown?

-Bryan

--
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise