9.4.3.1 Functional

Figure 9-2. Write User Zone Command Functional Description

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.

Table 9-4. Write User Zone
Write User Zone CommandData Sent
CLAINS : CommandP1 : Address 1P2 : Address 2P3 : NData(1)...Data(N)
**$B00000 00000a6-- ---a0000n4 --- n0d7--- ---d0...d7--- ---d0