
Chapter 6
OVER:
JMP
OVER
;--speech timer interrupt subroutine----------------------------
SPEECH_INT1:
; speech channel 1 subroutine program
………
………
RETS
END_OF_SPEECH:
; if end of speech, set stop flag
BS 0x20, 0
; set stop flag
RETS
6.7 Voice ROM Access
As described in Chapter 4,
Special Function Control
, the EM60000 series
provide two method of accessing voice ROM data. One is for speech data
access and the other is for general-purpose voice ROM data access. For
general-purpose voice ROM access, you should select the “Voice ROM access
control register bank” by setting R9 = 0x02, then write the address value into
IOC6 ~ IOC8. Data can be read from IOC9 (8-bit format) by using the IOR
instruction. After accessing, the address pointer will increase by one
automatically.
The following example shows how to access voice ROM data using the “Voice
ROM data access control registers.”
6.7.1 Example - Voice ROM Access
;--------------------------------------------------------------
; The example demonstrates how to read the data ROM at about every
; 65.5ms. The data of voice ROM will be displayed on Port 2.
;--------------------------------------------------------------
ORG
0x0000
JMP POWERON
; go to power-on procedure
ORG 0x0010
; power-on reset procedure
POWERON:
CLR 0x0C
; write 0 to port2
MOV A, @0
IOW 0x0D
; set port2 as output
MOV A, @0
; select Voice ROM access
MOV 0x9, A
; control register bank
MOV A, @0
; set voice ROM data start address (0x00)
IOW 0x08
; set data address high -> ADDH
IOW 0x07
; set data address middle -> ADDM
IOW 0x06
; set data address low -> ADDL
92
•
Software Application
EM60000Series User’s Manual
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...