org
8
; 7
jmp
AdpcmISR
; 8 Specify ISR
begin:
; 9
speech 0, 12H, 1
; 10
set
[22H]
; 11 Turn on the volume
jmp
$
; 12
end
; 13
The file ’voice.inc’ is included at line 3 and the ISR is specified at line 8. The
symbol AdpcmISR is predefined in the file ’voice.inc.’ The sampling rate
counter interrupt is located at interrupt vector 2 or ROM absolute address 8.
Since there is no other function called in the ISR, it is not necessary to be
concerned about the status of the stack. If there are other functions that
have to be performed when the sampling rate counter overflows, they can
be joined together by jumping first to application specific functions and at
the end of that function jump to AdpcmISR. For example,
; example.asm
;
code .section at 0 ’code’
org
0
jmp
begin
org
8
jmp
MyFirstIsr
begin:
......
MyFirstIsr:
......
jmp
MySecondIsr
......
MySecondIsr:
......
jmp
AdpcmISR
......
end
HT-IDE User’s Guide
150
Содержание 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 ...