My system will be composed of a number of free slots which can be populated with some modules (mostly containing power electronics). The simplest the module is, the better, don't want to use a micro to do the job because of its limited FLASH/EEPROM retention time.
The module must be able to report its identity to the main controller (one from the closed universe of, say,
32 possibilities known in advance) and which slot it occupies. A very useful feature would be to have a temperature sensor of some kind for moderate overload detection.I cannot afford many pins to do that, so the simplest
5+5 pin solution of binary encoding the relevant information is not an option.I came up with the idea to (ab)use the Maxim's DS2438 battery monitor and use its voltage/current sensor A/D channels to fetch the value encoded by a resistive divider. The temperature sensor is there for free and the cost is below a buck for 20 pieces in China. It supports the 1-wire bus.
Do you know anything simpler/better or is there anything to worry about that Maxim part?
BTW, why are the Maxim parts so insanely expensive? I could find many applications for the 1-wire DS2450 A/D converter, but the cost makes it pointless -- one can emulate it with any SO8 micro for 1/4 of its price.
Best regards, Piotr