i want to wrie 100 to the i2c 24c00 then evry time i read it decrase 1 and agaain write to the i2c for example writ 100 read decrease 1 and write to i2c
i2c interface with 8051
Needs a little refinement, but here's a start:
mov a, #100 mov dptr, #i2c24c00 loop: movx @dptr,a dec a jnz loop ret