•
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
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...