9.4.2 Example: Write EEPROM Command

The following illustrates the data exchanges that occur during a write operation of four bytes—$04, $09, $19 and $97—to addresses $02, $03, $04, $05 in the current user zone.

StepsHostDeviceValNote
Start

CLA

**

Class (ignored by CryptoMemory®)

Step 2

INS

$B0

Write Instruction

Step 3

P1

**

Address byte A1 (ignored by 0104C - 1616C)

Step 4

P2

$02

Address byte A2 = $02

Step 5

P3

$04

Four data bytes

Step 6

INS

$B0

Device responds with INS code

Step 7

Data

$04

Byte to be written at start address $02

Step 8

Data

$09

Byte to be written at address $03

Step 9

Data

$19

Byte to be written at address $04

Step 10

Data

$97

Byte to be written at address $05

Step 11

Write Cycle

~5 ms

Step 12

SW1

90

Write operation zuccessful

Finish

SW2

$00