User guide

APR6008
Voice Recording & Playback Device Page 9
Revision 2.1
Reading the SID
Each device in the APR60XX series family contains an
embedded Silicon Identification
(SID). The SID can be read
b
y the host processor to identify which family / family member
is bein
g used. Reading the device SID requires issuing two
OpCode commands; a SID command followed b
y any other
command, usuall
y a NOP command. The device will clock
the SID data out on the DO pin as the command that follows
the SID command is clocked in. Fi
gure 9 is a diagram that
describes the process necessar
y for reading SID information.
Figure 9SID Timing
The SID information follows the format given in Figure 10.
The first bit shifted out, D0, is the Overflow bit. The Overflow
bit is set to a binar
y 1 if an attempt was made to record
be
yond the available memory. The Overflow bit is set to a 0 if
an overflow has not occurred. This bit is cleared after it has
been read. The D1 bit is the End Of Data
(EOD) bit. The EOD
bit is set when the device stops pla
ying or fast forwarding as
a result of EOD bit in memor
y. The EOD bit is cleared after it
has been read. The D2 bit is the Ille
gal Address Bit. The Ille-
gal Address Bit is set whenever an illegal address is sent to
the device. The D3 bit is the Lbat bit. This bit is set when the
device senses a suppl
y voltage below specification. The fol-
lowin
g five bits represent the product family. The APR60XX
product famil
y code is binary 01000 as shown in Figure 10.
The next four bits represent the device code. The APR6008
device code is binar
y 0100 as shown in Figure 10 The last
seven bits are random data and should be i
gnored.
Figure 10SID Bit Stream
SID Command Next Command
/CS
SCLK
DI
CDS Output Data
SID Output Data
DO
Lbat
OVF
EOD
Ille
gal Address
D0D1D3D4D5D6D7D8D9D10D11D12D13D14 D2
}
Product
Famil
y
}
000
1
0
~
~
D19
0
0
10
Device
Code
}
APR60XX Series
Famil
y (Binary)
}
APR6008 Device
Code (Binary)
}
Ignore These
Bits
First bit shifted outLast bit shifted out