HT36F2
V
D
D
D
a
t
a
B
u
s
D
C
Q
W
e
a
k
W
r
i
t
e
C
o
n
t
r
o
l
R
e
g
i
s
t
e
r
K
Q
P
u
l
l
-
u
p
S
V
D
D
C
h
i
p
R
e
s
e
t
M
a
s
k
O
p
t
i
o
n
R
e
a
d
C
o
n
t
r
o
l
R
e
g
i
s
t
e
r
I
/
O
L
i
n
e
D
C
Q
W
r
i
t
e
I
/
O
K
Q
S
M
U
X
R
e
a
d
I
/
O
S
y
s
t
e
m
W
a
k
e
-
U
p
M
a
s
k
O
p
t
i
o
n
Input/Output Ports
Channel Wavetable Synthesizer
Name Function
1DH
D7
D6
D5
D4
D3
D2
D1
D0
DAC high byte (no default value)
DAC low byte (no default value)
DA15 DA14 DA13 DA12 DA11 DA10 DA9
DA8
DA0
1EH
DA7
DA6
DA5
DA4
DA3
DA2
¾
DA1
DAON=1: DAC ON
DAON=0: DAC OFF (default)
1FH
DAON SELW
¾
¾
¾
¾
¾
SELW=1: DAC data from wavetable
SELW=0: DAC data from MCU
20H
21H
22H
23H
24H
Channel number selection
High byte frequency number
Low byte frequency number
High byte start address
VM
BL3
FR7
FR
BL2
FR6
CH2
CH1
CH0
FR8
FR0
ST8
ST0
BL1
FR5
BL0
FR4
FR11 FR10 FR9
FR3
FR2
FR1
ST9
ST1
ST12 ST11 ST10
ST4 ST3 ST2
Low byte start address
ST7
WBS
RE7
A_R
ST6
RE6
ST5
RE5
Wave bit select,
25H
26H
27H
RE12 RE11 RE10 RE9
RE8
RE0
VR8
High byte repeat number
Low byte repeat number
RE4
RE3
RE2
RE1
Envelope control,
Volume control
ENV1 ENV0 VR9
28H~29H
2AH
Unused
VR6
Volume control
VR7
VR5
VR4
VR3
VR2
VR1
VR0
2BH~2FH
Unused
30H~FFH Data memory (RAM)
General purpose data memory (same as 8-Bit MCU)
Memory Map (20H~FFH) Register
Note:
²¾² No function, read only, read as ²0².
Unused: No function, read only, read as ²0².
·
CH1~CH0 channel number selection
register will be updated on this selected channel.
There are two modes that can be selected to reduce
the process of setting the register. Please refer to the
statements of the following table:
The HT36F2 has a built-in 8 output channels and
CH1~CH0 is used to define which channel is selected.
When this register is written to, the wavetable synthe-
sizer will automatically output the dedicated PCM
code. So this register is also used as a start playing
key and it has to be written to after all the other
wavetable function registers are already defined.
VM
0
FR
0
Function
Update all the parameter
Only update the frequency number
Only update the volume
0
1
·
Change parameter selection
1
0
These two bits, VM and FR, are used to define which
Rev. 1.00
14
August 15, 2005