EM73PA88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PROGRAM EXAMPLE:
SP_ADR1
EQU
1234H
; the start address of the speech section
:
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
#SP_ADR1
P6
#SP_ADR1/10H
P6
#SP_ADR1/100H
P6
#SP_ADR1/1000H
P6
; set sample rate & start speech
LDIA
OUTA
#0010B
P5
; wait speech end
WAIT
TTP
B
P5,3
WAIT
; get speech active flag
USING SPEECH ROM AS DATA ROM
The speech ROM can be used for speech synthesizer and for data ROM simutaneously.
First, write initial address to P7 (five times), and after four cycles, you can read P7 to get data, and address
counter increases one automatically.The following read operations must be at an internval of instruction
cycles which are more than 3.
The read operation should be all done before you leave normal mode and change to slow mode.
Get speech ROM data (P7 read) :
3
2
1
0
Port 7
Set speech ROM address (P7 write) :
3
2
1
0
Port 7
P7L1
P7L2
P7L3
P7L4
P7L5
- A18 A17 A16
A3 A2 A1 A0 A7 A6 A5 A4 A11 A10 A9 A8 A15 A14 A13 A12
PROGRAM EXAMPLE:
D_ADR1
EQU
12345H
; the start address of the speech ROM
:
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
#D_ADR1
P7
#D_ADR1/10H
P7
#D_ADR1/100H
P7
#D_ADR1/1000H
P7
#D_ADR1/10000H
P7
* This specification are subject to be changed without notice.
10.8.2001
27