![](http://datasheet.mmic.net.cn/230000/W58300_datasheet_15631060/W58300_7.png)
W58300
Publication Release Date: March 1999
- 7 - Revision A2
Option Control Function
There are four types of option that can be determined by a declaration in the user
′
s program file, but
can not be controlled by register.
FUNCTION
OPTION CONTROL
DECLARATION
DEFPAGE 1
DEFINITION
256 interrupt vector/label for 1 page, 1 page in total (1-
page mode)
256 interrupt vector/label for 1 page, 8 pages in total (8-
page mode)
128 interrupt vector/label for 1 page, 16 pages in total (16-
page mode)
64 interrupt vector/label for 1 page, 32 pages in total (32-
page mode)
Normal mode operation
CPU mode operation
3 MHz oscillator
1.5 MHz oscillator
DAC (AUD) output
PWM output
Page Mode
DEFPAGE 8
Configuration
DEFPAGE 16
DEFPAGE 32
Operation
Mode
Oscillator
Frequency
Voice
Output Type
NORMAL
CPU
OSC_3MHz
OSC_1.5MHz
VOUT_DAC
VOUT_PWM
"DEFPAGE" decides the page operation mode of W58300. The default setting of the page mode is 1-
page mode. The 8-page, 16-page or 32-page mode must be declared in order to reach the interrupt
vector/label from 256 to 2047 when the interrupt vector/label is beyond 0
255.
The W58300 can communicate with an external microprocessor through the simple serial CPU
interface, which is the same as the W581xx series. The CPU interface consists of the TG1, TG2, and
STPA/BUSY pins. "NORMAL" and "CPU" decide whether the operation mode of W58300 will be
normal mode or CPU mode.
"OSC_3MHz" and "OSC_1.5MHz" select the frequency of the system clock. "VOUT_DAC" and
"VOUT_PWM" select the voice output type. OSC_1.5MHz is recommended.
Interrupt Vector Allocation
The W58300 provides a total of 8 trigger inputs to communicate with the outside world. Each trigger
pin can invoke 2 dedicate interrupt vectors depending on TG pin status. The table below show the
relationship between TG pin status and interrupt vectors.
INTERRUPT
VECTORS
0
1
2
3
TRIGGER STATUS
INTERRUPT
VECTORS
8
9
10
11
TRIGGER STATUS
TG1F
TG2F
TG3F
TG4F
TG5F
TG6F
TG7F
TG8F
Continued