
Chapter 4
36
•
Special Function Control
EM60000Series User’s Manual
Bank assignment for special function control:
R9 Value
Functions
Control Register Locations
0x00
Speech Channel 1
RA, IOC6 ~ IOCC
0x01
Speech Channel 2
RA, IOC6 ~ IOCC
0x02
Voice ROM access
IOC6 ~ IOC9
0x04
Melody Channel 1
RA, IOC6 ~ IOCC
0x05
Melody Channel 2
RA, IOC6 ~ IOCC
0x06
Melody Channel 3
RA, IOC6 ~ IOCC
0x07
Melody Channel 4
RA, IOC6 ~ IOCC
0x08
DAC 1
RA, IOC6
0x18
DAC 2
RA, IOC6
Example:
Accessing R9 for bank selection.
R9 == 0x09
MOV A, @0
; set R9=0 for speech Channel 1 control
MOV
R9,
A
MOV A, R9
; read R9 into ACC
AND A, @0x1F ; mask out Bits 5 ~ 7 to obtain correct result
4.2 Speech Function Control
The Speech Function Control takes care of all the speech synthesis related
controls; including speech interrupt setting, sampling rate control, and speech
data address pointer. When R9=0x00 or 0x01, the Control Register Bank will
change to speech Channel 1 or 2. These control registers are listed and arranged
as follows:
Speech Channel 1
(R9=0x00)
Speech Channel 2
(R9=0x01)
Data Memory
Register: RA
MODE
MODE
I/O Mapped
Register: IOC6
ADDL
ADDL
IOC7
ADDM
ADDM
IOC8
ADDH
ADDH
IOC9
ROM data input
ROM data input
IOCA
Sampling rate
Sampling rate
IOCB
D/A 1 output
D/A 1 output
IOCC
D/A 2 output
D/A 2 output
Control
Registers for
Speech
Channels
Содержание 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 ...