
Decompression
Algorithm
Resources Used
Maximum
Sampling
Rate
Possible
Combined
Algorithms
RAM
ROM,
total
ROM, last
page
3-bit ADPCM
18
333
49
8.0kHz
ADPCM3,
PCM6, PCM8
3-bit ADPCM,
QUICK
15
459
196
11.0kHz
ADPCM3,
PCM6, PCM8
4-bit ADPCM
17
309
32
7.5kHz
ADPCM4,
PCM6, PCM8
4-bit ADPCM,
QUICK
14
509
256
11.0kHz
ADPCM4,
PCM6, PCM8
PCM
12
186
0
16.0kHz
PCM6, PCM8
Table: The decompressing algorithms and the resources used.
Each of these decompressing algorithms is implemented in an interrupt
service routine and shall be invoked each time the sampling rate counter
overflows. In these decompressing algorithms, the voice ROM data is
accessed, the decompressing action is taken and the decompressed data is
then sent to the D/A output.
Since there is no other function called in the decompressing algorithms, the
ISR could be invoked once when the sampling rate counter overflows and
the stack is not full. In the ISR, the value of the accumulator and the status
registers are preserved but the value of the following registers might be
changed: TBLP(07H), TBLH(08H), DAL(20H), DAH(21H), ROMC(2CH).
Important
Since the registers TBLP and TBLH might be changed in the ISR, it is
important to disable the sampling rate interrupt when using table lookup
instructions TABRDC or TABRDL.
→
Decompression algorithms usage
If it is required to use all of these decompression algorithms, the file
’voice.inc’ must be included and then the ISR specified for the sampling rate
counter interrupt in the program. Any other resources supported are in-
tended to assist with customising the sound track playing. A sample pro-
gram follows to explain this ...
; t.asm
; 1
;
; 2
#include voice.inc
; 3 include file ’voice.inc’
code .section at 0 ’code’
; 4
org
0
; 5
jmp
begin
; 6
Chapter 13
µ
C VROM Editor (HT-VDS827)
149
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 ...