aP89682K/341K/170K/085K - Aplus Integrated Circuits Inc.

Integrated Circuits Inc.
aP89682K/341K/170K/085K
APLUS MAKE YOUR PRODUCTION A-PLUS
VOICE OTP IC
aP89682K – 682sec
aP89341K – 341sec
aP89170K – 170sec
aP89085K – 85sec
APLUS
INTEGRATED CIRCUITS INC.
Address:
3 F-10, No. 32, Sec. 1, Chenggung Rd., Taipei,
Taiwan 115, R.O.C.
(115)台北市南港區成功路一段 32 號 3 樓之 10.
Sales E-mail:
[email protected]
TEL: 886-2-2782-9266
FAX: 886-2-2782-9255
WEBSITE : http: //www.aplusinc.com.tw
Ver 2.3
1
Support E-mail:
[email protected]
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
FEATURES :
•
•
•
•
•
•
•
•
•
Standard CMOS process.
Embedded 16M/8M/4M/2M EPROM.
682/341/170/85 sec Voice Length at 6KHz sampling and 4-bits ADPCM compression.
Maximum 1024 voice groups.
Maximum 48KHz sample rate.
Combination of voice blocks to extend playback duration.
User selectable PCM16 or ULAW8 or PCM8 or ADPCM4 data compression.
7 triggering modes are available :
- Key Mode :
S1 ~ S8 to trigger up to 57 voice groups; Power on play function.
- SBT Mode :
SBT to trigger up to 1024 voice groups sequentially; Power on play function.
- CPU Parallel Mode :
S[8:1] services as 8-bits address to trigger up to 256 voice groups.
with SBT goes HIGH to strobe the address bits.
- SPI Mode : CSB , SCK , DI.
3 wire address control up to 1024 voice groups.
- I2C Mode : SCK , DI.
2 wire address control up to 1024 voice groups.
- MP3 Mode :
S1:Backward , S2: Forward , S3:Stop , S4:Reset ,
SBT: Play/Pause Trigger up to 1024 voice groups.
- aP89 Mode – Function setting similar aP89341/aP89170/aP89085.
Voice Group Trigger Options: Edge / Level; Hold / Unholdable; Retrigger / Non-retrigger.
Optional 16ms or 65us selectable debounce time.
RST pin set HIGH to stop the playback at once.
LVR ( Low voltage reset ).
Programmable outputs pin out1,out2,out3 :
for busy-H , busy-L , stop-H , stop-L , prog busy-H , prog busy-L , Loadbit,
LED flash ( LED high active ) , ~LED flash ( LED low active ).
Three kind oscillator: Internal-Rosc、External-Rosc、Crystal.
•
•
•
•
•
•
2V – 5V single power supply and < 5uA low stand-by current.
16/8/4 level volume control setting available.
16 bits audio out.
PWM Vout1 and Vout2 drive speaker directly.
D/A COUT pin drives speaker through an external BJT or audio AMP.
Development System support for voice compilation.
•
•
•
•
•
Ver 2.3
2
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
DESCRIPTION :
aP89682K/341K/170K/085K series high performance Voice OTP is fabricated with Standard CMOS
process with embedded 16M/8M/4M/2M bits EPROM. It can store up to 682/341/170/85 sec voice
message with 4-bits ADPCM compression at 6KHz sampling rate. 16-bits PCM、8-bits PCM and
8-bits ULAW at (4K to 48K sample rate) is also available for user selecting.
User selectable triggering and output signal options provide maximum flexibility to various
applications. Built-in resistor controlled oscillator, 16-bits current mode DAC output and 14-bits PWM
direct speaker driving output minimize the number of external components. PC controlled programmer
and developing software are available.
Ver 2.3
3
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
PIN NAMES :
PIN
(24-pin)
Playback
Mode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 ~ 24
S7
S8
VPP
VOUT1
VOUT2
VDDP
VDDA
NC
OSC
COUT
VSS
OUT3
OUT2
OUT1
RST
SBT
M1
M0
S1~S6
OTP
Program
Mode
VPP
VDDP
VDDA
VSS
RST
S2、S3
Description
Trigger pin (I/O pin with internal pull-down).
Trigger pin (I/O pin with internal pull-down).
Supply ground.
PWM output to drive speaker directly.
PWM output to drive speaker directly.
Supply voltage.
Analog supply voltage.
Oscillator input.
DAC current output.
Supply ground.
Programmable output (I/O pin).
Programmable output (I/O pin).
Programmable output (I/O pin).
Reset pin (input pin with internal pull-down).
Trigger pin (I/O pin with internal pull-down).
Mode select pin 1 (input with internal pull-down).
Mode select pin 0 (input with internal pull-down).
Trigger pin (I/O pin with internal pull-down).
PIN DESCRIPTIONS :
•
S1 ~ S8 :
Input Trigger Pins:
- In Key Mode : S1 to S8 is used to trigger 57 Voice groups.
- In CPU Parallel Mode : this pin low to high [ Latch ] the address at S1(lsb) to S8(msb)
and starts the voice playback.
- In SPI Mode :
S1 is Chip Select (CSB) pin to initiate the command input.
S2 is the Serial Clock (SCK) pin which clocks the input command and data bits into the chip.
S3 is the Data In (DI) pin in which command and data bits are shifted input into the chip.
- In I2C Mode :
S2 is the Serial Clock (SCK) pin which clocks the input command and data bits into the chip.
S3 is the Data In (DI) pin in which command and data bits are shifted input into the chip.
- In MP3 Mode :
S1:Backward. S2 :Forward. S3:Stop. S4: Reset.
- In aP89 Mode : similar with APLUS 1st Generation OTP IC. (aP89341/aP89170/aP89085 ) usage.
Ver 2.3
4
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
•
SBT :
Input Trigger Pin:
- In SBT Mode :This pin is trigger pin to play Voice Groups one time or looping sequentially up to
1024 Voice Groups.
- In CPU Parallel Mode : This pin is used as address strobe to latch the Voice Group address input
at S1 to S8 and starts the voice playback.
- In MP3 Mode : This pin is Play / Pause.
•
VDDP and VDDA :
Power Supply Pins: These two pins must be connected to the positive power supply.
•
VSS :
Power Ground Pins: VSS and VPP pins must be connected together to the power ground during
voice playback.
In circuit program: VSS and VPP pins must be separated to the power ground. Connect resistor
between power ground and VPP.
•
M0 and M1 :
In Key Mode、SBT Mode、CPU Parallel Mode、MP3 Mode、SPI Mode、and I2C Mode ,
M0 and M1 can be used for Crystal oscillator or volume control.
In aP89 Mode Operating Mode Setting Pins:
- M1=0, M0=0 set the chip into Key Trigger Mode.
- M1=0, M0=1 set the chip into CPU Parallel Command Mode.
- M1=1, M0=0 set the chip into CPU Serial Command Mode.
•
VOUT1 and VOUT2 :
14-bits 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. Or keep OSC floating if choosing INT-Rosc.
Note : External resistor is 68K Ω.
•
VPP :
During voice playback, this pin and VSS must be connected together to the power ground.
In Circuit Program : This pin is connected to a separate 8.5V power supply voltage for OTP
programming. Connect resistor between power ground and VPP.
Note : Resistor is 10K Ω.
•
OUT1, OUT2 and OUT3 :
OUT1,OUT2 and OUT3 can select output function as below :
1. Busy- H : When voice is playing, output high level signal.
2. Busy- L : Inverted output of Busy- H.
3. LED- Flash : When voice is playing, output LED flash pulse.
4. ~LED- Flash : Inverted output of LED- Flash.
5. Stop- H : When voice plays finished, output stop pulse.
6. Stop- L : Inverted output of Stop- H.
7. LoadBit : After load voice data to buffer success, output logic high signal.
Ver 2.3
5
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
8. Prog-Busy - H : When voice of Prog-Busy set 1, high pulse output.
When voice of Prog-Busy set 0, low pulse output.
9. Prog-Busy - L : Inverted output of Prog-Busy - H.
•
COUT :
16-bits current mode DAC output for voice playback.
•
RST :
Chip reset in playback mode.
External reset pull high a capacitor if used internal reset not. capacitor :100nF
Ver 2.3
6
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
VOICE SECTION COMBINATIONS :
Voice files created by the PC base developing system are stored in the built-in EPROM of the
aP89682K/341K/170K/085K chip as a number of fixed length Voice Blocks. Voice Blocks are
then selected and grouped into Voice Groups for playback. Up to 1024 Voice Groups are allowed.
A Voice Blocks Table is used to store the information of combinations of Voice Blocks and then
group them together to form Voice Group.
Chip
aP89682K
aP89341K
aP89170K
16M bits
8M bits
4M bits
2M bits
Max no. of Voice Block
2016
2016
2016
2016
Max. no. of Voice Group
1024
1024
1024
1024
Voice Length
(@ 6KHz 4-bit ADPCM)
682 sec
341 sec
170 sec
85 sec
Memory size
aP89085K
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 block :
B1 = “How”
B4 = Sound Effect
B2 = ”are”
B5 = Music1
B3 = ”You”
B6 = Music2
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?”
B1+B2+B3
Group 2
Sound Effect + “How are You?”
B4+ B1+B2+B3
Group 3
“How are You?” + Music1
B1+B2+B3+B5
Group 4
Music2
B6
Voice Data Compression :
Voice File data is stored in the on-chip EPROM as either 4-bits ADPCM or 8-bits PCM/ ULAW format
or 16-bits PCM format. Voice data are stored as 16-bits PCM forma is without compression. The voice
playback quality is best. Voice data stored as 4-bits ADPCM or 8-bits PCM/ ULAW provide 4:2 data
compression to save memory space. But voice playback quality with be lower than 16-bits PCM format.
Ver 2.3
7
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Group Options :
User selectable options that affect each individual group are called Group Options. They are:
•
•
•
•
Edge or Level trigger.
Unholdable or Holdable option.
Re-triggerable or Non-retriggerable option.
Stop pulse disable or enable.
Fig.1 to Fig.6 show the voice playback with different combination of triggering mode and the
relationship between outputs and voice playback.
Fig.1 Level, Unholdable, Non-retriggerable
Fig. 2 Level Holdable
Fig. 3 SBT sequential trigger with Level Holdable and Unholdable
Ver 2.3
8
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Fig. 4 Edge, Unholdable, Non-retrigger
Fig. 5 Edge, Holdable
Fig. 6 SBT sequential trigger with Edge Holdable and Unholdable
TRIGGER MODES :
There are seven trigger modes available for aP89682K/341K/170K/085K series.
•
•
•
•
•
•
•
Key Mode.
SBT Mode.
CPU Parallel Mode.
SPI Mode.
I2C Mode.
MP3 Mode.
aP89 Mode.
Ver 2.3
9
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Key Mode :
With this trigger mode, the beginning 57 Voice Groups are triggered by setting S1 to S8 to HIGH or
LOW in different combinations. Each Voice Group can have its only independent trigger options (See
Fig. 1,2,4 and 5 for trigger options definition).
The setting of S1 to S8 for triggering the 1st to the 57nd Voice Groups are as follow:
Voice Group
S1
S2
S3
S4
S5
S6
S7
S8
SW1
SW2
SW3
SW4
SW5
SW6
SW7
SW8
SW9
SW10
SW11
SW12
S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GH
HIGH
HIGH
HIGH
NC represents open or no connection
SBT Mode :
A maximum of 1024 Voice Groups are available. And can be triggered one by one sequentially with
the SBT key (See Fig. 3 and 6).
CPU Parallel Mode :
In this mode, S8 to S1 serve as 8-bit addresses input for 256 Voice Groups with S8 represents the MSB
and S1 represents LSB. After Group address is set and ready, setting the SBT input pin LOW to HIGH
will [ LATCH ] and trigger the corresponding Voice Group to playback.
Trigger options defined in Fig. 1,2, 4 and 5 are valid for this mode.
Fig. 7 CPU Parallel Trigger Mode
Note that SBT pin cannot be used as Single Button Sequential trigger in this mode. Instead, it acts as a
Strobe input to clock-in the Voice Group address set at S8 to S1 into the chip.
Voice Groups are represented in Binary address format. For example:
[S8:S1] = 0000 0000 (00 hex) for Voice Group #1
[S8:S1] = 0000 0001 (01 hex) for Voice Group #2
•••
[S8:S1] = 0000 1000 (08 hex) for Voice Group #9
•••
[S8:S1] = 1000 1000 (88 hex) for Voice Group #137
•••
[S8:S1] = 1111 1111 (FF hex) for Voice Group #256
Ver 2.3
11
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
CPU Serial Command Description :
CPU Serial Command include SPI Mode、
、I2C Mode and aP89 CPU Serial Command Mode.
The command support to reference Fig.8 CPU Serial Command Description.
LOAD /
PREFETCH
1. This command pre-load the next Voice Group Address into the address buffer.
2. The "Full/Load" signal will become HIHG once the Group Address is loaded.
3. The Voice Group will be played once the playing of the current Voice Group is
finished.
4. The "Full/Load" signal will become LOW once the Voice Group is played
and the address buffer is released and ready for next PREFECT action.
5. Using this command make sure there is no gap between each Voice Group.
PLAY
1. This command load the Voice Group Address into the address buffer.
2. The current Voice Group will be stopped and play the new one.
PU1
Power up the chip without
ramp-up
(suitable for PWM direct drive).
PU2
Power up the chip with
ramp-up
(suitable for COUT transistor drive).
PD1
Power down the chip without ramp-down (suitable for PWM direct drive).
PD2
Power down the chip with
VOL
Set Volume index of volume Table.
VOL--
Decrease the volume index of volume Table.
VOL++
Increase the volume index of volume Table.
PAUSE
Pause the current Voice Group.
RESUME
Resume the current Voice Group.
REWIND
Play the current Voice Group from it's beginning.
STOUT
Device Status Output.
ramp-down (suitable for COUT transistor drive).
Fig. 8 CPU Serial Command Description
Ver 2.3
12
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
State Description :
State Name
Reset
Configure
Idle
Play
Wait
Sleep
Wakeup
Description
Include Power On Reset (typ 5us) and external reset (depends on the external reset circuit).
All pins are input floating.
Serial Command inhibited.
After reset, state transfer to the " Configure " state.
Internal Chip Configuration.
All pins are input floating.
Serial Command inhibited. (Max configure time = 2ms)
After configuration, state transfer to the "Idle" state.
State transfer to the "Play" state if "active command" received before timeout.
After time out without active command, state transition to the "Sleep" State.
Playing Voice Group include ramp.
State transfer to the "Wait" state if nothing to be played.
Wait new Serial command and back to the play state without time limit.
State transition to the "Sleep" state if "de-active command" received.
Ramp down before transition to the sleep if the "PD2" command be accepted.
State transition to the "Wakeup" state if selected by the host CPU.
(Wait sleep to wake up state time = 20us.)
Single command be buffered and wait to execute after wakeup state!!
(Max wakeup time = 2ms).
State transition to the "Play" state if active command received else to the "Idle" state.
Fig. 9 State Description
*** Active commands are "Load", "Play", "PU1" and "PU2".
De-Active commands are "PD1" and "PD2".
In CPU Serial Command Control :
a. Using PUP1/PUP2 command first from de-active state.
Add 2ms delay after PUP1/PUP2 command is necessary.
b. Max "Output Delay of Busy/Full Signal" equal 2ms during active.
c. OUT2's select is different from the aP89xxx Series. ( POUT)
Output select to reference PIN DESCRIPTIONS of OUT1、OUT2 and OUT3.
Ver 2.3
13
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
aP89 Mode :
This trigger mode is function setting similar with APLUS 1st Generation OTP IC
(aP89341/aP89170/aP89085 ).
In aP89 Mode Operating Mode Setting:
M1=0, M0=0 set the chip into Key Trigger Mode.
It operate to reference Key Mode.
M1=0, M0=1 set the chip into CPU Parallel Command Mode.
It operate to reference CPU Parallel Mode.
M1=1, M0=0 set the chip into CPU Serial Command Mode.
The CPU serial command compatible with APLUS 1st Generation OTP IC.
It is controlled by command sent to it from the host CPU.S1 to S3 are used to input command word
into the chip while OUT1 to OUT3 as output from the chip to the host CPU for feedback response.
-
S1 acts as CS (Chip Select) to initiate the command word input
S2 acts as SCK (Serial Clock) to clock-in the command word at rising edge.
S3 acts as DI (Data-In) to input the command bits.
OUT1 acts as BUSY to indicate the chip is in busy state(include play and ramp).
OUT2 acts as OUT function to output user selected information.
OUT3 acts as Load signal to indicate the Voice Group address buffer is full and waiting for play.
aP89Mode -CPU Serial Command Table [LSB First, Command Byte First]:
D7
D6 D5 D4 D3 D2 D1 D0 G7 G6 G5 G4 G3 G2 G1 G0
PREFETCH
0
1
1
1
0
0
0
1
Voice Group Address Number
PLAY
0
1
0
1
0
1
0
1
Voice Group Address Number
PU1 w/o Ramp
1
1
0
0
0
1
0
1
None
PU2 with Ramp
1
0
0
0
1
1
0
1
None
PD1 w/o Ramp
1
1
1
0
0
0
0
1
None
PD2 with Ramp
1
0
1
0
1
0
0
1
None
VOL
1
0
1
1
0
0
1
0
VOL--
1
0
1
1
0
0
0
1
None
VOL++
1
0
1
1
0
1
0
0
None
PAUSE
0
0
1
1
1
0
0
1
None
RESUME
0
0
0
1
1
1
0
1
None
0
0
0
0
VOL[3:0]
Fig. 10 aP89Mode CPU Serial Command Table
Ver 2.3
14
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
aP89Mode -CPU Serial Command Timing Diagram:
Fig.11(a) aP89Mode CPU Serial Command timing
Fig.11(b) aP89Mode CPU Serial Command timing
* Data is latched at rising edge of SCK.
* aP89Mode CPU Serial Command function reference Fig. 8 CPU Serial Command Description.
Power up with RAMP-UP(PU2) or without RAMP-UP(PU1)
Fig. 12 Power-Up command timing
* Ramp up time : 160mS
Power down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1)
Fig. 13 Power-Down command timing
* Ramp down time : 160mS
Ver 2.3
15
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
(1). Prefetch Voice Group Address :
a. Command timing reference Fig.11(b) aP89Mode CPU Serial Command timing.
b. G7 to G0 total 8 bits to be the Group Address.
c. The OUT3 output (LoadBit) will become logic high once the Group Address is successfully loaded.
d. The Load signal will become logic LOW once the Voice Group is played and the address buffer is
released and ready for next Play action.
(2). Play Voice Group Address :
a. Command timing reference Fig.11(b) aP89Mode CPU Serial Command timing.
b. G7 to G0 total 8 bits to be the Group Address.
c. Playing assign group address immediately.
(3). Power up with RAMP-UP(PU2) or without RAMP-UP(PU1) :
a. Command timing reference Fig.12 Power-up Command timing.
b. PU1 : will power-up the chip and set the VOUT to center value immediately and stay there.
c. PU2 : will power-up the chip and ramp-up COUT from bottom to center value and stay there.
(4).Power down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1) :
a. Command timing reference Fig.13 Power-down Command timing.
b. PDN1 will power-down the chip and set the VOUT data to bottom value immediately.
PDN1 will be executed correctly only if PU1 is executed before.
c. PDN2 will power-down the chip and ramp-down the COUT from its current to bottom value.
PDN2 will be executed correctly only if PU2 is executed before.
(5). Volume Set (VOL[3:0]) :
a. Command timing reference Fig.11(b) aP89Mode CPU Serial Command timing.
b. G3 to G0 total 4bits(0 ~ 15) set volume level (max : 0, min : 15)
(6).Volume - - (VOL--) :
a. Command timing reference Fig.11(a) aP89Mode CPU Serial Command timing.
b. Set volume level decrease.
(7).Volume + + (VOL++) :
a. Command timing reference Fig.11(a) aP89Mode CPU Serial Command timing.
b. Set volume level increase.
(8). Pause and Resume (PAUSE; RESUME) :
a. Command timing reference Fig.11(a) aP89Mode CPU Serial Command timing.
b. In Pause state, VOUT1 and VOUT2 will stay at logic LOW while the COUT will stay at
the current D/A data level. When Resume, the COUT data will continue at the current D/A data level.
Ver 2.3
16
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
SPI Mode :
This trigger mode is specially designed for simple CPU interface. The aP89682K/341K/170K/085K is
controlled by command sent to it from the host CPU. S1 to S3 are used to input command word into
the chip while OUT1 to OUT3 as output from the chip to the host CPU for feedback response.
•
•
•
•
•
•
•
•
S1 acts as CSB (Chip Select) to initiate the command word input.
S2 acts as SCK (Serial Clock) to clock-in the command word at rising edge.
S3 acts as DI (Data-In) to input the command bits.
OUT1 acts as BUSY to indicate the chip is in busy state(include play and ramp).
OUT2 acts as OUT function to output user selected information.
OUT3 acts as Load signal to indicate the Voice Group address buffer is full and waiting
for play.
M0 acts as volume level increase.
M1 acts as volume level decrease.
SPI Command Table [MSB First] : Command input into the chip 16-bits data.
Command
D15
D14
D13
D12
D11
D10
D[9:0]
LOAD
1
0
0
1
0
1
Voice Group Address Number.
PLAY
1
0
0
1
1
0
Voice Group Address Number.
PU1 w/o Ramp
1
0
1
0
0
1
don't care.
PU2 with Ramp
1
0
1
0
1
0
don't care.
PD1 w/o Ramp
1
0
1
1
0
1
don't care.
PD2 with Ramp
1
0
1
1
1
0
don't care.
VOL
0
1
0
0
0
1
VOL--
0
1
0
0
1
0
don't care.
VOL++
0
1
0
1
0
1
don't care.
PAUSE
0
1
1
0
0
1
don't care.
RESUME
0
1
1
0
1
0
don't care.
REWIND
0
1
1
1
0
1
don't care.
0
0
0
0
0
0
VOL[3:0]
Fig. 14 SPI Command Table
Ver 2.3
17
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
SPI Command Timing Diagram:
Fig.15 SPI Command timing
* Data is latched at rising edge of SCK.
* SPI Command function reference Fig. 8 CPU Serial Command Description.
Power up with RAMP-UP(PU2) or without RAMP-UP(PU1)
Fig. 16 Power-Up command timing
* Ramp up time : 160mS
Power down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1)
Fig. 17 Power-Down command timing
* Ramp down time : 160mS
Ver 2.3
18
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
(1). Load Voice Group Address :
a. Command timing reference Fig.15 SPI Command timing.
b. D9 to D0 total 10 bits to be the Group Address.
c. The OUT3 output (LoadBit) will become logic high once the Group Address is successfully loaded.
d. The Load signal will become logic LOW once the Voice Group is played and the address buffer
is released and ready for next Play action.
(2). Play Voice Group Address :
a. Command timing reference Fig.15 SPI Command timing.
b. D9 to D0 total 10 bits to be the Group Address.
c. Playing assign group address immediately.
(3). Power up with RAMP-UP(PU2) or without RAMP-UP(PU1) :
a. Command timing reference Fig. 16 Power-Up command timing.
b. PU1 : will power-up the chip and set the VOUT to center value immediately and stay there.
c. PU2 : will power-up the chip and ramp-up COUT from bottom to center value and stay there.
(4). Power-down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1) :
a. Command timing reference Fig. 17 Power-Down command timing.
b. PDN1 will power-down the chip and set the VOUT data to bottom value immediately.
PDN1 will be executed correctly only if PU1 is executed before.
c. PDN2 will power-down the chip and ramp-down the COUT from its current to bottom value.
PDN2 will be executed correctly only if PU2 is executed before.
(5). Volume Set (VOL[3:0]) :
a. Command timing reference Fig.15 SPI Command timing.
b. D3 to D0 total 4bits(0 ~ 15) set volume level (max : 0, min : 15).
(6). Volume - - (VOL--) :
a. Command timing reference Fig.15 SPI Command timing.
b. Set volume level decrease.
(7). Volume + + (VOL++) :
a. Command timing reference Fig.15 SPI Command timing.
b. Set volume level increase.
(8). Pause and Resume (PAUSE; RESUME) :
a. Command timing reference Fig.15 SPI Command timing.
b. In Pause state, VOUT1 and VOUT2 will stay at logic LOW while the COUT will stay at
the current D/A data level. When Resume, the COUT data will continue at the current D/A data level.
(9). Rewind :
a. Command timing reference Fig.15 SPI Command timing.
b. Play the current Voice Group from it is beginning.
Ver 2.3
19
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
I2C Mode :
This trigger mode is specially designed for simple CPU interface. The aP89682K/341K/170K/085K is
controlled by command sent to it from the host CPU. S2 and S3 are used to input command word into
the chip while OUT1 to OUT3 as output from the chip to the host CPU for feedback response.
•
•
•
•
•
•
•
S2 acts as SCK (Serial Clock) to clock-in the command word at rising edge.
S3 acts as DI (Data-In) to input the command bits.
OUT1 acts as BUSY to indicate the chip is in busy state(include play and ramp).
OUT2 acts as OUT function to output user selected information.
OUT3 acts as Load signal to indicate the Voice Group address buffer is full and waiting
for play.
M0 acts as volume level increase.
M1 acts as volume level decrease.
I2C Command Table [MSB First] : Command input into the chip 16-bits data.
Command
D15
D14
D13
D12
D11
D10
D[9:0]
LOAD
1
0
0
1
0
1
Voice Group Address Number.
PLAY
1
0
0
1
1
0
Voice Group Address Number.
PU1 w/o Ramp
1
0
1
0
0
1
don't care.
PU2 with Ramp
1
0
1
0
1
0
don't care.
PD1 w/o Ramp
1
0
1
1
0
1
don't care.
PD2 with Ramp
1
0
1
1
1
0
don't care.
VOL
0
1
0
0
0
1
VOL--
0
1
0
0
1
0
don't care.
VOL++
0
1
0
1
0
1
don't care.
PAUSE
0
1
1
0
0
1
don't care.
RESUME
0
1
1
0
1
0
don't care.
REWIND
0
1
1
1
0
1
don't care.
0
0
0
0
0
0
VOL[3:0]
Fig. 18 I2C Command Table
Ver 2.3
20
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
I2C Command Timing Diagram:
Fig.19 I2C Command timing
* The data bit only can be changed in SCK low level , but it has to be latched before rising edge
of SCK.
* I2C Command function reference Fig. 8 CPU Serial Command Description.
Power up with RAMP-UP(PU2) or without RAMP-UP(PU1)
Fig. 20 Power-Up command timing
* Ramp up time : 160mS
Add stop condition after power on and internal chip configuration time finish.
In Power up command : After start condition signal, add delay time more than 300us to wake up device.
Power-down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1)
Fig. 21 Power-Down command timing
* Ramp down time : 160mS
Ver 2.3
21
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
(1). Load Voice Group Address :
a. Command timing reference Fig.19 I2C Command timing.
b. D9 to D0 total 10 bits to be the Group Address.
c. The OUT3 output (LoadBit) will become logic high once the Group Address is successfully loaded.
d. The Load signal will become logic LOW once the Voice Group is played and the address buffer
is released and ready for next Play action.
(2). Play Voice Group Address :
a. Command timing reference Fig.19 I2C Command timing.
b. D9 to D0 total 10 bits to be the Group Address.
c. Playing assign group address immediately.
(3). Power up with RAMP-UP(PU2) or without RAMP-UP(PU1) :
a. Command timing reference Fig. 20 Power-Up command timing.
b. PU1 : will power-up the chip and set the VOUT to center value immediately and stay there.
c. PU2 : will power-up the chip and ramp-up COUT from bottom to center value and stay there.
(4). Power-down with RAMP-DOWN(PD2) or without RAMP-DOWN (PD1) :
a. Command timing reference Fig. 21 Power-Down command timing.
b. PDN1 will power-down the chip and set the VOUT data to bottom value immediately.
PDN1 will be executed correctly only if PU1 is executed before.
c. PDN2 will power-down the chip and ramp-down the COUT from its current to bottom value.
PDN2 will be executed correctly only if PU2 is executed before.
(5). Volume Set (VOL[3:0]) :
a. Command timing reference Fig.19 I2C Command timing.
b. D3 to D0 total 4bits(0 ~ 15) set volume level (max : 0, min : 15).
(6). Volume - - (VOL--) :
a. Command timing reference Fig.19 I2C Command timing.
b. Set volume level decrease.
(7). Volume + + (VOL++) :
a. Command timing reference Fig.19 I2C Command timing.
b. Set volume level increase.
(8). Pause and Resume (PAUSE; RESUME) :
a. Command timing reference Fig.19 I2C Command timing.
b. In Pause state, VOUT1 and VOUT2 will stay at logic LOW while the COUT will stay at
the current D/A data level. When Resume, the COUT data will continue at the current D/A data level.
(9). Rewind :
a. Command timing reference Fig.19 I2C Command timing.
b. Play the current Voice Group from it is beginning.
Ver 2.3
22
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
MP3 Mode :
This trigger mode is specially designed for simple MP3 function.
User can start to Play or Pause the voice by SBT pin, and Backward or Forward play by S1 pin or S2
pin, up to 1024 Voice Sections.
•
•
•
•
•
•
•
Ver 2.3
SBT acts as play / pause.
S1 acts as backward.
S2 act as forward.
S3 acts as stop.
S4 act as reset.
M0 acts as volume level increase.
M1 acts as volume level decrease.
23
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Option :
SPI Mode and I2C Mode are Pin S4 as data output (DO)using.
DO (Pin S4) as output from the chip to the host CPU for feedback response.
DO(Pin S4) Output the status bits :
Status
S [15:9]
S [8]
S [7]
S [6]
S [5]
S [4]
S [3]
S [2]
S [1]
S [0]
Description
Reserved.
STO_TAG.
STO_BUSYB.
STO_FULLB / STO_EMPTY.
Reserved.
Reserved.
Reserved.
STO_VALIDB.
STO_PARITY.
STO_TAG.
Fig. 22 SPI Output Status Table
S [15:9] : Reserved.
S [8] : STO_TAG : When received valid command the bit toggle.
S [7] : STO_BUSYB : When voice is playing the bit indicate 0 otherwise 1.
S [6] : STO_FULLB/STO_EMPTY : If voice group is waiting to be played ,the bit indicate 0 otherwise 1.
S [5:3] : Reserved.
S [2] : STO_VALIDB : If the last serial command is valid the bit indicate 0 otherwise 1.
S [1] : STO_PARITY : If digit 1 in group address[D9~D0] total are odd numbers, the bit indicate 0 otherwise 1.
S [0] : STO_TAG : When received valid command the bit toggle.
Ver 2.3
24
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
SPI Mode :
Fig. 23 SPI Data Output Command timing
* Data output to be changed at falling edge of SCK.
SPI TIMING WAVEFORMS
Fig. 24
Part A : Using command reference Fig. 14 SPI Command Table.
Part B : Using command is STOUT.
STOUT Command [MSB First] : Command input into the chip 16-bits data.
Command
STOUT
D15
D14
D13
D12
D11
D10
D[9:0]
0
1
1
1
1
0
don't care.
(1). STOUT(Status Out) :
a. Command timing reference Fig. 23 SPI Data Output Command timing.
b. Get Device Status.
Ver 2.3
25
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
I2C Mode :
Fig. 25 I2C Data Output Command timing
* Data output to be changed at falling edge of SCK.
I2C TIMING WAVEFORMS
Fig. 26
Part A : Using command reference Fig. 18 I2C Command Table.
Part B : Using command is STOUT.
STOUT Command [MSB First] : Command input into the chip 16-bits data.
Command
STOUT
D15
D14
D13
D12
D11
D10
D[9:0]
1
1
1
1
1
1
don't care.
(1). STOUT(Status Out) :
a. Command timing reference Fig. 25 I2C Data Output Command timing.
b. Get Device Status.
Ver 2.3
26
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Oscillator Resistance :
We have 3 modes can choose: Internal resistor、External resistor、Crystal resistance.
Rosc Int – No need to add resistor for OSC.
Rosc Ext – Use 68K ohm resistor in OSC pin.
XT - Setting Crystal mode in M0 pin and M1 pin.
1. The crystal use 16MHz.
2. Use C1 , C2 for capacitor depend on Crystal spec.
Ver 2.3
27
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
BLOCK DIAGRAM :
Fig. 27 Block Diagram
Ver 2.3
ABSOLUTE MAXIMUM RATINGS :
Symbol
Rating
Unit
VDD - VSS
-0.5 ~ +5.0
V
VIN
VSS - 0.3 < VIN < VDD + 0.3
V
VOUT
VSS < VOUT < VDD
V
T (Operating):
-10 ~ +85
℃
T (Junction)
-10 ~ +85
℃
T (Storage)
-10 ~ +85
℃
28
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
Note1:
Note2:
Ver 2.3
29
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
TIMING WAVEFORMS :
•
KEY 、SBT and MP3 Trigger Mode :
Fig. 28
• CPU Parallel Mode :
Fig. 29
Ver 2.3
30
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
• SPI Mode :
Fig. 30
• aP89 Mode CPU Serial :
Fig. 31
Ver 2.3
31
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
• I2C Mode :
Fig. 32
Ver 2.3
32
September 16 2015
Integrated Circuits Inc.
AC CHARACTERISTICS
Symbol
aP89682K/341K/170K/085K
( TA = 0 to 70℃
℃, VDD = 3.3V, VSS = 0V, 8KHz sampling )
Parameter
Min.
Typ.
Max.
Unit
Note
1
tKD
Key trigger debounce time (long)

16

ms
tKD
Key trigger debounce time (long) –
Retrigger during voice playback.

24

ms
tKD
Key trigger debounce time (short)

1

ms
tKD
Key trigger debounce time (short) –
Retrigger during voice playback.

1.5

ms
tSTPW
STOP pulse width (long)

128

ms
1
tSTPW
STOP pulse width (short)

500

µs
1
tAS
Address set-up time
300


ns
tAH
Address hold time
300


ns
tSBTW
SBT stroke pulse width (long)
16


ms
1
tSBTW
SBT stroke pulse width (short)
1


ms
1
tBO
BUSY signal output delay time(long)

24

ms
1
tBO
BUSY signal output delay time(short)

1

ms
1
tCS
Chip select set-up time
100


ns
tCH
Chip select hold time
100


ns
tSCKW
Serial clock pulse width
1


µs
tDS
Data set-up time
100


ns
tDH
Data hold time
100


ns
tSBO
BUSY signal output delay time


2
ms
tRP
Ramp Up time

160

ms
tRP
Ramp Up time at cpu parallel mode

20

ms
tRD
Ramp Down time

160

ms
tRD
Ramp Down time at cpu parallel mode

20

ms
tFD
Full signal output delay time


2
ms
1
1
1
Notes :
1.
Ver 2.3
The long or short debounce time is selectable as whole chip option during Voice Files Compiling.
33
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
In Circuit Program Applications :
Fig. 33
1. Between VPP and GND should add R1(10K)Ω.
2. Between Writer and Circuit connect wire less than 10cm is the better.
Ver 2.3
34
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
TYPICAL APPLICATIONS :
Key Mode
Fig. 34
Ex: Single key control volume.
If volume level is 8 , 12345678123 4….
Ver 2.3
35
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
CPU Parallel Mode
Fig. 35
Note:
1.
2.
3.
4.
Ver 2.3
C is capacitor from 0.1uF to 4.7uF depends on the kind of Vdd source and sound loudness.
Rb is base resistor from 120 Ohm to 390 Ohm depends on Vdd value and transistor gain.
T is an NPN transistor with beta larger than 150.
Reference value for the above components are Rb = 390 Ohm and T = 8050D.
36
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
SPI Mode
Fig. 36
Ver 2.3
37
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
I2C Mode
Fig. 37
Ver 2.3
38
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
MP3 Mode
Fig. 38
Ver 2.3
39
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
BONDING PAD DIAGRAMS (aP89682K/aP89341K)
Notes:
1.
2.
3.
4.
Ver 2.3
Between VPP and GND should add 10KΩ.
VDDA and VDDP should be connected to the Positive Power Supply.
VSSA and VSSP should be connected to the Power GND.
Substrate should be connected to the Power GND.
40
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
BONDING PAD DIAGRAMS (aP89170K/aP89085K)
Notes:
1.Between VPP and GND should add 10KΩ.
2.VDDA and VDDP should be connected to the Positive Power Supply.
3.VSSA and VSSP should be connected to the Power GND.
4.Substrate should be connected to the Power GND.
Ver 2.3
41
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
PACKAGES DIMENSION OUTLINES
24-Pin 300mil P-DIP Package
28-Pin 300mil SOP Package
Ver 2.3
42
September 16 2015
Integrated Circuits Inc.
aP89682K/341K/170K/085K
HISTORY
2015/03/10
aP89682K_341K__170K_085K SPEC.
2015/07/20
aP89682K_341K__170K_085K SPEC : Modify cpu control timing waveforms
Modify Page. 18 DC CHARACTERISTICS
Reduce output function from 14 to 9.
Remove aP89 mode1 and aP89 mode2 and new adding aP89mode.
2015/09/08
aP89682K_341K__170K_085K SPEC : Modify ULAW5 to ULAW8
Add SBT mode independent description.
Optimize the CPU mode control.
Add In Circuit Program application on page. 34.
Ver 2.3
43
September 16 2015