
•
The speech macro
Generally, the speech macro is used to play edited sound tracks. It is
defined in the included file, "voice.inc." The syntax of the speech is ...
speech TrackNumber, SamplingRate, VoiceDown
where,
TrackNumber
is the number of the sound edited, beginning with 0. Refer to the
.NUM file for a listing of all voice resources. It is generated by the
HTVDS827.EXE.
SamplingRate
is used to specify the sampling rate counter.
VoiceDown
is used to reduce power consumption.
Each of these three parameters can be left empty.
Note that speech initializes certain variables and turns on the sampling
rate counter interrupt. Then, when the sampling rate counter overflows,
the decompression algorithm is invoked.
In the speech macro the sampling rate interrupt will be enabled, two level
stacks will be used, the flag tempo.7 is set (setting this flag is to enable
the D/A output, sampling rate counter and counter ROM) and the value
of the following registers may be changed: Accumulator (05H), Status
(0AH), ROMC (2CH.)
If the TrackNumber is left empty, the speech will not initialise the track
number register which is used by the decompression algorithms.
Because the parameter SamplingRate is used to specify the sampling rate
control register (located at RAM 23H), if it is left empty, speech will not
change the value of that register. For example, if there is only one
sampling rate in the application, it can be initialized at the beginning of
the program and left empty in all of the following speech macro. The
following paragraph demonstrates this ...
code .section at 0 ’code’
org
0
jmp
begin
org
8
jmp
AdpcmISR
begin:
mov
a, 12H
mov
[23H], a
; Sampling rate counter is set to 8MHz
......
speech 0, ,1
HT-IDE User’s Guide
152
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...