Owner's manual

Preliminary
APR6016 Data Sheet
Voice Recording & Playback Device Page 7
Revision 1.0
to N:1 where N is an inte
g
er between 1 and 256, excludin
g
2.
The N value should be selected to satisf
y
the followin
g
e
q
ua-
tion as closel
y
as possible:
EXTCLK fre
q
=
(
N
)
*
(
128
)
*
(
selected samplin
g
fre
q
uenc
y)
Example:
Suppose that 8.0 KHz samplin
g
is desired. Assume that
the fre
q
uenc
y
of the si
g
nal present on EXTCLK = 8MHz.
Roundin
g
up, N = 8
The Op Code Parameter bit stream, composed of bits
[A9 - A2][A1 - A0], therefore becomes binar
y
[00001000][10].
The
STOP
Command causes the device to stop the current
operation.
The
STOP_PWDN
command causes the device to stop the
current command and enter power down mode. Durin
g
power
down the device consumes si
g
nificantl
y
less power. The
PWRUP command must be used to force the device into
power up mode before an
y
commands can be executed.
The
SET_REC
command instructs the device to be
g
in
recordin
g
at the sector address specified. The device will
continue to record until the end of the current sector is
reached. If no forthcomin
g
command has been received
when the end of the sector is reached the device will loop
back to the be
g
innin
g
of the same sector and overwrite the
previousl
y
recorded material. If the next command is another
SET_REC
or
REC
command the device will execute the com-
mand immediatel
y
followin
g
the end of the current sector so
that no audio information is lost. For more information see the
section entitled
Recording Audio Data
.
The
REC
command instructs the device to be
g
in recordin
g
in
the current sector. If no new command is received before the
device reaches the end of the sector the device will automati-
call
y
increment to the next se
q
uential sector and continue
recordin
g
. The device will continue to record in this manner
until the memor
y
is exhausted or a
STOP
or
STOP_PWDN
command is received. For more information see the section
entitled
Recording Audio Data
.
The
DIG_ERASE
command erases all data contained in the
sector specified. Erase should not be done before recordin
g
voice si
g
nals into a sector. Erase must be done before storin
g
di
g
ital data in a sector.
The
DIG_WRITE
command stores 3K bits of di
g
ital data in
the specified sector. All 3K bits must be written, no partial
usa
g
e of the sector is possible. The memor
y
acts as a FIFO,
the first data bit shifted in will be the first data bit shifted out. A
sector must be erased usin
g
the
DIG
_
ERASE
command
BEFORE
data can be written to the sector. For more informa-
tion on storin
g
di
g
ital data, see the section entitled
Writing
Digital Data
.
The
DIG_READ
command instructs the device to retrieve
di
g
ital data that was previousl
y
written to the specified sector.
The first bit shifted out is the first bit that was written. The last
bit shifted out is the last bit that was written. For more infor-
mation on readin
g
di
g
ital data see the section entitled
Read-
ing Digital Data.
The
SET_PLAY
command instructs the device to be
g
in pla
y
-
back at the specified sector. If no forthcomin
g
command is
received, or EOD bit encountered, before the end of the sec-
tor is reached the device will loop back to the be
g
innin
g
of the
same sector and continue pla
y
back with no noticeable
g
ap in
the audio output. If the next command is another
SET_PLAY
or
PLAY
command the device will execute the command
immediatel
y
followin
g
the end of the current sector so that no
g
ap in pla
y
back is present. For more information see the sec-
tion entitled
Playing Back Audio Data.
The
PLAY
command instructs the device to be
g
in pla
y
back at
the current sector. If no forthcomin
g
command is received, or
EOD bit encountered, before the device reaches the end of
the sector the device will automaticall
y
increment to the next
se
q
uential sector and continue pla
y
in
g
. The device will con-
tinue to pla
y
in this manner until the memor
y
is exhausted or
a
STOP
or
STOP_PWDN
command is received. For more
information see the section entitled
Playing Back Audio Data.
N
8000000
128 8000()
--------------------------
7.8125==