
W58300
- 6 -
3. PAGE Register
BIT
7
6
5
4
3
2
1
0
PAGE
-
-
-
PG4
PG3
PG2
PG1
PG0
Bits 5
7 of PAGE register are reserved; bits 0
4 are used for page selection. The user must set the
page mode configuration described in the Option Control declaration. Once the page mode is
decided, the working page is selected by the bits 0
4 of PAGE register. Hence, the user can execute
"LD PAGE, value" instruction to change the working page of the interrupt vector/label. Not all of the
bits 0
4 of PAGE register are used in different page mode; they are listed below.
PAGE MODE
PG4
PG3
PG2
PG1
PG0
1-page
×
×
×
√
×
×
√
√
×
√
√
√
×
√
√
√
×
√
√
√
8-page
16-page
32-page
Where "
×
" means don
′
t care and "
√
" means must be set properly.
4. EN0, EN1 Registers
BIT
7
6
5
4
3
2
1
0
EN0
TG4R
TG3R
TG2R
TG1R
TG4F
TG3F
TG2F
TG1F
EN1
TG8R
TG7R
TG6R
TG5R
TG8F
TG7F
TG6F
TG5F
A "1" means "enabled", while a "0" means "disabled" for that edge of the particular TG pin. For
example, the instruction "LD EN0, 0x0F" enables all the falling edge triggers of TG1
TG4, while
disabling all the rising edge triggers of TG1
TG4. The user can modify the EN0 and EN1 registers
during operation of the W58300 to achieve various kinds of trigger functions, like retriggerable or not,
one shot or level hold play mode, etc.
That is to say, users can change the contents of EN0, EN1 register during synthesis at will to
determine which trigger pin is to be enabled or disabled for its falling/rising edge.
5. STOP Register
BIT
7
6
5
4
3
2
1
0
STOP
STH
STG
STF
STE
STD
STC
STB
STA
The STOP register is used to control the status of the STPA
STPH pins. For example, STB = 1
means that pin is in high state and STB = 0 means low state.
6. R0
R7 Registers
These eight registers are general purpose registers. They can be used to hold interrupt vector/label.
R0 is a special register which can be incremented by "INC" instruction.