Holtek Voice MCU Workshop User's guide

Voice MCU Workshop V2.1
User Guide
Revision: V1.10
Date: ������������������
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Table of Contents
1 Voice MCU Workshop Description......................................................................... 4
Development platform Introduction and Software Installation.............................................. 4
S/W Operation Quick Start................................................................................................... 9
Start the Voice MCU Workshop V2.1.............................................................................................. 9
Create a New Project.................................................................................................................... 10
Open an existing project................................................................................................................ 46
Hardware Circuit................................................................................................................ 47
Evaluation Board Schematic Diagram........................................................................................... 47
Using the Evaluation Board........................................................................................................... 48
2 ASM and C library Instructions............................................................................ 51
Call Voice library Functions using ASM.............................................................................. 51
Summary....................................................................................................................................... 51
Usage Instructions......................................................................................................................... 51
ASM Library Functions.................................................................................................................. 53
ASM Program Example................................................................................................................. 56
Call Voice library Functions by C....................................................................................... 68
Summary....................................................................................................................................... 68
How to use.................................................................................................................................... 68
C Library Functions....................................................................................................................... 70
C Program Example...................................................................................................................... 73
3 Voice Library Establishment and Emulator......................................................... 85
HT66FV130........................................................................................................................ 85
HT66FV140........................................................................................................................ 87
HT66FV150........................................................................................................................ 89
HT66FV160........................................................................................................................ 91
HT45F67............................................................................................................................ 93
HT45F65............................................................................................................................ 95
HT45F3W........................................................................................................................... 98
HT45F23A........................................................................................................................ 100
HT45F24A........................................................................................................................ 102
HT83F02.......................................................................................................................... 104
HT86BX0.......................................................................................................................... 106
Rev. 1.10
2 of 139
September 28, 2015
Table of Contents
Characteristics................................................................................................................................. 4
System Requirements..................................................................................................................... 4
System Configuration...................................................................................................................... 5
S/W Installation............................................................................................................................... 6
Voice MCU Workshop V2.1 User Guide
4 Audacity Quick Start.............................................................................................111
Audacity Summary............................................................................................................111
Audacity Processing Flow.................................................................................................111
Quick Start....................................................................................................................... 112
5 Adobe Audition CS6 Brief Tutorial..................................................................... 127
Quick Start....................................................................................................................... 128
Edit a single audio file................................................................................................................. 128
Edit Recording ............................................................................................................................ 132
Rev. 1.10
3 of 139
September 28, 2015
Table of Contents
Introduction...................................................................................................................... 127
Voice MCU Workshop V2.1 User Guide
1
Voice MCU Workshop Description
Development platform Introduction and Software Installation
Characteristics
System Requirements
Recommended RAM/
processor speed
Minimum RAM/
processor speed
Windows 7 (32- bit or 64-bit)
4 GB / 2 GHz
2 GB / 1 GHz
Windows Vista (Home Premium/Business/
Ultimate) (32- bit or 64-bit)
4 GB / 2 GHz
1 GB / 1 GHz
Windows XP (32- bit or 64-bit)
2 GB / 1 GHz
512 MB / 1 GHz
Windows Version
Rev. 1.10
4 of 139
September 28, 2015
Voice MCU Workshop Description
The HOLTEK Voice MCU Workshop V2.1 is a software development platform for Voice MCU
product development. Using a simple graphical user interface, it allows users to easily integrate the
project code with their audio files and complete their audio product designs in an easy and efficient
manner. The code will be automatically generated and stored in a voice MCU in a certain format
with the compressed audio files stored in external flash.
Voice MCU Workshop V2.1 User Guide
System Configuration
The complete system has both software and hardware components:
■■ S/W: Voice MCU Workshop V2.1
■■ H/W: ESK-66FV-100 EV board
●● e-Link – user provided
●● Speaker for broadcasting – user provided
Voice MCU Workshop Description
USB
12pin connector
Rev. 1.10
External Speaker
5 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
S/W Installation
Step1. Double-click on the install icon
and the following screen will appear:
Voice MCU Workshop Description
Step2. Click the “Next” button and the following screen will appear:
Add a desktop shortcut or not?
Rev. 1.10
6 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step3. Click “Next” and the following screen will appear:
Voice MCU Workshop Description
Step4. Click "Install” to continue with the installation.
Rev. 1.10
7 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step5. Press the “Finish” button to finish the setup.
Voice MCU Workshop Description
Install the Audacity Audio
Editor or not?
Rev. 1.10
8 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
S/W Operation Quick Start
Start the Voice MCU Workshop V2.1
Double-click the “Voice MCU Workshop V2.1.exe” icon, the following screen will appear:
Voice MCU Workshop Description
Rev. 1.10
9 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Create a New Project
Evaluation Mode:
Step1. Press the "New Project" button to create a new project
Rev. 1.10
10 of 139
September 28, 2015
Voice MCU Workshop Description
Step2. Enter a project name and project path, check the Evaluation Mode and Evaluation Mode
built-in code, as shown below.
Voice MCU Workshop V2.1 User Guide
Step3. Click “OK” and then the following window, which has three selectable pages on the left,
will appear. The Basic Setting page includes a “Mode Selection” box. Here we have already
selected the Evaluation Mode, “Available Function” box and “Available MCU” box, as shown
below:
Voice MCU Workshop Description
Rev. 1.10
11 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step4. Use and setup the four available functions:
■■ Key Function:
●● Click the "Key” button to load/remove the function to/from the MCU.
●● Click the “Key” icon in the MCU block on the right to setup the required key number, as
shown below:
Voice MCU Workshop Description
Rev. 1.10
12 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ External Flash Function:
●● Click the “External Flash” button to load/remove the function to/from the MCU.
●● Click the “External Flash” icon in the MCU block on the right to select the Flash size, as
shown below:
Voice MCU Workshop Description
Rev. 1.10
13 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Speaker Driven Function:
●● Click the “Speaker Driven” button to load/remove the function to/from the MCU.
●● Click the “Speaker Driven” icon in the MCU block on the right to setup the drive mode - at
the present time only the DAC output mode is supported- as shown below:
Voice MCU Workshop Description
Rev. 1.10
14 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Voice Source Function:
●● ① Click the "Voice Source” button to load the function to the MCU.
Voice MCU Workshop Description
Rev. 1.10
15 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ② Click the “Voice Source” icon in the MCU block on the right to add or remove “.wav”
files, as shown below:
Voice MCU Workshop Description
Note: For the maximum frequency limit for the added voice source, refer to the Library Establishment
Information section.
Rev. 1.10
16 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ③ Before loading the voice source file, first click the “Waveform Editor” button to connect
to the “Audacity” Audio Editor to process the voice source file after which it should be saved.
Ensure that the Audacity software has been installed in advance, otherwise it must first be
downloaded from the website http://audacity.sourceforge.net/, Refer to the Audacity Quick
Start for Audacity application details. After loading the file successfully, the “Total Memory
Size”, “Memory Size Used”, “Memory Size Left” information is displayed, as shown below.
Voice MCU Workshop Description
Rev. 1.10
17 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ④ In above ② , press "Open file” and the source setting dialog box, including voice source
information, compression mode settings, etc., appears. After adjusting the settings, click “OK”
to complete the voice source design. Note, as it cannot support multiple options, all the voice
sources must use the same compressed format. See the figure below.
Voice MCU Workshop Description
Rev. 1.10
18 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step5. In this example, we choose the HT66FV140 MCU. When this is done the related selected
MCU information including the MCU pins and internal resources as used by the available
functions are displayed, as shown in the following figure.
Voice MCU Workshop Description
Rev. 1.10
19 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Note 1: Right-click the mouse button and select the MCU frequency, as shown below.
Voice MCU Workshop Description
Rev. 1.10
20 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Note 2: Click the Key icon in the MCU block, then the “Clear All Key” selection appears. If it is
selected the default key pins will be cancelled. You can move the mouse to the pin position
you want to use and click, the pin will then be set as a key pin. In the following figures, the
key pins have been set to PA4 and PA3. Note: Apart from the board, it is not possible to see
the pin connection relationship. The evaluation board pins and the corresponding MCU pins
are shown in the figure below.
Voice MCU Workshop Description
Rev. 1.10
21 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Voice MCU Workshop Description
The following shows the Evaluation Board keys and the corresponding MCU pins:
"S1->PA7, S2->PA6, S3->PA5, S4->PA4, S5->PA3, S6->PB1, S7->PA1"
Rev. 1.10
22 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step6. After finishing the basic setting, switch to the voice program Page.
■■ Click “Voice Program” to enter the project logical design page. The screen is shown below.
Voice MCU Workshop Description
Rev. 1.10
23 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Select an available trigger source and an available function, click and then drag it to the voice
program list appropriate position as shown below. Note that in the “Play Voice” function, it is
necessary to choose between “Play Voice” or “Mult” for added voices. In this way we can make
a sentence through the “add” and “remove” operations.
Voice MCU Workshop Description
Rev. 1.10
24 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step7. After completing the connection of the BiCE000ELINK0B (B Board e-Link), Evaluation
Board and PC, click “OK” to start programming. Note that an external power source is not
allowed here.
■■ Hardware connection:
Voice MCU Workshop Description
Rev. 1.10
25 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Programming
Voice MCU Workshop Description
Rev. 1.10
26 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Programming finish
Voice MCU Workshop Description
Rev. 1.10
27 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Plug in a speaker and power up either using the e-Link or unplug the e-Link and connect to an
external power supply, External POWER supply after insert, please press the POWER button,
the POWER LED and Active LED lights up at the same time on behalf of the function can be
demo.
Voice MCU Workshop Description
Rev. 1.10
28 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Professional Mode:
Step1. Select "New Project" to create a new project
Rev. 1.10
29 of 139
September 28, 2015
Voice MCU Workshop Description
Step2. In the New Project setting window, enter “Project Name”, “Project Path” and check the
“Professional Mode” as shown below.
Voice MCU Workshop V2.1 User Guide
Step3. Click “OK” and then a window which has three optional pages on the left will appear. The
Basic Setting page includes “Mode Selection” in which we have selected the Professional
Mode, “Available Function” and “Available MCU” selection boxes, as shown below.
Voice MCU Workshop Description
Rev. 1.10
30 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step4. Use and setup the three available functions:
■■ External Flash Function:
●● Click the "External Flash” button to load/remove the function to/from the MCU.
●● Click the “External Flash” icon in the MCU block on the right to select the Flash size, as
shown below:
Voice MCU Workshop Description
Rev. 1.10
31 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Speaker Driven Function:
●● Click the “Speaker Driven” button to load/remove the function to/from the MCU.
●● Click the “Speaker Driven” icon in the MCU block on the right to setup the driver mode. At
the present time only the DAC output mode is supported as shown below:
Voice MCU Workshop Description
Rev. 1.10
32 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Voice Source Function
●● ① Click the “Voice Source” button to load/remove the function to/from the MCU.
Voice MCU Workshop Description
Rev. 1.10
33 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ② Click the "Voice Source" icon in the MCU block on the right to add or remove ".wav"
files, as shown below:
Voice MCU Workshop Description
Rev. 1.10
34 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ③ Before loading the voice source file, you can first click the “Waveform Editor” button
to connect to the “Audacity” Audio Editor to process the voice source file after which it
can be saved. Note: ensure that the Audacity software is installed, otherwise it must first be
downloaded from the website http://audacity.sourceforge.net/. Then refer to Audacity Quick
Start for the Audacity application details. After loading the file successfully, the “Total Memory
Size”, “Memory Size Used”, “Memory Size Left” information is displayed, as shown below.
Voice MCU Workshop Description
Note: For the maximum frequency limit for the added voice source, refer to the Library Establishment
Information section.
Rev. 1.10
35 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● ④ In above ② , press "Open file” and a source setting dialog box, including voice source
information, compression mode setup, etc., appears. After these have been setup, click “OK”
to complete the voice source design. Note: as it is unable to support multiple options, all the
voice sources must use the same compressed format.
Voice MCU Workshop Description
Rev. 1.10
36 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step5. If an MCU has been selected, then the MCU related information including the MCU pins
and internal resources that can be used by the available functions are displayed as shown in
the following figure.
Voice MCU Workshop Description
Rev. 1.10
37 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Note: Right-click the mouse button, select the MCU frequency, as shown below.
Voice MCU Workshop Description
Rev. 1.10
38 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step6. After completing the basic settings, switch to the voice program page as shown in the
following figure.
Voice MCU Workshop Description
Rev. 1.10
39 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step7. According to the number of required trigger commands now arrange the program. Here
Command means play sentence address, as shown below:
Voice MCU Workshop Description
Rev. 1.10
40 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step8. After finishing the voice program page setup, click “OK” and program the DAT file (audio
compressed file) into the Flash memory. The stored data then can be called in the same way
as the generated library under the professional mode and some related functions.
Voice MCU Workshop Description
Rev. 1.10
41 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Step9. Create a new IDE-3000 project within the professional mode project directory that was just
created for calling related libraries and files.
■■ Choose IDE3000 “‘Project’-> "New” to create a new project
Voice MCU Workshop Description
Rev. 1.10
42 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ After clicking “New”, a dialog box will appear after which the project information can be entered.
The location is the same as the project
location in the workshop
Select MCU
Note: due to Compiler requirements, the library file must be in the same directory as the project.
Therefore the new IDE3000 project location must be the same as the platform project location
for the called library. If the two projects are in different directories, it is necessary to copy the
library file
Rev. 1.10
into the IDE3000 project directory.
43 of 139
September 28, 2015
Voice MCU Workshop Description
Project name
Voice MCU Workshop V2.1 User Guide
■■ Click “next” and then choose the development language.
Voice MCU Workshop Description
Rev. 1.10
44 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Add the library file to the new IDE3000 project
Voice MCU Workshop Description
■■ Refer to the ASM CALL or C CALL section (press Ctrl key and click the link to jump there)to
learn how to call functions for building projects.
Step10. After creating the project, download the .MTP file generated by IDE-3000 to the voice IC
for debugging and playing.
Rev. 1.10
45 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Open an existing project
Click on "Load Project” to open an existing project location. Then edit or download it just in the
same way as creating a new project. The interface is shown in the following figure.
Voice MCU Workshop Description
Rev. 1.10
46 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Hardware Circuit
Evaluation Board Schematic Diagram
1
2
A
R1
J1
J2
MMBT3906(8550)
Q1
VIN
2K
For e-Link
VDD
O2C
O2D/LED
U7
1
0.1uF
VDD
MISO 100 R35
SCK 300 R36
MOSI
100 R37
CS 100 R38
Link_Res
1
2
3
4
5
6
7
8
9 10
11 12
R33
10K
VCC
2
13
3
12
4
11
5
10
6
9
7
8
GND
3V3
SCS
MOSI
SCK
MISO
R10
100 R34 3V3
POW
VDD
R6
10R
0805
C
8
7
3
4
MCU_VDD
C4
104
ESK-66FV-100
C5
10uF
V1.03
2014-10-16
R5
1K5
CEB
SCK
SO
SI
PA0/O2D
PA2/O2C
PB2
PC3
24
PC7/SCS
PC5/SCK
PC6/MISO
PC4/MOSI
VDD
BIAS
AUD
PA1
PB1
PA3
PA4
PA5
PA6
PA7
AVDD_PA
R7
C11 1uF
PC0
PC1
PC2
BIAS
AUD
AUD_IN 21
1K
C10
1nF
23
22
0805
VSS
18
SP+
SP-
AVSS_PA
PB0/VDDIO
11
9
10
8
SCS
SCK
MISO
MOSI
1
15
4
3
28
27
26
a/S7
b/S6
c/S5
d/S4
e/S3
f/S2
g/S1
2
5
6
S1
S2
S3
20
17
12
NO.
B
O2D/LED
LED2
R28
1K5
7SEG[0..6]
Q3 C
B
R18
10K
S[1..3]
a/S7
b/S6
c/S5
d/S4
e/S3
f/S2
g/S1
2
1
SP+
SP3V3
Q4 C
B
E
R19
10K
Q5 C
8050
B
E
5.1K
R27
R26
R25
R24
R23
R22
R21
R20
10K
E
C
S7
S6
S5
S4
S3
SP1
S2
Speaker
S1
3V/8Ω 410mW
5V/8Ω 1200mW
PC0~PC7
VDDIO
2
1
HT66FV140
28SOP/28SSOP/28DIP
VOL
a
b
c
d
e
f
g
dp
DS1
7SEG-3(0.36)
AUD_IN
25
R8
0R
11
7
4
2
1
10
5
3
3S
19
SCS
SCK
MISO
MOSI
300R
R17
R16
R15
R14
R13
R12
R11
SST25VF032B
U1
14
13
16
7
1
6
2
5
a/S7
b/S6
c/S5
d/S4
e/S3
f/S2
g/S1
2S
C7
104
U2
VDD
/HOLD
/WP
VSS
22uF
D
C3
10uF
1S
C6
10uF
R30 10K
C8
C9
A
8
9
21
O2D/LED
O2C
Link_Res
10uF
104
3V3
3
LED1
3
SPI[0..3]
3V3
14
10K
10K
VR1
Vin
Vout
GND
3S
2S
1S
CN1
U4
HT7533-2
2
Link_Res
C12
3V3
B
3.6K
Vin
Vout
GND
C2
C1
100uF/25V
1
MircoUSB
U3
HT7550
2
Q2 C
B 8050
E
R4
R3
5.1K
VDD
1N4148
R2
2K
POWER
R29
100
D1
B
S8
POW
Power
C
1
DCJACK
1
2
3
4
5
E
4
D
For Extend Speaker
J3
1
Rev. 1.10
2
3
47 of 139
4
September 28, 2015
Voice MCU Workshop Description
6~16V
3
Voice MCU Workshop V2.1 User Guide
Using the Evaluation Board
■■ Evaluation board introduction
LED
Micro USB
Power Interface
Volum Krob
HT66VV140
SPI
Flash
Voice Source
Interface
Power Switch
Key
■■ Hardware setting steps - Evaluation board has been programmed
●● Connect the external speaker
●● Connect to a 6V~16V power using the “power interface” or connect to a 5V power via the
“micro USB port” and turn on the “power switch”. Another solution is to allow the e-Link to
supply the power.
●● Adjust the “audio control keys” to control audio playback and then turn the “volume knob” to
change the volume.
Rev. 1.10
48 of 139
September 28, 2015
Voice MCU Workshop Description
e-Link Interface
Voice MCU Workshop V2.1 User Guide
■■ Flash Memory DAT File Programming Connections
●● Flash connections
The following shows the flash pin assignment.
When programming the flash memory, the e-Link pins and flash pins should be connected as
follows:
e-Link VDD–>flash VDD; e-Link GND–>flash VSS;
e-Link MISO–>flash SO; e-Link SCK–>flash CK;
e-Link MOSI–>flash SI; e-Link SCS–>flash CE#.
Rev. 1.10
49 of 139
September 28, 2015
Voice MCU Workshop Description
The figure shows the e-Link pin assignment and the actual device in which the triangle points to
Pin 1. The pins in the two pictures directly correspond.
Voice MCU Workshop V2.1 User Guide
●● supported Flash series
MX Series
128M bits
MX25L12873F
MX25L6406E
64M bits
32M bits
MX25L6435E
MX25L3208E
MX25L3273E
MX25L6473E
MX25L8006E
MX25L8035E
MX25L8036E
MX25L1608E
MX25L4006E
4M bits
MX25L1635E
2M bits
MX25L1673E
MX25L1006E
MX25L1026E
MX25L4026E
MX25L2006E
MX25L2026E
512K bits
MX25L512E
4M bits
SST25VF040B
SST Series
32M bits
SST25VF032B
16M bits
SST25VF016B
8M bits
SST25VF080B
2M bits
SST25PF020B
SST25VF020B
Winbond Series
128M bits
64M bits
32M bits
W25Q128BV
W25Q128FV
Rev. 1.10
W25Q80DV
W25Q64CV
W25Q80BL
W25Q64FV
W25Q40CL
W25Q32FV
W25Q32BV
W25Q16CV
16M bits
W25Q80CV
8M bits
4M bits
2M bits
W25X40CL
W25Q20CL
W25X20CL
W25Q32BV
1M bits
W25X10CL
W25Q16CL
512K bits
W25X05CL
50 of 139
September 28, 2015
Voice MCU Workshop Description
8M bits
MX25L1633E
MX25L1636E
1M bits
MX25L3235E
MX25L6408E
MX25L1606E
16M bits
MX25L3206E
Voice MCU Workshop V2.1 User Guide
2
ASM and C library Instructions
Call Voice library Functions using ASM
Summary
ASM and C library Instructions
This chapter will introduce how to call the Voice library functions using ASM.
Usage Instructions
After creating the .ASM project:
■■ Add the library file
Rev. 1.10
51 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Add the header file
Add the library header file, such as the HT66FV140.hed, in order to call the library functions.
ASM and C library Instructions
■■ Refer to the Program Example for programming.(ASM Program Example)
Rev. 1.10
52 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
ASM Library Functions
■■ _CLRRAM
Description:
Clear all the ram banks.
Example:
_CLRRAM
■■ _DAC_RAMP_UP
Description:
Enable DA function. After the function is executed, then call the “_PLAY_VOICE” or “_
PLAY_SENTENCE” functions.
Example:
_DAC_RAMP_UP
_PLAY_VOICE 0, 0, 0, 7, 0
■■ _DAC_RAMP_DOWN
Description:
Disable the DA function. After the “PLAY_VOICE” or “_PLAY_SENTENCE” functions is
executed then call the function to reduce unnecessary power consumption.
Example:
_PLAY_VOICE 0, 0, 0, 7, 0
_DAC_RAMP_DOWN
■■ _STOP_PLAY
Description:
Stop playing. Call this function directly at any time.
Example:
_STOP_PLAY
Rev. 1.10
53 of 139
September 28, 2015
ASM and C library Instructions
■■ _SYSTEM_INITIALIZATION
Description:
Setup the system frequency fSYS, SPI interface configuration, timers initialization, etc.
Example:
_CLRRAM
_SYSTEM_INITIALIZATION
Voice MCU Workshop V2.1 User Guide
■■ _PLAY_VOICE VoiceNumHigh, VoiceNumLow, Channel, Volume, Reserve
Description:
Play the voice file and the DAT generated by the WAV voice file saved to the flash with the
Voice Workshop in advance.
Parameter:
VoiceNumHigh: Voice NUM high byte
VoiceNumLow: Voice NUM low byte
Channel :
Voice channel selection(now only support channel 0)
Volume :
Voice volume selection(0-7)
Reserve :
0
Example:
Play the first audio source original file (Note: on the UI, the first audio source number is 0 instead of 1)
Select volume 7
Then: _DAC_RAMP_UP
_PLAY_VOICE 0, 0, 0, 7, 0
Note: the formal parameter can be in variable form, PLAY_VOICE(A,B,C);
Rev. 1.10
54 of 139
September 28, 2015
ASM and C library Instructions
■■ _VOLUME Volume
Description:
Set the volume level. Write the volume value with reference to the specification.
Parameter:
Volume: The specification volume value.
Example: _VOLUME 0 ; Set the volume to minimum.
_VOLUME 7
; Set the volume to maximum. Note that for different volume values,
; there ; are different settings scopes, so refer to the specification for
; the volume value.
Note: volume of 0 ~ 12 HT66FV1X0 series
Voice MCU Workshop V2.1 User Guide
■■ _PLAY_VOICE_ISR
Description:
According to the initialization time, when the timer interrupt arrived, enter into the interrupt
function to play voice.
Example:
ORG XXH
; XXH: play voice timer interrupt entry
_PLAY_VOICE_ISR
■■ _PLAY_SENTENCE_ISR
Description:
According to the initialization time, when the timer interrupt is generated, enter the interrupt
subroutine to play a sentence.
Example:
ORG XXH
; XXH: play sentence timer interrupt entry
_PLAY_SENTENCE_ISR
Note: The program is used to determine whether a voice or sentence is playing or has been played
MOV A,00H
SZ fSentencePlaying ;fSentencePlaying =1 means Sentence is playing, 0 means played
RET
SZ fVoiceStandBy;fVoiceStandBy =0 means Voice is playing, 1 means played
MOV A,01H
;if Play voice or sentence has finished, then A=1, or A=0. Through the
; A value, to determine if voice or sentence has played.
Rev. 1.10
55 of 139
September 28, 2015
ASM and C library Instructions
■■ _PLAY_SENTENCE SentenceNumHigh, SentenceNumLow, Channel, Volume, Reserve
Description:
play_sentence
Parameter:
SentenceNumHigh:
SentenceAddr high byte
SentenceNumLow:
SentenceAddr low byte
Channel :
Voice channel selection(now only support channel 0)
Volume :
Sentence voice volume
Reserve :
0
Example:
Play the first sentence file, assume the address is 0100H and set the volume as 7
then:_DAC_RAMP_UP
_PLAY_SENTENCE 01h, 00h, 0, 7, 0
Note:sentence addresses can be seen in the Demo_key_mapping.h file within the Workshop
project directory, as shown below (the first sentence address is 0100H)
Voice MCU Workshop V2.1 User Guide
ASM Program Example
■■ [Application example – HT66FV130]
#INCLUDEHT66FV130.INC
#INCLUDEHT66FV130.HED
Rev. 1.10
56 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLRWDT
CLRWDT2
JMPBegin
ORG08H
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 50H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT66FV130]
#INCLUDEHT66FV140.INC
#INCLUDEHT66FV140.HED
Rev. 1.10
57 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 50H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT66FV150]
#INCLUDEHT66FV150.INC
#INCLUDEHT66FV150.HED
Rev. 1.10
58 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 50H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
59 of 139
September 28, 2015
ASM and C library Instructions
■■ [Application example – HT66FV160]
#INCLUDEHT66FV160.INC
#INCLUDEHT66FV160.HED
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
MOVBackupAcc,A
MOVA,PBP
CLRPBP
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
MOVBackupAcc,A
MOVA,PBP
CLRPBP
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 50H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
CLRWDT
CLRWDT2
SNZfVoiceStandBy
JMP $-3 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, ; volume is 5
CLRWDT
CLRWDT2
SZ fSentencePlaying
JMP $-3 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
60 of 139
September 28, 2015
ASM and C library Instructions
■■ [Application example – HT66FV160]
#INCLUDEHT45F67.INC
#INCLUDEHT45F67.HED
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG10H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_VOICE_ISR
; Timer2 interrupt( voice )
ORG14H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_SENTENCE_ISR
; Timer1 interrupt( sentence )
ORG 30H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
CLRWDT
CLRWDT2
SNZfVoiceStandBy
JMP $-3 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
CLRWDT
CLRWDT2
SZ fSentencePlaying
JMP $-3 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
61 of 139
September 28, 2015
ASM and C library Instructions
■■ [Application example – HT45F65]
#INCLUDEHT45F65.INC
#INCLUDEHT45F65.HED
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG10H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_SENTENCE_ISR
; Timer1 interrupt( sentence )
ORG18H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_VOICE_ISR
; Timer2 interrupt( voice )
ORG 30H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
CLRWDT
CLRWDT2
SNZfVoiceStandBy
JMP $-3 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
CLRWDT
CLRWDT2
SZ fSentencePlaying
JMP $-3 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
62 of 139
September 28, 2015
ASM and C library Instructions
■■ [Application example – HT45F3W]
#INCLUDEHT45F3W.INC
#INCLUDEHT45F3W.HED
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG0CH
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_SENTENCE_ISR
; Timer1 interrupt( sentence );
ORG10H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_VOICE_ISR
; Timer2 interrupt( voice )
ORG 30H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
CLRWDT
CLRWDT2
SNZfVoiceStandBy
JMP $-3 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
CLRWDT
CLRWDT2
SZ fSentencePlaying
JMP $-3 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F23A]
#INCLUDEHT45F23A.INC
#INCLUDEHT45F23A.HED
Rev. 1.10
63 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG10H
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 20H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F24A]
#INCLUDEHT45F24A.INC
#INCLUDEHT45F24A.HED
Rev. 1.10
64 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG10H
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 20H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT83F02]
#INCLUDEHT83F02.INC
#INCLUDEHT83F02.HED
Rev. 1.10
65 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 20H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT86B03] (Suitable for HT86B10, HT86B20, HT86B30)
#INCLUDEHT86B03.INC
#INCLUDEHT86B03.HED
Rev. 1.10
66 of 139
September 28, 2015
ASM and C library Instructions
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
CLR WDT
CLRWDT2
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG0CH
CLR WDT
CLRWDT2
JMP _PLAY_VOICE_ISR
; Timer1 interrupt( voice )
ORG 20H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
SNZfVoiceStandBy
JMP $-1 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
SZ fSentencePlaying
JMP $-1 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
67 of 139
September 28, 2015
ASM and C library Instructions
■■ [Application example – HT86B40] (Suitable for HT86B50, HT86B60, HT86B70, HT86B80,
HT86B90)
#INCLUDEHT86B40.INC
#INCLUDEHT86B40.HED
CODE
.SECTION
AT
0000H
‘CODE’
ORG00H
CLR WDT
CLRWDT2
JMPBegin
ORG08H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_SENTENCE_ISR
; Timer0 interrupt( sentence )
ORG10H
MOV BackupAcc, A
MOV A,BP
CLR BP
JMP _PLAY_VOICE_ISR
; Timer2 interrupt( voice )
ORG 20H
Begin:
CALL _CLRRAM
; Clear all RAM banks
CALL _SYSTEM_INITIALIZATION
; System initialization
CALL _DAC_RAMP_UP
; Open DAC and do ramp up
_PLAY_VOICE 0,0,0,5,0
; Play the first audio, volume is 5
CLRWDT
CLRWDT2
SNZfVoiceStandBy
JMP $-3 ; Wait play voice finish
_PLAY_SENTENCE 01H,00H,0,5,0
; Play the sentence whose address is
; 0100H, volume is 5
CLRWDT
CLRWDT2
SZ fSentencePlaying
JMP $-3 ; Wait play sentence finish
CALL _DAC_RAMP_DOWN
; Close DAC and do ramp down
CLRWDT
CLRWDT2
JMP $-2
Voice MCU Workshop V2.1 User Guide
Call Voice library Functions by C
Summary
This chapter will introduce how to call the Voice library functions using C language.
How to use
After creating the .C project:
ASM and C library Instructions
■■ Add the library file
Rev. 1.10
68 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Add XX_Voice_Lib.ASM file
ASM and C library Instructions
■■ Add “XX_voicelib_call.h” file to the project directory, and place it within the C file “ #include
"XX_voicelib_call.h" “which will be called. It is declaration of all functions which will called.
■■ Refer to the C Program Example for programming (C Program Example).
Rev. 1.10
69 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
C Library Functions
■■ void CLRRAM( );
Description:
ram bank0, bank1, 00h~FFh are cleared to zero.
Example:
CLRRAM( );
■■ void DAC_RAMP_UP( );
Description:
Enable DA function. After the function is executed then call the "play_voice()" or "play_sentence()" function.
Example:
DAC_RAMP_UP( );
PLAY_VOICE( );
■■ void DAC_RAMP_DOWN( );
Description:
Disable DA function. After the “play_voice()” or “play_sentence()” functions is executed then
call the function to reduce unnecessary power consumption.
Example:
PLAY_VOICE( );
DAC_RAMP_DOWN( );
■■ void STOP_PLAY( );
Description:
Stop playing. Call this function directly at any time.
Example:
STOP_PLAY( );
Rev. 1.10
70 of 139
September 28, 2015
ASM and C library Instructions
■■ void SYSTEM_INITIALIZATION( );
Description:
Setup the system frequency fSYS, SPI interface configuration, timer initialization, etc.
Example:
CLRRAM( );
SYSTEM_INITIALIZATION( );
Voice MCU Workshop V2.1 User Guide
■■ Void VOLUME_CHOICE(unsigned char vol);
Description:
Set the volume level. Write the volume value with reference to the specification.
Parameter:
Vol: The volume value in the specification
Example:
VOLUME_CHOICE(0x67);
■■ Void PLAY_SENTENCE
(unsigned char SentenceAddr,unsigned char SentencenAddr,unsigned char vol_sentence)
Description:
play_sentence
Parameter:
Sentencenumh: SentenceAddr high byte
Sentencenuml : SentenceAddr low byte
vol_sentence : Sentence volume selection
Note: SentenceAddr: Selected "play_voice" Function address on the UI of the Voice WorkshopV2.1 version platform.
Refer to the Workshop S/W generated file "Demo_key_mapping.h"
Example:
Play the first sentence file, assume the address is 0100H
Select volume Gain =6DB (0x0C in the specification)
Then: DAC_RAMP_UP( );
PLAY_ SENTENCE (0x01,0x00,0x0c );
Note: the formal parameter can be in variable form, PLAY_ SENTENCE (A,B,C );
Rev. 1.10
71 of 139
September 28, 2015
ASM and C library Instructions
■■ void PLAY_VOICE(unsigned char Voicenumh,unsigned char Voicenuml,unsigned char vol_voice);
Description:
play_voice
Parameter:
Voicenumh: Voice NUM high byte
Voicenuml : Voice NUM low byte
vol_voice : Voice volume selection
Example:
Play the first audio source original file (Note: on the UI, the first audio source number is 0 instead of 1)
Select volume Gain=6DB(0x0C in the specification)
Then: DAC_RAMP_UP( );
PLAY_VOICE(0,0,0xc );
Note: the formal parameter can be in variable form, PLAY_VOICE(A,B,C );
Voice MCU Workshop V2.1 User Guide
Rev. 1.10
72 of 139
ASM and C library Instructions
■■ unsigned char CHECK_PLAYVOICE_FINISH( );
Description:
Determine if the "play_voice” or “play_sentence” has finished or not
Return value:
1:play finished
0:play unfinished
Example:
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());
September 28, 2015
Voice MCU Workshop V2.1 User Guide
C Program Example
■■ [Application example – HT66FV130]
#include “HT66FV130.h”
#include “HT66FV130_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
73 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT66FV140]
#include “HT66FV140.h”
#include “HT66FV140_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
74 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT66FV150]
#include “HT66FV150.h”
#include “HT66FV150_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
75 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT66FV160]
#include “HT66FV160.h”
#include “HT66FV160_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
76 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F67]
#include “HT45F67.h”
#include “HT45F67_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
77 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F65]
#include “HT45F65.h”
#include “HT45F65_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
78 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F3W]
#include “HT45F3W.h”
#include “HT45F3W_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
79 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F23A]
#include “HT45F23A.h”
#include “HT45F23A_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
80 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT45F24A]
#include “HT45F24A.h”
#include “HT45F24A_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
81 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT83F02]
#include “HT83F02.h”
#include “HT83F02_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
82 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT86B03] (Suitable for HT86B10, HT86B20, HT86B30)
#include “HT86B03.h”
#include “HT86B03_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
83 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
■■ [Application example – HT86B40] (Suitable for HT86B50, HT86B60, HT86B70, HT86B80,
HT86B90)
#include “HT86B60.h”
#include “HT86B60_voicelib_call.h”
Clear all RAM banks
System initialization
Open DAC and do ramp up
Play the first audio, volume is 5
Wait play voice finish
Play the sentence whose address is
0100H, volume is 5
Wait play sentence finish
Close DAC and do ramp down
}
Rev. 1.10
84 of 139
September 28, 2015
ASM and C library Instructions
void main()
{
GCC_CLRWDT();
GCC_CLRWDT2();
CLRRAM();
//
SYSTEM_INITIALIZATION();
//
DAC_RAMP_UP();
//
PLAY_VOICE(0,0,5); //
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
PLAY_SENTENCE(0x01,0x00,5);
//
//
do
{
GCC_CLRWDT();
GCC_CLRWDT2();
}while(!CHECK_PLAYVOICE_FINISH());//
DAC_RAMP_DOWN();
//
while(1)
{
GCC_CLRWDT();
GCC_CLRWDT2();
}
Voice MCU Workshop V2.1 User Guide
3
Voice Library Establishment and Emulator
HT66FV130
■■ Resource Usage Table:
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
PCM16
731/2048 (35%)
530/2048 (25%)
807/2048 (39%)
506/2048 (24%)
RAM(Byte)
36/128(28%)
36/128(28%)
36/128(28%)
36/128(28%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
No decoding array
Other programs fixed
memory address in the
PROM
3F3H–3F7H
479H–47DH
700H–707H
6FEH­–6FFH
702H–703H
704H–708H
700H–704H
Registers used
SPI1: SPIC0, SPIC1, SPID
D/A: USVC, DAH, DAL
Timer: TM1C0, TM1C1, TM1AL, TM1AH, TM0C0, TM0C1, TM0AL, TM0AH
General: ACC, MP1, IAR1, TBLP, TBLH, TBHP, PCL, STATUS, PBP, MP2L
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1is used for controlling the external flash – used pin: SCS, SCK, MISO, MOSI
●● Timer1interrupt is used for play voice operation – interrupt entry address: 0CH
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
●● DAC module is used for the flash audio data D/A converter – used pin: AUD, AUDIN
●● Power amplifier module – used pin:SP+, SP■■ Different function calls require different PROM sizes, as shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
15
_PLAY_SENTENCE
14
_VOLUME
8
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed formats is shown in the following table:
Rev. 1.10
System Frequency
8MHz
12MHz
16MHz
HT-ADPCM4
14kHz
21kHz
28kHz
HT-PCM12
18kHz
27kHz
36kHz
HT-uPCM8
17kHz
26kHz
35kHz
HT-PCM16
19kHz
29kHz
39kHz
Compression Mode
85 of 139
September 28, 2015
Voice Library Establishment and Emulator
Resources
Used
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT66VV130 for simulating and debugging.
In addition an external SPI Flash is needed.
●● e-Link Pin Assignment:
VDD
OCDSCK
OCDSDA
GND
SP+
HT66VV130
SDO
SDI
SCK
CE
SP-
Speaker
SPI Flash
Note: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Rev. 1.10
86 of 139
September 28, 2015
Voice Library Establishment and Emulator
●● HT66VV130 VDD, GND, OCDSCK, OCDSDA pin connection to the e-Link.
Voice MCU Workshop V2.1 User Guide
HT66FV140
■■ Resource Usage Table:
Compression
Resources
Mode
Used
PCM12
UPCM8
PCM16
808/4096 (20%)
607/4096 (14%)
890/4096 (21%)
583/4096 (14%)
RAM(Byte)
36/256(14%)
36/256(14%)
36/256(14%)
36/256(14%)
Compressed decoding
array stored address in
PROM
400H–478H
No decoding array
600H­–6FDH
700H
No decoding array
Other programs fixed
memory address in the
PROM
3F3H–3F7H
479H–47DH
700H–707H
6FEH­–6FFH
702H–703H
704H–708H
700H–704H
PROM(Word)
Registers used
SPI1: SPIC0, SPIC1, SPID
D/A: USVC, DAH, DAL
Timer: TM1C0, TM1C1, TM1AL, TM1AH, TM0C0, TM0C1, TM0AL, TM0AH
General: ACC, MP1, IAR1, TBLP, TBLH, TBHP, PCL, STATUS, MP2L
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1is used for controlling the external flash – used pins: SCS, SCK, MISO, MOSI
●● Timer1interrupt is used to play voice operations – interrupt entry address: 0CH
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
●● DAC module is used for the flash audio data D/A converter. – used pins: AUD, AUDIN
●● Power amplifier module – used pins:SP+, SP●● Optimize RAM Bank0 – BANK0: 19/128(14%); BANK1: 17/128(13%)
■■ Different function calls require different PROM sizes – see below:
Macro Name
Rev. 1.10
PROM size cost per call (Unit: Word)
_PLAY_VOICE
61
_PLAY_SENTENCE
62
_VOLUME
52
87 of 139
September 28, 2015
Voice Library Establishment and Emulator
HT-ADPCM4
Voice MCU Workshop V2.1 User Guide
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed formats is shown in the following table:
System Frequency
Compression Mode
8MHz
12MHz
16MHz
HT-ADPCM4
14kHz
21kHz
28kHz
HT-PCM12
18kHz
27kHz
36kHz
HT-uPCM8
17kHz
26kHz
35kHz
HT-PCM16
19kHz
29kHz
39kHz
●● HT66VV140 VDD, GND, OCDSCK, OCDSDA pins connection to the e-Link.
VDD
OCDSCK
OCDSDA
GND
SP+
HT66VV140
SDO
SDI
SCK
CE
SP-
Speaker
SPI Flash
Note: Refer to “Connection for Programming DAT File to the Flash” section for the SPI flash connection
and programming.
Rev. 1.10
88 of 139
September 28, 2015
Voice Library Establishment and Emulator
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT66VV140 for simulating and debugging.
In addition an external SPI Flash is needed.
●● e-Link Pin Assignment:
Voice MCU Workshop V2.1 User Guide
HT66FV150
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
PCM16
592/8192 (7%)
879/8192 (10%)
568/8192 (7%)
36/512(7%)
36/512(7%)
36/512(7%)
36/512(7%)
compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
No decoding array
Other programs fixed
memory address in the
PROM
3F3H–3F7H
479H–47DH
700H–707H
6FEH­–6FFH
702H–703H
704H–708H
700H–704H
Registers used
SPI1: SPIC0, SPIC1, SPID
D/A: USVC, DAH, DAL
Timer: TM1C0, TM1C1, TM1AL, TM1AH, TM0C0, TM0C1, TM0AL, TM0AH
General: ACC, MP1, IAR1, TBLP, TBLH, TBHP, PCL, STATUS, MP2L
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1is used for controlling the external flash – used pin: SCS, SCK, MISO, MOSI
●● Timer1interrupt is used for play voice operation – interrupt entry address: 0CH
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
●● DAC module is used for the flash audio data D/A converter – used pin: AUD, AUDIN
●● Power amplifier module – used pin:SP+, SP●● Optimize RAM Bank0 – BANK0: 19/128(14%); BANK1: 17/128(13%)
■■ Different function calls require different PROM sizes, see the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
17
_PLAY_SENTENCE
16
_VOLUME
8
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed formats is shown in the following table:
Rev. 1.10
System Frequency
8MHz
12MHz
16MHz
HT-ADPCM4
14kHz
21kHz
28kHz
HT-PCM12
18kHz
27kHz
36kHz
HT-uPCM8
17kHz
26kHz
35kHz
HT-PCM16
19kHz
29kHz
39kHz
Compression Mode
89 of 139
September 28, 2015
Voice Library Establishment and Emulator
793/8192 (9%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT66VV150 for simulating and debugging.
In addition an external SPI Flash is needed.
●● e-Link Pin Assignment:
VDD
OCDSCK
OCDSDA
GND
SP+
HT66VV150
SDO
SDI
SCK
CE
SP-
Speaker
SPI Flash
Note: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Rev. 1.10
90 of 139
September 28, 2015
Voice Library Establishment and Emulator
●● HT66VV150 VDD, GND, OCDSCK, OCDSDA pins connection to the e-Link.
Voice MCU Workshop V2.1 User Guide
HT66FV160
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
PCM16
594/16384 (3%)
881/16384 (5%)
570/16384 (3%)
37/1024(3%)
37/1024(3%)
37/1024(3%)
37/1024(7%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
No decoding array
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–707H
6FEH­–6FFH
702H–703H
704H–708H
700H–707H
Registers used
SPI1: SPIC0, SPIC1, SPID
D/A: USVC, DAH, DAL
Timer: TM1C0, TM1C1, TM1AL, TM1AH, TM0C0, TM0C1, TM0AL, TM0AH
General: ACC, MP1, IAR1, TBLP, TBLH, TBHP, PCL, STATUS
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1is used for controlling the external flash – used pin: SCS, SCK, MISO, MOSI
●● Timer1interrupt is used for play voice operation – interrupt entry address: 0CH
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
●● DAC module is used for the flash audio data D/A converter – used pin: AUD, AUDIN
●● Power amplifier module – used pin:SP+, SP●● Optimize RAM Bank0 – BANK0: 20/128(15%); BANK1: 17/128(13%)
■■ Different function calls require different PROM sizes, as shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
17
_PLAY_SENTENCE
16
_VOLUME
8
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed formats is shown in the following table:
Rev. 1.10
System Frequency
8MHz
12MHz
16MHz
HT-ADPCM4
13KHz
20KHz
27KHz
HT-PCM12
17KHz
26KHz
35KHz
HT-uPCM8
17KHz
25KHz
34KHz
HT-PCM16
19KHz
28KHz
38KHz
Compression Mode
91 of 139
September 28, 2015
Voice Library Establishment and Emulator
795/16384 (4%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT66VV160 for simulating and debugging.
In addition an external SPI Flash is needed.
●● e-Link Pin Assignment:
VDD
OCDSCK
OCDSDA
GND
SP+
HT66VV130
SDO
SDI
SCK
CE
SP-
Speaker
SPI Flash
Note: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Rev. 1.10
92 of 139
September 28, 2015
Voice Library Establishment and Emulator
●● HT66VV130 VDD, GND, OCDSCK, OCDSDA pin connection to the e-Link.
Voice MCU Workshop V2.1 User Guide
HT45F67
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
725/32768 (2%)
956/32768 (2%)
38/512(7%)
38/512(7%)
38/512(7%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
479H–47DH
800H–804H
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
SPI1: SPI1C0, SPI1C1, SPI1D
D/A: ADAC, ADAH, ADAL
Timer: TM2C0, TM2C1, TM2AL, TM2AH, TM1C0, TM1C1, TM1AL, TM1AH
General: ACC, MP1, IAR1, BP, STATUS, TBLP, TBLH, TBHP
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1is used for controlling the external flash – used pin: SDI1, SDO1, SCK1, SCS1B0
●● Timer2 interrupt is used for play voice operation – interrupt entry address: 10H
●● Timer1 interrupt is used for the play sentence operation – interrupt entry address: 14H
●● DAC module is used for the flash audio data D/A converter – used pin: AUD
●● Optimize the RAM Bank0 – BANK0: 21/128(16%); BANK2: 17/128(13%)
■■ Different function calls require different PROM sizes, shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
20
_PLAY_SENTENCE
19
_VOLUME
9
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed format is shown in the following table:
Compression Mode
Rev. 1.10
System Frequency
4MHz
8MHz
12MHz
HT-ADPCM4
6kHz
13kHz
20kHz
HT-PCM12
8kHz
16kHz
25kHz
HT-uPCM8
8kHz
17kHz
25kHz
93 of 139
September 28, 2015
Voice Library Establishment and Emulator
877/32768 (2%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT45V67 for simulating and debugging. In
addition an external SPI Flash and audio amplifier circuit module are needed.
●● e-Link Pin Assignment:
Voice Library Establishment and Emulator
●● HT45V67 VDD, GND, OCDSCK, OCDSDA pins connection to the e-Link.
VDD
OCDSCK
OCDSDA
GND
AUD
HT45V67
SDO
SDI
SCK
CE
OP IC
OP
Control
Pin
Speaker
SPI Flash
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shows an audio amplifier reference circuit using the HT82V733:
Rev. 1.10
94 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Resource Usage Table:
Resources
Used
Compression
Mode
HT-ADPCM4
PCM12
UPCM8
879/8192 (10%)
725/8192 (8%)
957/8192 (11%)
RAM(Byte)
38/256(14%)
38/256(14%)
38/256(14%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
479H–47DH
800H–804H
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
PROM(Word)
Registers used
SPI1: SPI1C0, SPI1C1, SPI1D
D/A: ADAC, ADAH, ADAL
Timer: TM2C0, TM2C1, TM2AL, TM2AH, TM1C0, TM1C1, TM1AL, TM1AH
General: ACC, MP1, IAR1, BP, STATUS, TBLP, TBLH, TBHP
Note: The user code cannot occupy the space specified for the decoding array.
■■ The MCU function module usage description:
●● SPI1 is used for controlling the external flash – used pin: SDI1, SDO1, SCK1, SCS1B0
●● Timer2 interrupt is used for play voice operation – interrupt entry address:18H
●● Timer1 interrupt is used for the play sentence operation – interrupt entry address:10H
●● DAC module is used for the flash audio data D/A converter – used pin: AUD
●● Optimize the RAM Bank0 – BANK0:21/128(16%); BANK2:17/128(13%)
Rev. 1.10
95 of 139
September 28, 2015
Voice Library Establishment and Emulator
HT45F65
Voice MCU Workshop V2.1 User Guide
■■ Different function calls require different PROM sizes, shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
20
_PLAY_SENTENCE
19
_VOLUME
9
Compression Mode
System Frequency
4MHz
8MHz
12MHz
HT-ADPCM4
6kHz
13kHz
20kHz
HT-PCM12
8kHz
16kHz
25kHz
HT-uPCM8
8kHz
17kHz
25kHz
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT45V65 for simulating and debugging. In
addition an external SPI Flash and audio amplifier circuit module are needed.
●● e-Link Pin Assignment:
Rev. 1.10
96 of 139
September 28, 2015
Voice Library Establishment and Emulator
■■ Using a specified MCU system frequency, the maximum audio source sampling rate using
different compressed format is shown in the following table:
Voice MCU Workshop V2.1 User Guide
●● HT45V65 VDD, GND, OCDSCK, OCDSDA pins connection to the e-Link.
VDD
OCDSCK
OCDSDA
GND
HT45V65
SDO
SDI
SCK
CE
OP IC
OP
Control
Pin
Speaker
SPI Flash
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shows an audio amplifier reference circuit using the HT82V733:
Rev. 1.10
97 of 139
September 28, 2015
Voice Library Establishment and Emulator
AUD
Voice MCU Workshop V2.1 User Guide
HT45F3W
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
735/16384 (4%)
965/16384 (11%)
38/512(7%)
38/512(7%)
38/512(7%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
479H–47DH
800H–804H
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
SPI1: SPI1C0, SPI1C1, SPI1D
D/A: VOL, DAH, DAL
Timer: TM2C0, TM2C1, TM2AL, TM2AH, TM1C0, TM1C1, TM1AL, TM1AH
General: ACC, MP1, IAR1, BP, STATUS, TBLP, TBLH, TBHP
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1 is used for controlling the external flash – used pin: S1DI, S1DO1, S1CK, S1CS
●● Timer2 interrupt is used for play voice operation – interrupt entry address: 10H
●● Timer1 interrupt is used for the play sentence operation – interrupt entry address: 0CH
●● DAC module is used for the flash audio data D/A converter – used pin: AUD
●● Optimize the RAM Bank0 – BANK0:21/128(16%); BANK2:17/128(13%)
■■ Different function calls require different PROM sizes, shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
20
_PLAY_SENTENCE
19
_VOLUME
9
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed formats is shown in the following table:
Compression Mode
Rev. 1.10
System Frequency
4MHz
8MHz
12MHz
HT-ADPCM4
6kHz
13kHz
20kHz
HT-PCM12
8kHz
16kHz
25kHz
HT-uPCM8
8kHz
17kHz
25kHz
98 of 139
September 28, 2015
Voice Library Establishment and Emulator
887/16384 (5%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-Link simulator and the EV chip HT45V3W for simulating and debugging. In
addition an external SPI Flash and audio amplifier circuit module are needed.
●● e-Link Pin Assignment:
Voice Library Establishment and Emulator
●● HT45V3W VDD, GND, OCDSCK, OCDSDA pins connection to the e-Link.
VDD
OCDSCK
OCDSDA
GND
AUD
HT45V3W
SDO
SDI
SCK
CE
OP IC
OP
Control
Pin
Speaker
SPI Flash
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shows an audio amplifier reference circuit using the HT82V733:
Rev. 1.10
99 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
644/2048 (31%)
492/2048 (24%)
724/2048 (35%)
RAM(Byte)
36/128(28%)
36/128(28%)
36/128(28%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
SPI1: SIMC0, SIMC1, SIMD
D/A: DACTRL, DAH, DAL
Timer: TMR0, TMR0C, TMR1H, TMR1L, TMR1C
General: ACC, MP1, IAR1, INTC0, TBHP, INTC1, TBLP, TBLH, TBHP
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1 is used for controlling the external flash – used pin: SDI, SDO, SCK, SCS
●● Timer1 interrupt is used for play voice operation – interrupt entry address: 10H
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 0CH
●● DAC module is used for the flash audio data D/A converter – used pin: AUD
■■ Different function calls require different PROM sizes, shown in the table below:
Macro Name
Rev. 1.10
PROM size cost per call (Unit: Word)
_PLAY_VOICE
13
_PLAY_SENTENCE
12
_VOLUME
9
100 of 139
September 28, 2015
Voice Library Establishment and Emulator
HT45F23A
Voice MCU Workshop V2.1 User Guide
■■ Under a specified MCU system frequency, the maximum audio source sampling rate using different compressed format is shown in the following table:
Compression Mode
System Frequency
2MHz
4MHz
8MHz
HT-ADPCM4
3kHz
7kHz
14kHz
HT-PCM12
4kHz
8kHz
17kHz
HT-uPCM8
4kHz
8kHz
17kHz
e-ICE
SDO
SDI
SCK
CE
AUD
OP IC
OP
Control
SPI Flash
Pin
Speaker
HT45V23A
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shown an audio amplifier reference circuit using the HT82V733:
Rev. 1.10
101 of 139
September 28, 2015
Voice Library Establishment and Emulator
■■ Emulator and Connection
This IC uses the e-ICE (M1001D+D1088A) for simulating and debugging. In addition an external SPI Flash and audio amplifier circuit module are needed.
Voice MCU Workshop V2.1 User Guide
HT45F24A
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
492/4096 (12%)
724/4096 (17%)
36/192(18%)
36/192(18%)
36/192(18%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
SPI1: SIMC0, SIMC1, SIMD
D/A: DACTRL, DAH, DAL
Timer: TMR0, TMR0C, TMR1H, TMR1L, TMR1C
General: ACC, MP1, IAR1, INTC0, TBHP, INTC1, TBLP, TBLH, TBHP
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPI1 is used for controlling the external flash – used pin: SDI, SDO, SCK, SCS
●● Timer1 interrupt is used for play voice operation – interrupt entry address: 10H
●● Timer0 interrupt is used for the play sentence operation – interrupt entry address: 0CH
●● DAC module is used for the flash audio data D/A converter – used pin: AUD
■■ Different function calls require different PROM sizes, shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
13
_PLAY_SENTENCE
12
_VOLUME
9
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed format is shown in the following table:
Compression Mode
Rev. 1.10
System Frequency
2MHz
4MHz
8MHz
HT-ADPCM4
3kHz
7kHz
14kHz
HT-PCM12
4kHz
8kHz
17kHz
HT-uPCM8
4kHz
8kHz
17kHz
102 of 139
September 28, 2015
Voice Library Establishment and Emulator
644/4096 (15%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-ICE (M100D+D1095A) for simulating and debugging. In addition an external
SPI Flash and audio amplifier circuit module are needed.
e-ICE
AUD
OP IC
OP
Control
SPI Flash
Pin
Speaker
HT45V24A
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shows an audio reference circuit built using the HT82V733:
Rev. 1.10
103 of 139
September 28, 2015
Voice Library Establishment and Emulator
SDO
SDI
SCK
CE
Voice MCU Workshop V2.1 User Guide
HT83F02
■■ Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
507/2048 (24%)
729/2048 (35%)
35/208(16%)
35/208(16%)
35/208(16%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47BH
700H–72BH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
SPI: SIMC0A, SIMC2A, SIMDRA, SIMDRB
D/A: DACTRL, DAH, DAL
Timer: TMR0, TMR0C, TMR1, TMR1C
General: ACC, MP1, IAR1, INTC, TBLP, TBLH
Note: The user code cannot occupy the space specified for the decoding array.
■■ MCU function module usage description:
●● SPIA is used for controlling the external flash (used pin: SDAA, SCLA, SDIA, SCSA)
●● Timer1 interrupt is used for play voice operation (interrupt entry address: 0CH)
●● Timer0 interrupt is used for the play sentence operation (interrupt entry address: 08H)
●● DAC module is used for the flash audio data D/A converter. (used pin:AUD)
■■ Different functions require different PROM sizes, shown in the table below:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
14
_PLAY_SENTENCE
13
_VOLUME
6
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed format is shown in the following table:
Compression Mode
Rev. 1.10
System Frequency
4MHz
8MHz
12MHz
HT-ADPCM4
7kHz
14kHz
22kHz
HT-PCM12
8kHz
17kHz
26kHz
HT-uPCM8
9kHz
18kHz
27kHz
104 of 139
September 28, 2015
Voice Library Establishment and Emulator
652/2048 (31%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the e-ICE (M1001D+D1026A) for simulating and debugging. In addition an external SPI Flash and audio amplifier circuit module are needed.
e-ICE
AUD
OP IC
OP
Control
SPI Flash
Pin
Speaker
HT83F02EV
Note1: Refer to “Connection for Programming DAT File to the Flash” section for SPI flash connection
and programming.
Note2: The following figure shows an audio amplifier reference circuit using the HT82V733:
Rev. 1.10
105 of 139
September 28, 2015
Voice Library Establishment and Emulator
SDO
SDI
SCK
CE
Voice MCU Workshop V2.1 User Guide
HT86BX0
■■ Resource Usage Table:
●● HT86B03 Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
506/4096 (12%)
732/4096 (17%)
36/192(18%)
36/192(18%)
36/192(18%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
Voice rom data: VOICEC, LATCH0L, LATCH0M, LATCH0H, LATCHD
D/A: DACTRL, DAH, DAL, VOL
Timer: TMR0, TMR0C, TMR1, TMR1C
General: ACC, MP1, IAR1, INTC, TBHP, TBLP, TBLH
Note: The user code cannot occupy the space specified for the decoding array.
●● HT86B10, HT86B20, HT86B30 Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
HT-ADPCM4
PCM12
UPCM8
653/8192 (7%)
506/8192 (6%)
732/8192 (8%)
RAM(Byte)
36/192(18%)
36/192(18%)
36/192(18%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
Voice rom data: VOICEC, LATCH0L, LATCH0M, LATCH0H, LATCHD
D/A: DACTRL, DAH, DAL, VOL
Timer: TMR0, TMR0C, TMR1, TMR1C
General: ACC, MP1, IAR1, INTC, TBHP, TBLP, TBLH
Note: The user code cannot occupy the space specified for the decoding array.
●● HT86B40, HT86B50, HT86B60, HT86B70, HT86B80, HT86B90 Resource Usage Table:
Resources
Used
Compression
Mode
PROM(Word)
RAM(Byte)
HT-ADPCM4
PCM12
UPCM8
830/8192 (10%)
677/8192 (8%)
910/8192 (11%)
38/384(9%)
38/384(9%)
38/384(9%)
Compressed decoding array
stored address in PROM
400H–478H
No decoding array
600H­–6FDH
700H
Other programs fixed
memory address in the
PROM
3F5H–3F9H
479H–47DH
700H–72DH
6FEH­–6FFH
702H–703H
704H–708H
Registers used
Voice ron data: VOICEC, LATCH0L, LATCH0M, LATCH0H, LATCHD
D/A: DACTRL, DAH, DAL, VOL
Timer: TMR0, TMR0C, TMR2H, TMR2L, TM2C
General: ACC, MP1, IAR1, BP, INTC, TBHP, TBLP, TBLH
Note: The user code cannot occupy the space specified for the decoding array.
Rev. 1.10
106 of 139
September 28, 2015
Voice Library Establishment and Emulator
653/4096 (15%)
RAM(Byte)
Voice MCU Workshop V2.1 User Guide
■■ MCU function module usage description:
●● HT86B03, HT86B10, HT86B20, HT86B30:
♦♦ Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
♦♦ Timer2 interrupt is used for play voice operation – interrupt entry address: 0CH
♦♦ DAC module is used for the flash audio data D/A converter – used pin: AUD
♦♦ Timer2 interrupt is used for play voice operation – interrupt entry address: 10H
♦♦ DAC module is used for the flash audio data D/A converter – used pin: AUD
■■ Different functions require different PROM sizes, shown in the table below:
●● HT86B03, HT86B10, HT86B20, HT86B30:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
14
_PLAY_SENTENCE
13
_VOLUME
10
●● HT86B40, HT86B50, HT86B60, HT86B70, HT86B80, HT86B90:
Macro Name
PROM size cost per call (Unit: Word)
_PLAY_VOICE
20
_PLAY_SENTENCE
19
_VOLUME
10
a specified MCU system frequency, the maximum audio source sampling rate using dif■■ Using������������������������������������������������������������������������������������
ferent compressed format is shown in the following table:
●● HT86B03 / HT86B10 / HT86B20 / HT86B30
System Frequency
Compression Mode
4MHz
6MHz
8MHz
HT-ADPCM4
7kHz
10kHz
14kHz
HT-PCM12
8kHz
13kHz
17kHz
HT-uPCM8
8kHz
13kHz
17kHz
●● HT86B40 / HT86B50/ HT86B60 / HT86B70 / HT86B80 / HT86B90
Rev. 1.10
System Frequency
Compression Mode
4MHz
6MHz
HT-ADPCM4
6kHz
10kHz
13kHz
HT-PCM12
8kHz
12kHz
16kHz
HT-uPCM8
8kHz
12kHz
17kHz
107 of 139
8MHz
September 28, 2015
Voice Library Establishment and Emulator
●● HT86B40, HT86B50, HT86B60, HT86B70, HT86B80, HT86B90:
♦♦ Timer0 interrupt is used for the play sentence operation – interrupt entry address: 08H
Voice MCU Workshop V2.1 User Guide
■■ Emulator and Connection
This IC uses the HT-ICE simulator HT86 Band the IO card for simulating and debugging.
The specific process is as following:
●● Hardware Introduction
interface
I/O interface Card
ICE Board
Simulator
16V power
interface
interface
Print Cable
Rev. 1.10
USB/Print converting Cable
108 of 139
September 28, 2015
Voice Library Establishment and Emulator
Speaker
Voice MCU Workshop V2.1 User Guide
●● Voice Workshop generates a .dat audio file.
●● Connect to 16V power and use the Print cable to connect to PC for downloading and simulating. If there is no a Print interface on the PC, a USB/Printer conversion cable is needed.
●● Create a new or open the existing HT86BX0 ICE 3000 project which used for the pc and
hardware conversation, open the project Menu “Tools”→ “Voice & Flash Download”, download voice signals, as shown below:
Rev. 1.10
109 of 139
September 28, 2015
Voice Library Establishment and Emulator
●● Click ‘open’, load the dat file generated by the Workshop to the VDownload, as shown below:
Voice MCU Workshop V2.1 User Guide
●● download data:
Voice Library Establishment and Emulator
●● Using IDE for the project emulation
Rev. 1.10
110 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
4
Audacity Quick Start
Audacity Summary
■■ Recording
■■ Change tapes to digital recording or CD
■■ Edit Ogg Vorbis, MP3 and WAV files
■■ Cut, copy, paste and multitrack mixing
■■ Change the recording rate or pitch
Note: you can download the Audacity software for free on the website: http://audacity.sourceforge.net
Audacity Processing Flow
■■ Importing Audio
Extract audio CDs to WAV format or import WAV, AIF9F, OGG or MP3 files
into Audacity for direct use or recording
■■ Basic Audio Processing Operation
Basic splicing(delete, insert, copy) volume control(envelope/amplify)
fade in/fade out, noise removal
insert a fixed length, silence a track, mix tracks, change the pitch
■■ Exporting audio files
To export as wav, aiff, mp3 or ogg file and burn to Audio CDs.
Rev. 1.10
111 of 139
September 28, 2015
Audacity Quick Start
Audacity is a free, open source (cross-platform) digital audio editor, recorder and mixer. The
software can run on Windows, Mac OS X, GNU/Linux and other operating systems. It is a mature
software application that comes with a long list of features such as:
Voice MCU Workshop V2.1 User Guide
Quick Start
■■ Right double-click the icon
to open the Audacity software and the following interface appears:
Audacity Quick Start
Rev. 1.10
112 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● Audacity Interface Toolbars Overview
Skip to start
Temporarily pauses playing
or recording without losing
the present location. Click
Pause a second time to
resume.
Standard-speed playback. If
an area of track is selected,
only that selection will be
played.
Stop playing or recording
immediately.
Start recording at the current
cursor position.
Skip to End.
② Audacity Tools Toolbar Description
Selection- click and drag to
select a range of audio to
play or edit
Envelope- made smooth
volume change over the
length of a track
Draw- adjust the volume
level of individual audio
samples
Rev. 1.10
113 of 139
Zoom- zoom in or zoom out
the track
Time shift- drag audio tracks
left or right
Multi- Combine several
tools into one. One tool is
available at a time according
to the mouse position or the
pressed button.
September 28, 2015
Audacity Quick Start
① Audacity Transport Toolbar Description
Voice MCU Workshop V2.1 User Guide
■■ Importing audio:
●● There are usually the following three conditions:
♦♦ Import music on an audio CD - necessary to “rip” the music into an audio file in a wav
format first.
♦♦ Import a recording – necessary to use appropriate software such as microphone recording
software.
Rev. 1.10
114 of 139
September 28, 2015
Audacity Quick Start
♦♦ Import wav, aiff, ogg or mp3 file - directly open and use.
Choose"File"–>"Import"–>"Audio"and select the audio file on your PC.
Voice MCU Workshop V2.1 User Guide
Audacity Quick Start
●● The following interface appears after importing the audio file:
Rev. 1.10
115 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Basic processing for the imported audio:
●● Basic splicing - delete, insert and copy
♦♦ Delete:select an audio range - click the left mouse button and drag to the other edge of
your selection and release, then click the Delete button to remove the selection.
Before deleting the selection:
Audacity Quick Start
Select the region to delete
After deleting the selection:
Rev. 1.10
116 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Copy and paste:select a track range then press the Copy button
the point where to insert the clip and then press the Paste button
, click the mouse at
.
Note: IF copying the audio track from another file first you need to open the file, File
→Open. After this, two Audacity windows are shown, copy the selection, and paste
it at the point where you want it located in the first window.
Audacity Quick Start
Before copy and paste:
Paste at this point
After copy and paste:
Rev. 1.10
117 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● Change the sampling rate of the voice source, as shown below:
Audacity Quick Start
Rev. 1.10
118 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● Volume control - envelope
After selecting the Envelope tool
, by clicking in the track you can see some “white
points”. Then set the volume of that point by dragging one of its four vertically arranged
“handles”.
Before changing volume:
Audacity Quick Start
After changing volume
Rev. 1.10
119 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
●● Effects:
Click "Effect” to choose the following effects:
Audacity Quick Start
Rev. 1.10
120 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Cross Fade In/Cross Fade Out function:
Rev. 1.10
Audacity Quick Start
Before a Cross Fade In
After a Cross Fade In
Before a Cross Fade Out
121 of 139
After a Cross Fade Out
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Noise Removal
Noise Removal can reduce constant background sounds.
a. Select a track region - about 0.5s~2s long is ideal - which contains only noise to let
Audacity know what to filter out.
Audacity Quick Start
b. Click "Effect” --> "Noise Removal” :
Rev. 1.10
122 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
c. After clicking "Noise Removal” and setting up some related parameters, click “OK” and
the processed waveform can be seen:
Audacity Quick Start
Rev. 1.10
Before Noise Removal
123 of 139
After Noise Removal
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Silence the selection:
Select the track region you want to silence then click the Mult Button
Rev. 1.10
Audacity Quick Start
:
Before Mult
124 of 139
After Mult
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Mixing Audio Tracks:
Mixing refers to the process of combining multiple Audacity tracks into a single track. For
example, mixing a voice with music to add a background musical effect. If you want to add
another track, choose “Track” → “Add New” → “Audio Track” , and then paste the clip
you need onto the new track.
Audacity Quick Start
Rev. 1.10
125 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
♦♦ Exporting Audio
Export a wav / aiff / mp3 / ogg file.
After completing the audio processing, Audacity can export the file in the above formats.
(Note:The Voice platform only supports WAV audio format)
Choose”File”-> "Export” and then select the folder location and audio format.
Audacity Quick Start
Rev. 1.10
126 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
5
Adobe Audition CS6 Brief Tutorial
Introduction
Adobe Audition provides a fully-integrated audio editing and mixing solution for music, video,
radio, and sound design professionals with integrated multitrack and edit views, real-time effects,
looping support, analysis tools, restoration features, and video support. Users benefit from realtime audio effects that allow them to hear changes and track EQ instantaneously. Flexible looping
tools and thousands of high-quality royalty-free music loops are included to assist in soundtrack
and music creation.
The intuitive, customizable interface allows users to dock and resize windows to create an efficient
audio workspace. An organizer window uses tabs to track open files, effects and favorites. Batch
processing tools streamline everyday tasks, such as matching the overall loudness of multiple files
or converting them to a standard file format.
Adobe Audition provides quality audio for video projects by allowing users to edit, mix and add
effects to AVI soundtracks while watching movie playback. Providing extensive support for
industry-standard audio file formats including WAV, AIFF, MP3, MP3PRO and WMA, Adobe
Audition can also handle files with bit depths of up to 32-bit and sample rates in excess of 192 kHz.
This enables export to tape, CD, DVD or DVD-audio, with the highest-quality sound.
Rev. 1.10
127 of 139
September 28, 2015
Adobe Audition CS6 Brief Tutorial
The Adobe Audition (formerly Syntrillium Cool Edit Pro) software is a complete multitrack
recording studio for Windows-based PCs. Adobe purchased Cool Edit Pro from Syntrillium
Software Company in May 2003 and then changed the name of Cool Edit Pro to “Adobe Audition”.
Adobe Audition is a professional audio editing environment which offers advanced audio multi
track, mixing, editing, controlling and effects processing capabilities. It can mix up to 128 tracks,
edit individual audio files, create loops and import more than 45 DSP (digital signal processing)
effects.
Voice MCU Workshop V2.1 User Guide
Quick Start
Edit a single audio file
■■ Open the software and choose "File” → "Import” → "File”, as shown below:
Adobe Audition CS6 Brief Tutorial
■■ After importing an audio file:
Rev. 1.10
128 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ Select the region you want to process and choose "Edit” → “Delete”/ “Cut”/ “Copy” / “Paste”…
depending upon the required action.
Adobe Audition CS6 Brief Tutorial
■■ Choose "Edit” → “Convert Sample Type” and set the required Sample Rate and Bit Depth .
Rev. 1.10
129 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ There are many effects can be added to the audio clip according to the user’s specific desire. The
following is an example of how to change the audio clip volume.
Select the audio you want to change and choose "Effects”-> "Amplitude And Compression” ->
"Amplify”.
Adobe Audition CS6 Brief Tutorial
Click "Amplify” after which the following window will appear. Change as required and then
click “Apply”. The volume will then be changed.
Rev. 1.10
130 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ After the Editing is finished, click “File”, choose “Export” -> “File”. In the following Export file
dialog box, you can view or adjust the saved file parameters. Finally, click “OK” when you have
confirmed the setting options.
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
131 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Edit Recording
■■ Open the software and choose "File”-> “New” -> “Multitrack Session “, set the options for the
new multitrack session, such as the Sample Rate and the Master, as shown below.
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
132 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ After creating the Session, we insert background music, to achieve the effect of mixing a vocal
recording with background music. As shown in the figure below, we insert the background music in the specified empty track, here we use Track 1. Right-click on Track 1, and choose “Insert”
-> “Files”. If you need insert a few pieces of music or sound effects, repeat the steps. However
take care not to locate files where the music overlaps, unless these effects are required.
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
133 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ After inserting the background music, click the red Record button “R” on Track 2, which means
we will record the voice onto Track 2. Of course, you can also record the voice onto other
tracks, ���������������������������������������������������������������������������������������
however i������������������������������������������������������������������������������
n this example we
���������������������������������������������������������������
use���������������������������������������������������������
Track 2. As shown in the figure below, click the red Record button to start recording with the background music simultaneously.
Click‘R’ for recording ready
Click the red button to start
recording
■■ Now we have a recording so let’s begin to edit the audio. As shown below, double-click the
voice waveform in Track 2 and enter the single track edit view.
Double-click on Track 2 for editing
Rev. 1.10
134 of 139
September 28, 2015
Adobe Audition CS6 Brief Tutorial
Select waveform to adjust the volume
Voice MCU Workshop V2.1 User Guide
■■ In the single track editor, we can obtain the audio signal loudness by listening to it or by watching
the waveform amplitude. We can select a specified range to adjust the volume, as shown below:
■■ Removing any noise is actually very simple. For some external environment noise like mouse
clicks, coughs, we can select the noise waveform and directly delete it. For other internal environmental noise which can be power-line hum noise or others which may not be in the voice,
first we select a range �����������������������������������������������������������������������������
for��������������������������������������������������������������������������
this noise. After the selection, click “Effects”, as shown in the following figure:
Click Effects
Select noise waveform region
Rev. 1.10
135 of 139
September 28, 2015
Adobe Audition CS6 Brief Tutorial
Adjust the volume of the
selected waveform
Voice MCU Workshop V2.1 User Guide
■■ Choose "Effects”→ "Noise Reduction/Restoration”→
"Noise Reduction (process)”
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
136 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ There are also many other voice process functions including reverb, echo, time and pitch manipulation effect, etc., which can all can be obtained in the “Effects” options. Now let’s learn how
to create an entire composition of background music and voice. As shown below, right-click on
any empty track, select “Mixdown Session to New File”→ “Entire Session” .
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
137 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
■■ After you finish mixing a session, it switches to the single track editor, as shown below. Then
choose “File”→ “Export” → “File”. In the following Export file dialog box, you can view or
adjust the specific parameters about the saved file. Finally, click “OK” when you have confirmed
the setting options.
Adobe Audition CS6 Brief Tutorial
Rev. 1.10
138 of 139
September 28, 2015
Voice MCU Workshop V2.1 User Guide
Adobe Audition CS6 Brief Tutorial
Copyright© 2014 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time
of publication. However, Holtek assumes no responsibility arising from the use of
the specifications described. The applications mentioned herein are used solely for
the purpose of illustration and Holtek makes no warranty or representation that such
applications will be suitable without further modification, nor recommends the use of
its products for application that may present a risk to human life due to malfunction or
otherwise. Holtek's products are not authorized for use as critical components in life
support devices or systems. Holtek reserves the right to alter its products without prior
notification. For the most up-to-date information, please visit our web site at http://www.
holtek.com.tw.
Rev. 1.10
139 of 139
September 28, 2015