M24LR64-RDW6T2 STMICROELECTRONICS [STMicroelectronics], M24LR64-RDW6T2 Datasheet - Page 123

no-image

M24LR64-RDW6T2

Manufacturer Part Number
M24LR64-RDW6T2
Description
64 Kbit EEPROM with password protection & dual interface
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
M24LR64-R
Appendix A
A.1
The following pseudocode describes how anticollision could be implemented on the VCD,
using recursivity.
Algorithm for pulsed slots
function push (mask, address); pushes on private stack
function pop (mask, address); pops from private stack
function pulse_next_pause; generates a power pulse
function store(M24LR64-R_UID); stores M24LR64-R_UID
function poll_loop (sub_address_size as integer)
last stored collision
end poll_loop
main_cycle:
end_main_cycle
pop (mask, address)
mask = address & mask; generates new mask
mode = anticollision
send_Request (Request_cmd, mode, mask length, mask value)
for sub_address = 0 to (2^sub_address_size - 1)
if stack_not_empty ; if some collisions have been detected and
mask = null
address = null
push (mask, address)
poll_loop(sub_address_size)
pulse_next_pause
if no_collision_is_detected ; M24LR64-R is inventoried
next sub_address
then
endif
then
else ; remember a collision was detected
endif
poll_loop (sub_address_size); recursively to process the
Anticollision algorithm (informative)
store (M24LR64-R_UID)
push(mask,address)
; send the request
; not yet processed, the function calls itself
Doc ID 15170 Rev 10
Anticollision algorithm (informative)
123/128

Related parts for M24LR64-RDW6T2