SV: [basicstamps] Can the BasicStamp 2p to work like one 1-wire slave device?
Archiver
Posts: 46,084
Greetings!
I doubt the BS2p is capable of calculating the CRC8 and CRC16 values quickly
enough, even if it can manage to emulate a 1-Wire slave unit successfully. (Not
an easy task even with Assembly language, and probably near impossible with
PBASIC)
But...
DalSemi/Maxim(or whatever) have a dual-ported memory, 1-Wire and a three-wire
system.
This chip(can't remember the designation) is meant to be used like a bridge to
connect microcontrollers as slaves to the 1-wire bus.
:-)
Trygve
Opprinnelig melding
Fra: Alvaro V
I doubt the BS2p is capable of calculating the CRC8 and CRC16 values quickly
enough, even if it can manage to emulate a 1-Wire slave unit successfully. (Not
an easy task even with Assembly language, and probably near impossible with
PBASIC)
But...
DalSemi/Maxim(or whatever) have a dual-ported memory, 1-Wire and a three-wire
system.
This chip(can't remember the designation) is meant to be used like a bridge to
connect microcontrollers as slaves to the 1-wire bus.
:-)
Trygve
Opprinnelig melding
Fra: Alvaro V
Comments
The DalSemi/Maxim chip of you describe corresponds to:
DS2480B <http://www.maxim-ic.com/quick_view2.cfm?qv_pk=2923> ?????
Alvaro V
No... That's not the one.
The DS2480 is a 1-wire MASTER, and will not work as a SLAVE unit. (It can be
used to give the older BS2s 1-Wire functionality, though)
The chip I was thinking of is the DS2404, which has 4096 bits of nonvolatile
dual-port memory including real-time clock/calendar in binary format,
programmable interval timer, and programmable power-on cycle counter
The comon usage is to conenct the 'SLAVE' microcontroller to the SPI bus, and
let the Master connect to the 1-wire bus.
Note: The Master will be able to read from and write to the NVRAM area of this
chip even if it is unpowered. (Can be quite handy sometimes)
A detailed explanation and datasheets can be found at:
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2904
:-)
Trygve
Opprinnelig melding
Fra: Alvaro V