9.4.3.1 Functional
The Write User Zone command $B0 allows data to be written into the device's currently selected user zone (the procedure for selecting a user zone is described in section 9.4.5 System Write: $B4.
The maximum number of bytes that may be written is as follows:
- $10 for AT88SC0104C through AT88SC1616C (EEPROM page size of 16 bytes)
- $40 for AT88SC3216C and AT88SC6416C (EEPROM page size of 64 bytes)
- $80 for AT88SC12816C and AT88SC25616C (EEPROM page size of 128 bytes)
Each data byte within a page must be loaded once. In Anti-Tearing mode, the maximum value for N is $08 for all devices. A write in Anti-Tearing mode is activated with the set user zone with anti-tearing command (00 B4 0B zz 00); all subsequent writes to the user zone will be in Anti-Tearing mode.
If the host is not allowed to write in the zone, the device will return the “Command Unauthorized” code ($69 $00) after it has received the P3 byte.
| Write User Zone Command | Data Sent | ||||||
|---|---|---|---|---|---|---|---|
| CLA | INS : Command | P1 : Address 1 | P2 : Address 2 | P3 : N | Data(1) | ... | Data(N) |
| ** | $B0 | 0000 0000 | 0a6-- ---a0 | 000n4 --- n0 | d7--- ---d0 | ... | d7--- ---d0 |
