Rainbow Electronics aP89042 User Manual

Integrated Circuits Inc. aP89042
APLUS MAKE YOUR PRODUCTION A-PLUS
aP89042 – 42sec
APLUS INTEGRATED CIRCUITS INC.
Address:
3 F-10, No. 32, Sec. 1, Chenggung Rd., Taipei, Taiwan 115, R.O.C.
(115)台北市南港區成功路一段 32 3樓之 10.
TEL: 886-2-2782-9266 FAX: 886-2-2782-9255
WEBSITE : http: //www.aplusinc.com.tw
Sales E-mail:
sales@aplusinc.com.tw
Technology E-mail:
service@aplusinc.com.tw
Ver 3.0 Dec 6, 2006
1
Integrated Circuits Inc. aP89042
FEATURES
l Standard CMOS process. l Embedded 1M EPROM. l 42 Sec Voice Length at 6 KHz sampling and 4-bit ADPCM compression. l Maximum 32 Voice Groups l Combination of voice building blocks to extend playback duration. l 960 table entries are available for voice block combinations. l User selectable PCM or ADPCM data compress. l Two triggering modes are available by whole chip option during voice compilation.
- Key Trigger Mode – Combinations of S1 ~ S8 to trigger up to 32 voice groups; SBT
for sequential trigger of the beginning 16 voice groups..
- CPU Parallel Trigger Mode – Combinations of S1 ~S5 with SBT goes HIGH to strobe
start the voice playback.
l Voice Group Trigger Options: Edge / Level; Hold / Un-hold; Retrigger / Non-retrigger. l Whole Chip Options: Ramp / No-ramp; Output Options; Key / CPU trigger mode. l 16ms (@ 8KHz sampling rate) Debounce Time for both Key CPU Trigger Mode. l RST pin set to HIHG to stop playback at once. l Three user programmable outputs for STOP plus, BUSY signal and flashing LED. l Built-in oscillator to control sampling frequency with an external resistor. l 2.2V – 3.6V single power supply and < 5uA low stand-by current. l PWM Vout1 and Vout2 drive speaker directly. l D/A COUT to drive speaker through an external BJT. l Development System support voice compilation and options selection.
DESCRIPTION
aP89042 high performance Voice OTP is fabricated with Standard CMOS process with embedded 1M bits EPROM. It can store up to 42 sec voice messages with 4-bit ADPCM compression at 6KHz sampling rate. 8-bit PCM is also available as user selectable option. Two trigger modes, simple Key trigger mode and Parallel CPU trigger mode facilitate different user interface. User selectable triggering and output signal options provide maximum flexibility to various applications. Built-in resistor controlled oscillator, 8-bit current mode D/A output and PWM direct speaker driving output minimize the number of external components. PC controlled programmer and developing software are available.
Ver 3.0 Dec 6, 2006
2
Integrated Circuits Inc. aP89042
2 3 4 5 6 7 8
S5
PIN CONFIGURATIONS
S8
OUT1
VOUT1
VOUT2
VSS
OUT2
OUT3
COUT
OSC
1
9
10
DIP / SOP
300 MIL
20
19
18
17
16
15
14
13
12
11
S7
RST SBT
S4
S3 VDD S2
S1
VPP
S6
PIN NAMES
PIN
Playback
Mode
1 S8 - Trigger pin (input with internal pull-down) 2 OUT1 OEB Programmable output (I/O pin) 3 VOUT1 - PWM output to drive speaker directly 4 VOUT2 - PWM output to drive speaker directly 5 VSS VSS Power Ground 6 OUT2 IO Programmable output (I/O pin) 7 OUT3 - Programmable output (I/O pin) 8 COUT - D/A current output
9 OSC ACLK Oscillator input 10 S5 S5 Trigger pin (input with internal pull-down) 11 S6 S6 Trigger pin (input with internal pull-down) 12 VPP VPP Supply voltage for OTP programming 13 S1 S1 Trigger pin (input with internal pull-down) 14 S2 S2 Trigger pin (input with internal pull-down) 15 VDD VDD Positive Power Supply 16 S3 S3 Trigger (input with internal pull-down) 17 S4 S4 Trigger (input with internal pull-down) 18 SBT PGM Trigger pin (input with internal pull-down) 19 RST DCLK Reset pin (input with internal pull-down) 20 S7 S7 Trigger pin (input with internal pull-down)
OTP Program
Mode
Description
Ver 3.0 Dec 6, 2006
3
Integrated Circuits Inc. aP89042
PIN DESCRIPTIONS
S1 ~ S8
Input Trigger Pins:
- S1 to S8 is used to trigger the 32 Voice Groups in both Key and CPU Parallel Trigger Mode.
- In OTP Programming Mode, S1 to S7 are used as program enable pins.
SBT
Input Trigger Pin:
- In Key Trigger Mode, this pin is trigger pin to trigger the playback of Voice Groups one by one
sequentially.
- In CPU Parallel Command Mode, this pin is used as address strobe to latch the input from S1 to
S5 and starts the voice playback.
- In OTP Programming Mode, this pin is used as PGM signal.
VDD
Power Supply Pin.
VSS
Power Ground Pin
VOUT1 and VOUT2
Digital PWM output pins which can drive speaker and buzzer directly for voice playback.
OSC
During voice playback, an external resistor is connected between this pin and the VDD pin to set the sampling frequency. In OTP Programming Mode, this is the ACLK input signal.
VPP
Connection to VDD is required during voice playback. In OTP Programming Mode, this pin is connected to a separate 6.5V power supply.
OUT1, OUT2 and OUT3
- In Key Trigger Mode and CPU Parallel Command Mode, these pins are user programmable pins
for the STOP pulse, BUSY and LED signals.
- During OTP programming, OUT1 serves as OEB while OUT2 serves as data IO.
COUT
Analog 8-bit current mode D/A output for voice playback
RST
Chip reset in playback mode or DCLK pin in OTP programming mode.
Ver 3.0 Dec 6, 2006
4
Integrated Circuits Inc. aP89042
VOICE SECTION COMBINATIONS
Voice files created by the PC base developing system are stored in the built-in EPROM of the aP89042 chip as a number of fixed length Voice Blocks. Voice Blocks are then selected and grouped into Voice Groups for playback. Up to 32 Voice Groups are allowed. A Voice Block Table is used to store the information of combinations of Voice Blocks and then group them together to form Voice Group.
Chip aP89042
Memory size 1M bits Max no. of Voice Block 252 No. of bytes per Voice Block 512 Max. no. of Voice Group 32 No. of Voice Table entries 960 Voice Length (@ 6KHz 4-bit ADPCM) 42 sec
Example of Voice Block Combination
Assume here we have three voice files, they are How are You?, Sound Effect and Music. Each of the voice file is divided into a number of fixed length Voice Block and stored into the memory.
Voice File 1 - How are You?” is stored in Voice Block B0 to B12. Voice File 2 - Sound Effect is stored in Voice Block B13 to B15. Voice File 3 - Music is Voice Block B16 to B40.
Voice Blocks are grouped together using Voice Table to form Voice Group for playback:
Group no. Voice Group contents Voice Table Entries
Group 1 How are You? B0 B12 Group 2 Sound Effect + How are You? B13 B15 + B0 B12 Group 3 How are You? + Music B0 B12 + B16 B40 Group 4 Music B16 B40
Voice Data Compression
Voice File data is stored in the on-chip EPROM as either 4-bit ADPCM or 8-bit PCM format. Voice data stored as 4-bit ADPCM provides 2:1 data compression which can save 50% of memory space. On the other hand, voice data are stored as 8-bit PCM format means no data compression is employed but voice playback quality will be better.
Ver 3.0 Dec 6, 2006
5
Integrated Circuits Inc. aP89042
Programmable Options
In both Key Trigger Mode and CPU Parallel Trigger Mode, user can select different trigger functions and output signals to be sent out from the pins OUT1, OUT2 and OUT3. Options affect all Voice Group playback are called Whole Chip Options. Options only affect the playback of individual Voice Group are called Group Options.
Whole Chip Options
Key or CPU Parallel Trigger Mode.
Ramp-up-down enable or disable:
When COUT is used for playback, Ramp-up-down should be enabled. This function eliminates the POP noise at the beginning and end of voice playback. When VOUT1 and VOUT2 are used to drive speaker directly, Ramp-up-down should be disabled.
Fig. 1 Ramp-up-down Enable Fig.2 Ramp-up-down Disable
Output Options:
This option sets up the three output pins OUT1 and OUT2 to send out different signals during voice playback. Four settings are allowed:
OUT1 OUT2 OUT3
Option 1 LED2 LED1 BUSY Option 2 STOP LED1 LED2 Option 3 LED1 BUSY STOP Option 4 LED1 BUSY /BUSY
Note: Stop plus and BUSY must be set to enable in order to have STOP
plus and BUSY high to come out.
Fig. 3 Output waveforms
Ver 3.0 Dec 6, 2006
6
Integrated Circuits Inc. aP89042
Group Options
User selectable options that affect each individual group are called Group Options. They are:
Edge or Level trigger
Unholdable or Holdable trigger
Re-triggerable or non-retriggerable
Stop pulse disable or enable
Fig. 4 to Fig. 9 show the voice playback with different combination of triggering mode and the relationship between outputs and voice playback.
Fig. 4 Level, Unholdable, Non-retriggerable
Fig. 5 Level Holdable
Fig. 6 SBT sequential trigger with Level Holdable and Unholdable
Ver 3.0 Dec 6, 2006
7
Integrated Circuits Inc. aP89042
Fig. 7 Edge, Unholdable, Non-retrigger
Fig. 8 Edge, Holdable
Fig. 9 SBT sequential trigger with Edge Holdable and Unholdable
Ver 3.0 Dec 6, 2006
8
Integrated Circuits Inc. aP89042
Overlap trigger is supported with Level/Unholdable trigger options:
Fig. 10 Overlap trigger
Ver 3.0 Dec 6, 2006
9
Integrated Circuits Inc. aP89042
TRIGGER MODES
There are two triggering modes available with aP89042.
Key or CPU Trigger modes are determined by setting the EPORM programmable options during voice data compilation.
Key Trigger Mode
With this trigger mode, up to 32 Voice Groups are triggered by setting S1 to S8 to HIGH or NC (not connected) in different combinations. Each Voice Group can have its only independent trigger options (See Fig. 4, 5, 7 and 8 for trigger options definition).
Voice Groups can also be triggered sequentially by setting SBT pin to HIGH.
CPU Parallel Trigger Mode
In this mode, S1 to S5 are set to HIGH or LOW according to the table above and followed by setting the SBT input pin to HIGH, the corresponding Voice Group will be triggered.
Trigger options defined in Fig. 4, 5, 7 and 8 are valid for this mode.
Fig. 11 CPU Parallel Trigger Mode
Note that SBT pin cannot be used as Single Button Sequential trigger in this mode. In stead, it acts as a Strobe input to clock-in the data input from S1 to S5 into the chip.
Ver 3.0 Dec 6, 2006
10
Integrated Circuits Inc. aP89042
Key Trigger Mode
Up to 32 Voice Groups can be triggered by S1 to S8.
Voice Group
1 HIGH
S1 S2 S3 S4 S5 S6 S7 S8
NC NC NC NC NC NC NC 2 NC HIGH 3 NC NC HIGH 4 NC NC NC HIGH 5 NC NC NC NC HIGH 6 NC NC NC NC NC HIGH 7 NC NC NC NC NC NC HIGH 8 NC NC NC NC NC NC NC HIGH 9 HIGH HIGH
10 NC HIGH HIGH 11 NC NC HIGH HIGH 12 NC NC NC HIGH HIGH 13 NC NC NC NC HIGH HIGH 14 NC NC NC NC NC HIGH HIGH 15 NC NC NC NC NC NC HIGH HIGH 16 HIGH 17 HIGH HIGH HIGH 18 NC HIGH HIGH HIGH
NC NC NC NC NC NC HIGH
NC NC NC NC NC NC
NC NC NC NC NC
NC NC NC NC
NC NC NC
NC NC
NC
NC NC NC NC NC NC
NC NC NC NC NC
NC NC NC NC
NC NC NC
NC NC
NC
NC NC NC NC NC
NC NC NC NC 19 NC NC HIGH HIGH HIGH 20 NC NC NC HIGH HIGH HIGH 21 NC NC NC NC HIGH HIGH HIGH 22 NC NC NC NC NC HIGH HIGH HIGH 23 HIGH 24 HIGH HIGH 25 HIGH HIGH HIGH HIGH 26 NC HIGH HIGH HIGH HIGH 27 NC NC HIGH HIGH HIGH HIGH 28 NC NC NC HIGH HIGH HIGH HIGH 29 NC NC NC NC HIGH HIGH HIGH HIGH 30 HIGH 31 HIGH HIGH 32 HIGH HIGH HIGH
NC NC NC NC NC HIGH HIGH
NC NC NC NC NC HIGH
NC NC NC NC
NC NC NC NC HIGH HIGH HIGH
NC NC NC NC HIGH HIGH
NC NC NC NC HIGH
NC NC NC
NC NC
NC
NC NC NC
NC NC
NC
Ver 3.0 Dec 6, 2006
11
Integrated Circuits Inc. aP89042
CPU Trigger Mode
Up to 32 Voice Groups can be triggered by supplying address to [S5:S1] with SBT as strobe signal.
Voice Group S8 S7 S6 S5 S4 S3 S2 S1
1 NC NC NC 0 0 0 0 0 2 NC NC NC 0 0 0 0 1 3 NC NC NC 0 0 0 1 0 4 NC NC NC 0 0 0 1 1 5 NC NC NC 0 0 1 0 0 6 NC NC NC 0 0 1 0 1 7 NC NC NC 0 0 1 1 0 8 NC NC NC 0 0 1 1 1
9 NC NC NC 0 1 0 0 0 10 NC NC NC 0 1 0 0 1 11 NC NC NC 0 1 0 1 0 12 NC NC NC 0 1 0 1 1 13 NC NC NC 0 1 1 0 0 14 NC NC NC 0 1 1 0 1 15 NC NC NC 0 1 1 1 0 16 NC NC NC 0 1 1 1 1 17 NC NC NC 1 0 0 0 0 18 NC NC NC 1 0 0 0 1 19 NC NC NC 1 0 0 1 0 20 NC NC NC 1 0 0 1 1 21 NC NC NC 1 0 1 0 0 22 NC NC NC 1 0 1 0 1 23 NC NC NC 1 0 1 1 0 24 NC NC NC 1 0 1 1 1 25 NC NC NC 1 1 0 0 0 26 NC NC NC 1 1 0 0 1 27 NC NC NC 1 1 0 1 0 28 NC NC NC 1 1 0 1 1 29 NC NC NC 1 1 1 0 0 30 NC NC NC 1 1 1 0 1 31 NC NC NC 1 1 1 1 0 32 NC NC NC 1 1 1 1 1
Ver 3.0 Dec 6, 2006
12
Integrated Circuits Inc. aP89042
BLOCK DIAGRAM
ABSOLUTE MAXIMUM RATINGS
Symbol Rating Unit
VDD - VSS -0.5 ~ +4.5 V
VIN V
V
T (Operating):
T (Junction) -40 ~ +125
T (Storage) -55 ~ +125
V
OUT
DIP
SOP
- 0.3<VIN<V
SS
SS <VOUT<VDD
-10 ~ +70
-40 ~ +85
+ 0.3 V
DD
V
Ver 3.0 Dec 6, 2006
13
Integrated Circuits Inc. aP89042
DC CHARACTERISTICS ( T
Symbol Parameter Min. Typ. Max.
= 0 to 70, VDD = 3.3V, VSS = 0V )
A
Unit Condition
VDD Operating Voltage 2.2 3.0 3.6 V
ISB Standby current
IOP Operating current
 
1 5 μA
15 mA
I/O open
I/O open
VIH "H" Input Voltage 2.5 3.0 3.5 V VDD=3.0V
VIL "L" Input Voltage -0.3 0 0.5 V VDD=3.0V
IOL V
IOH V
ICO C
IOH O/P high Current
low O/P Current
OUT
high O/P Current
OUT
O/P Current
OUT
   
120
-120
-3
-8
   
mA
mA
mA
mA
Vout=0.3V, VDD=3.0V
Vout=2.5V, VDD=3.0V
V
COUT
VOH=2.5V, VDD=3.0V
=1.0V, VDD=3.0V
IOL O/P low Current
F/F
Frequency Stability -5
8
mA
VOL=0.3V, VDD=3.0V
Fosc(3.4V) - Fosc(2.7V)
+5 % Fosc(3V)
Ver 3.0 Dec 6, 2006
14
Integrated Circuits Inc. aP89042
S1~S
5
TIMING WAVEFORMS
KEY Trigger Mode
S1~S8, SBT
COUT
tKD
tSTPD
STOP BUSY
tBD
tBH
CPU Parallel Mode
Addr.
SBT
tAS
tSBTW
tAH
AC CHARACTERISTICS ( T
Symbol Parameter Min. Typ. Max.
tKD Key trigger debounce time 16
tKD Key trigger debounce time – retrigger 24
t
STPD
t
STPW
STOP pulse output delay time
STOP pulse width
= 0 to 70, VDD = 3.3V, VSS = 0V, 8KHz sampling )
A
   
64
tSTPW
Unit Note
ms
ms
256 μs
ms
1
1
1
tBD BUSY signal output delay time
tBH BUSY signal output hold time
tAS Address set-up time 100
tAH Address hold time 100
t
SBTW
t
LEDC
SBT stroke pulse width 16
LED flash frequency
 
100
 
3
Notes :
1. This parameter is inversely proportional to the sampling frequency.
2. This parameter is proportional to the sampling frequency.
100 ns
ns
ns
ns
ms
Hz
1
2
Ver 3.0 Dec 6, 2006
15
Integrated Circuits Inc. aP89042
OSCILLATOR RESISTANCE TABLE
Sampling Frequency
R
OSC
KHz KOhm
4.90
5.26
5.88
300 290 280
6.09 270 110 13.33
6.33 260 100 14.51
6.67 250 91 15.63
6.85 240 82 16.95
7.14 230 75 18.18
7.46 220 68 19.23
7.70 210 62 20.83
8.06 200 56 22.22
8.47 190 51 23.81
8.93 180 43 25.00
9.26 170
9.80 160
10.42 150
Note: The data in the above tables are within 3% accuracy and measured at VDD = 3.0V. Oscillator frequency is
subjected to IC lot to lot variation.
R
OSC
KOhm KHz
Sampling Frequency
140 11.00 130 11.76 120 12.50
Ver 3.0 Dec 6, 2006
16
Integrated Circuits Inc. aP89042
S1 S2 S3 S8
S1 S2 S3 S8
TYPICAL APPLICATIONS
Key Trigger Mode
0.01uF
0.1uF 8
Speaker
VDD,VPP
ROSC
RST OSC
COUT
8050D
390
3.3V
SBT
VOUT1 VOUT2
OUT1
8 / 16 Speaker
VSS
Fig. 12 Using 3.3V Battery
4.5V
HT7335
ROSC
Output driving of HT LDO: HT7136 (30mA, 3.6V) HT7133 (30mA, 3.3V) HT7536 (100mA, 3.6V) HT7335 (250mA, 3.5V)
Fig. 13 Using 4.5V Battery
0.01uF
RST OSC
SBT
VDD,VPP
VOUT1 VOUT2
VSS
COUT
OUT1
10uF
8 / 16 Speaker
8 Speaker
8050D
Ver 3.0 Dec 6, 2006
17
CPU Parallel Mode
S5
S1 S2 S3
• •
VIN=+5V
Integrated Circuits Inc. aP89042
VOUT=+3.5V
HT7335
10uF
8 Speaker
ROSC
0.01uF
VDD,VPP
MCU
Addr[0] Addr[1] Addr[2]
Addr[4]
I[0..2]
Rin
Rin = 860K x (VIN-VOUT) / VIN
Fig. 14 5V CPU Control with COUT
3
RST OSC
OUT[1..3]
VSS
COUT
8050D
Ver 3.0 Dec 6, 2006
18
Integrated Circuits Inc. aP89042
Bonding Diagram
Bonding pad size: 80um x 90um MODE pad MUST be not connected.
Pad Name
VDD 2199.83, 1276.99 VSS 173.70, 358.65
MODE 1918.34, 1281.99 OUT2 173.70, 138.00
S3 1652.19, 1281.99 OUT3 439.31, 138.00
S4 1448.56, 1281.99 COUT 642.94, 138.00 SBT 1182.62, 1281.99 OSC 1276.09, 138.00 RST 978.99, 1281.99 S5 1745.66, 138.00
S7 713.23, 1281.99 S6 1949.29, 138.00
S8 509.60, 1281.99 VPP 2200.12, 299.45
OUT1 243.99, 1281.99 S1 2200.09, 834.58
VOUT1 173.70, 1014.23 S2 2200.09, 1038.21 VOUT2 713.70, 614.27
Location (X,Y) Pad Name
Location (X,Y)
Ver 3.0 Dec 6, 2006
19
Loading...