w 13 00 aa command write 0xaa to Registers only, other array elements just keep current value no change.
w 13 00 aa bb write 0xaa to Registers and 0xbb to Registers , other array elements just keep current value no change
w 13 01 bb write 0xbb to Registers only, other array elements just keep current value no change, no over write happen.
w 13 00 00 p w 13 01 bb clear Registers to 0x00 and write 0xbb to Registers,
If you send command w 13 01 bb p w 13 00 r 13 x x x x x p just after silicon powered up, then you can see only reg2 is changed to 0xbb, others keeps 0x00, 'p' means send i2c stop condition, w 13 00 used to change offset to 0x00.
You can refer Bridge Control Panel Help file to get more details of command format.
i cannot understand the read operation ,
if i write : w 13 00 aa bb p
and then perform read operation :
but if i write : w 13 01 bb p
i know only Registers = bb because the led starts to blink .
but if i try to read that register value its seems to appear in the Register index
and not on Register as i expected :
Offset can only be set(and must be set) when you use write command. if you read, it will read data out from the offset you set last time.
w 13 00 aa bb p write offset 00 into ezi2c, then if you use r 13 x x x p, will read data out from offset 00.
w 13 01 bb p set offset to 01, the if you sue r 13 x x x p, the data is read out from offset 01. You actually didn't read register out at all.
Thank you xzng ,
so after i perform a write operation with an offset,
and then i want to read all of my registers (even those before that offset)
how can i do that ?
w 13 00 ; set offset to 00
r 13 x x x x x; read data our from offset 00
or use command 'r 13 00 p r 13 x x x x x'
Thank you so much
For your time xang