Simulate DS2401 with ATmega32

1-wireatmegaavrcodevision

I have a DS2401 and an ATmega32.

I can read the its contents with my AVR micro-controller.

I want to know, Is it possible to simulate the DS2401 with my ATmega32? I mean is it possible to connect atmega32 to a third-party master instead of the DS2401? if yes, how?

I myself think I must connect the master [third-party] to a interrupt pin of micro-controller and wait for a initial signal from master, is that right? What next?

Can anybody give me guidance?

Best Answer

Yes, of course you can replace your DS2410 by something else that behave like the DS2410.

Use another AtMega32, because you seem familiar with it, and connect one IO of it to the 1-wire bus.

Remember than the 1-wire bus requires open-drain masters and slaves. Thus you will control your 1-wire pin by switching between output low and input instead of output low and output high.

In all case you will have to write a custom firmware for that additional AtMega to instruct it to behave like a DS2410.