6
AN1555.0
April 13, 2010
SPI Script File
The structure of the command line for SPI interface is
slightly different than for I
2
C. The first executable
command should be an acute symbol followed by letters
“SPIO”, e.g. ‘SPIO. All the following commands start with
the comma followed by data bytes. The total number of
data bytes is limited to 32 for this application. Comments
must start with the number sign “#” followed by any
ASCII symbols. The acute symbol followed by the ENDM,
e.g. ‘ENDM, indicates the end of the script.
Command examples for ISL224x4 family
(2 byte Write, 4 byte Read operation), see Figure 7.
• ,60C0 #Write C0h into the ACR register to set
volatile #operation
• ,C05A #Write 5Ah into reg. 0
• ,80000000, XXXXXX5A #Read from reg. 0 and
compare #with the anticipated data of 5Ah.
where the “X” symbol represents ignored by test.
Command examples for ISL224x6 family
(3 byte Write, 3 byte Read operation) are as follows:
• ,50C8C0 #Write C0h into the ACR register, reg. 8, to
set #volatile operation
• ,50C07F # Write 7Fh into reg. 0
• ,50B000,XXXX7F #Read back from reg. 0 and
compare with #the anticipated data of 7Fh
The script file can be used for programming DCPs in
daisy chain configuration. The DCP Evaluation software
supports up to 8 daisy chained devices. The example of
daisy chain programming is shown in Figure 8.
Note, not all SPI DCPs have daisy chain capability.
FIGURE 7. THE ISL224X4 SCRIPT EXECUTION EXAMPLE
Application Note 1555