
Chapter 4
38
•
Special Function Control
EM60000Series User’s Manual
4.2.2 IOC6, 7, 8 (Address Registers)
Speech Channel 1 19 16 15 8 7 0
IOC8 (ADDH)
IOC7 (ADDM)
IOC6 (ADDL)
Each speech channel has its own address pointer for speech data access. The
addresses are written by user and stored in IOC6 ~ IOC8 and is a 20 bits in total
length. The maximum voice ROM size currently available is 1M bytes
(EM60500). Your program should write the 3-byte address value into these
registers before reading the voice ROM data. The initial values of IOC6 ~ IOC8
are unknown.
4.2.3 IOC9 (ROM Data Input Registers)
When R9 = 0x00 or 0x01, your program can access the voice ROM data through
IOC9 in two ways
:
1.
Use an IOR instruction on IOC9 to get data in byte format from the voice
ROM. The address (IOC6 ~ 8) will automatically increase by one.
Example:
Read voice ROM data in byte form.
R9 ==
0x09
IOC6 == 0x6
IOC7 == 0x7
IOC8 == 0x8
IOC9 == 0x9
buffer ==
0x13
MOV
A,
@0 ;set R9=0 for speech Channel 1 control
MOV
R9,
A
MOV
A,
@0
IOW
IOC6
;voice ROM address = 0x0000
IOW
IOC7
IOW
IOC8
IOR
IOC9
;read 1-byte voice ROM data into ACC
MOV
buffer, A ;store in the buffer
2.
Using the “GET” instruction can fetch 1 to 8 bits of data. The instruction will
take one instruction cycle and the desired data will be read into the
accumulator. The ROM data will be treated as a data stream being pointed to
by IOC6~8. You cannot use the “GET” instruction continuously. If
continuous access is necessary, you should insert 5 instructions between two
“GET” instructions.
Содержание 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 ...