Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
www.lpelettronica.it
Firmware version.1.2R
Doc. Rev.0 (05/01/10)
Features
Separate Analog/Digital Supplies for optimmum
performance
Typical 3.3V Supply Voltage
Non-volatile audio messages storage
Internal Flash Filesystem to store wave files
95 seconds of audio recording
11.025KHz sample rate
High quality voice/audio reproduction
UART communication with external devices
Analog audio output for playback
5KHz audio bandwidth
Small footprint device (20x28mm)
Low power consumption
Applications: automatic distributors, robots, industrial
controllers
Description
Audio Module is a simple integrated solution to store and reproduce high quality voice messages.
Typical applications are automatic distributors, robots, ticket machines and in general all the devices where it is
required to program and play voice messages.
The audio messages can be programmed in the internal 2Mbyte flash memory that is provided with a filesystem to
allow the users to program voice messages as standard wave format files (11KHz 16bit). The wave files are sent to
the Audio Module on the UART port using simple filesystem commands. Programmable baudrate (up to 115200
bps) is available on UART port.
Then the audio files can be reproduced on the single-ended analog ouput by using the playback commands.
Typical Application
DVCC-3.3V
DVCC-3.3V
AVCC-3.3V
DVCC
Microcontroller
4.7uF
AVCC
100nF
100nF
LPM11162
DGND DGND
UART-TX
UART-RX
UART-RX
UART-TX
IN
OUT
/BUSY
/RESET
4.7uF
AGND AGND
AUDIO-OUT
AMP
100nF
AGND
DGND
DGND
AGND
LPM11162
www.lpelettronica.it
Pin Diagram
12 11 10
Pin Description
Pin
number
1
Pin Name
Pin Type
Description
/BUSY
OUTPUT
/RESET
INPUT
3
4
5
6
7
8
9
10
11
12
DVCC
DGND
UART-TX
UART-RX
NC
AVCC
AUDIO-OUT
NC
AGND
NC
POWER
POWER
OUTPUT
INPUT
POWER
OUTPUT
POWER
-
LPM11162
www.lpelettronica.it
Parameter
Digital supply voltage
Analog supply voltage
Digital input pin voltage
Operating ambient temperature range
DC maximum source/sink current from digital output pins
DC maximum source/sink current from analog output pin
Rating
-0.3V to +4.0V
0V to +5.5V
-0.3V to +4.0V
-20C to +85C
10mA
10mA
Parameter
Digital supply voltage
Analog supply voltage
Digital input pin voltage
Operating ambient temperature range
Rating
+2.7V to +3.6V
+2.7V to +5.5V
0V to DVCC
0C to +70C
Electrical Characteristics
Symbol
IDCC
IACC
BW
VIH
VIL
VOH
VOL
Parameter
DC maximum supply current on DVCC
DC maximum supply current on AVCC
Maximum analog output bandwidth
High level input voltage on digital pin
Low level input voltage on digital pin
High level output voltage on digital pin
Low level outputvoltage on digital pin
Min
0.8 DVCC
2.4V
-
Max
70mA
1 mA
5 KHz
0.2 DVCC
0.4V
LPM11162
www.lpelettronica.it
1 Introduction
1.1 Filesystem
The internal filesystem of LPM11162 is designed to store 11025Hz-16bit standard wave format files. The UART
port makes possible to interface the module to another device (for example a small microcontroller or a PC) and to
program the wave files on the module in a few seconds. After the messages have been programmed, the module can
be used for wave file playback reproducing the audio files with transmission of very simple commands.
Users board
LPM11162
Module
Value
128
15 characters
11025 Hz
16
2.094.080 bytes
LPM11162
www.lpelettronica.it
1)
2)
3)
4)
5)
It is not possible to have two file with identical file name, so the File Open command will fail in case the file name
is the same of another file that is already present in the Flash.
LPM11162
www.lpelettronica.it
RESET
AUTOBAUD
POWER-UP INFO
READY TO OPERATE
DVcc
/RESET
UART-TX
Module ID
response
FW Version
response
ID
VER
Auto-baudrate
character
UART-RX
Command
Command
0x55
/BUSY
LPM11162
www.lpelettronica.it
Cmd
Len
(2 bytes)
Len H
Len L
Data
(N bytes)
Data 1
Data 2
....
Data N
Cmd/Res (1 byte):
0x01 File Open command
0x02 File Write command
0x03 File Close command
0x04 File Format command
0x10 Play command
0x11 Stop command
0x12 Volume command
0x81 Module ID response
0x82 Module Firmware Version response
Len (2 bytes):
Number of data bytes in the command/response. Len is sent as high byte first.
Data 1Data N (N bytes):
Sequence of generic N data bytes. Data bytes can be present or not (Len=0) depending on the
command/response.
LPM11162
www.lpelettronica.it
Command
File Open
Description
Open a new file on the module.
Required before writing data into
the file.
Write data bytes into the file that is
currently open for writing.
Cmd
0x01
File Close
File
Format
Play
Stop
File Write
Volume
0x03
Len
Number of
characters in the file
name.
Number of data
bytes in current
command to write
in the file.
0x0000
Not present.
0x04
0x0000
Not present.
0x10
File name
characters.
0x11
Number of
characters in the
name file to be
played.
0x0000
Not present.
0x12
0x0001
0-100
0x02
Data
File name
characters.
Data bytes.
Response
Module ID
Module
Firmware
Version
Description
Send to the host device the
modules ID.
Send to the host device the
modules firmware version and
date.
Res
0x81
0x0002
Len
0x82
0x000D
Data
Modules ID
Modules
firmware version
and date..
LPM11162
www.lpelettronica.it
0x01
Len (2 bytes)
Len H
Len L
Data (N bytes)
Char 1
Char 2
....
Char N
Cmd (1 byte):
0x01 File Open
Len (2 bytes):
Number of characters in the file name (N15).
Char 1Char N (N bytes):
Sequence of N characters of the file name (no terminating char).
Here is shown an example of creating a new file called f1.wav:
0x01
0x00
0x06
0x02
Len (2 bytes)
Len H
Len L
Data (N bytes)
Data 1
Data 2
....
Cmd (1 byte):
0x02 File Write
Len (2 bytes):
Number of data bytes in current command to write in the file (N256).
Data N
LPM11162
www.lpelettronica.it
0x00
0x04
0x0A
0x0B
0x0C
0x0D
0x03
Len (2 bytes)
0x00
0x00
Cmd (1 byte):
0x03 File Close
Len (2 bytes):
0x04
Len (2 bytes)
0x00
0x00
Cmd (1 byte):
0x04 File Format
Len (2 bytes):
LPM11162
www.lpelettronica.it
0x10
Len (2 bytes)
Len H
Len L
Data (N bytes)
Char 1
Char 2
....
Char N
Cmd (1 byte):
0x10 Play
Len (2 bytes):
Number of characters in the audio file name (N15).
Char 1Char N (N bytes):
Sequence of N characters of the audio file name (no terminating char).
Here is shown an example of playing the file f1.wav:
0x10
0x00
0x06
0x11
Len (2 bytes)
0x00
0x00
Cmd (1 byte):
0x11 Stop
Len (2 bytes):
10
LPM11162
www.lpelettronica.it
0x12
Len (2 bytes)
0x00
0x01
Data
Vol
Cmd (1 byte):
0x12 Volume
Len (2 bytes):
Len is 0x0001 because there is only 1 data byte for the volume value.
Vol (1 byte):
Volume level in the range 0-100 (default is 50).
Here is shown an example of setting volume to 70%:
0x12
0x00
0x01
0x46
11
LPM11162
www.lpelettronica.it
0x81
Len (2 bytes)
0x00
Data (2 bytes)
0x04
ID 1
ID 2
Res (1 byte):
0x81 Modules ID
Len (2 bytes):
Len is 0x0002 because the modules ID is 2 bytes long.
ID 1ID 2 (2 bytes):
Sequence of 2 modules ID bytes.
0x82
Len (2 bytes)
0x00
Data (9 bytes)
0x09
...........
Ver
Day 1
Rev
Day 2
Status
Month 1
...........
Month 2
Year 1
Res (1 byte):
0x82 Modules Firmware Version
Len (2 bytes):
Len is 0x0009 because there are 3 bytes for the firmware version and 6 bytes for the date.
12
Year 2
LPM11162
www.lpelettronica.it
Ver...Status (3 bytes):
The firmware version is composed by one Version character, one Revision character and one Status
character. Each character is expresses in ASCII format, so for example the firmware version 1.0R will be
expressed by the characters 10R in the response.
Day 1...Year 2 (6 bytes):
The firmware release date is two bytes for the day, two bytes for the month and two bytes for the year. For
example the date 15/10/09 is expressed by characters 151009 in the response.
0x00
0x09
...........
...........
13
LPM11162
www.lpelettronica.it
3 Timing Specifications
3.1 Reset Timing Specifications
Symbol
tVR
tRL
Parameter
Minimum time between DVCC and /RESET high
Minimum /RESET low time
Min
1 ms
10 ms
Max
-
DVcc
tRL
tVR
/RESET
Parameter
Maximum File Format command time (/BUSY low)
Maximum File Open command time (/BUSY low)
Maximum File Close command time (/BUSY low)
Maximum File Write command time (/BUSY low)
Maximum Stop command time (/BUSY low)
Maximum Volume command time (/BUSY low)
Minimum time between /BUSY high and next command
Min
200 s
Command
UART-RX
Cmd
Len
Command
Data
Cmd
tBC
14
Len
Data
Max
65 sec
40 s
25 s
2.5 ms
250 ms
25 s
-
LPM11162
www.lpelettronica.it
Parameter
Minimum time between /RESET high and auto-baudrate character
Maximum time between auto-baudrate character and module ready
to receive commands (1200 bps worst case)
Baudrate values
Min
600 ms
-
Max
150 ms
1200 bps
115200 bps
/RESET
Module ID
response
FW Version
response
ID
VER
UART-TX
Command
Auto-baudrate
character
UART-RX
0x55
Cmd
/BUSY
tRA
tAC
15
Len
Data
Command
Cmd Len
Data
LPM11162
www.lpelettronica.it
Packaging Informations
12 11 10
F
G
Dim
A
B
C
D
E
F
G
Millimeters
28.0
20.0
2.54
1.40
3.53
12.0
6.0
Inches
1.100
0.787
0.100
0.550
0.139
0.472
0.236
16