參數(shù)資料
型號(hào): HT36A4
廠商: Holtek Semiconductor Inc.
英文描述: 8-Bit Music Synthesizer MCU
中文描述: 8位微控制器音樂(lè)合成器
文件頁(yè)數(shù): 16/22頁(yè)
文件大?。?/td> 247K
代理商: HT36A4
HT36A4
Rev. 1.00
16
July 2, 2003
CH[2~0] channel number selection
The HT36A4 has a built-in 8 output channels and
CH[2~0] 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.
Change parameter selection
These two bits, VM and FR, are used to define which
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:
VM
FR
Function
0
0
Update all the parameter
0
1
Only update the frequency number
1
0
Only update the volume
Output frequency definition
The data on BL[3~0] and FR[11~0] are used to define
the output speed of the PCM file, i.e. it can be used to
generate the tone scale. When the FR[11:0] is 800H
and BL[3:0] is 6H, each sample data of the PCM code
will be sent out sequentially.
When the f
OSC
is 6.4MHz, the formula of a tone fre-
quency is:
25kHz
FR [11~ 0]
f
OUT
= f
RECORD
SR
2
(17-
where f
OUT
is the output signal frequency, f
RECORD
and
SR is the frequency and sampling rate on the sample
code, respectively.
So if a voice code of C3 has been recorded which has
the f
RECORD
of 261Hz and the SR of 11025Hz, the tone
frequency (f
OUT
) of G3: f
OUT
=98Hz.
Can be obtained by using the fomula:
25kHz
98Hz= 261Hz
11025Hz
FR[11~ 0]
2
(17-
A pair of the values FR[11~0] and BL[3~0] can be de-
termined when the f
OSC
is 6.4MHz.
Start address definition
The HT36A4 provides two address types for extended
use, one is the program ROM address which is pro-
gram counter corresponding with PF value, the other
is the start address of the PCM code.
The ST[10~0] is used to define the start address of
each PCM code and reads the waveform data from
this location. The HT36A4 provides 16 input data lines
fromWA[15~0],theST[10~0]isusedtolocatethema-
jor 11 bits i.e. WA[15~5] and the undefined data from
WA[4~0] is always set as 00000b. In other words, the
WA[15~0]=ST[10~0] 2
5
. So each PCM code has to
be located at a multiple of 32. Otherwise, the PCM
code will not be read out correctly because it has a
wrong start code.
Waveform format definition
The HT36A4 accepts two waveform formats to ensure
a more economical data space. WBS is used to define
the sample format of each PCM code.
WBS=0 means the sample format is 8-bit
WBS=1 means the sample format is 12-bit
The 12-bit sample format allocates location to each
sample data. Please refer to the waveform format
statement as shown below.
Repeat number definition
The repeat number is used to define the address
which is the repeat point of the sample. When the re-
peat number is defined, it will be output from the start
code to the end code once and always output the
range between the repeat address to the end code
(80H) until the volume become close.
The RE[9~0] is used to calculate the repeat address
of the PCM code. The process for setting the RE[9~0]
is to write the 2 s complement of the repeat length to
RE[9~0], with the highest carry ignored. The HT36A4
will get the repeat address by adding the RE[9~0] to
the address of the end code, then jump to the address
to repeat this range.
Volume control
The HT36A4 provides the volume control independ-
ently. The volume are controlled by VR[9~0] respec-
tively. The chip provides 1024 levels of controllable
volume, the 000H is the maximum and 3FFH is the
minimum output volume.
The PCM code definition
The HT36A4 can only solve the voice format of the
signed8-bitrawPCM.AndtheMCUwilltakethevoice
code 80H as the end code.
So each PCM code section must be ended with the
end code 80H.
%
$
2
=
=
2
2
+
8
< +
+ 0 9
G +
+ 8
+ 9
+
+ ; 1
-
=
( 9
@ C
2 C + 2
<
+ (
; ;
C
C +
+ (
; ;
C
= C + = 9 > + (
; ;
+
8
< +
+ 0 9
Waveform format
相關(guān)PDF資料
PDF描述
HT3810 128 NOTE MELODY GENERATORS
HT3810A 128 NOTE MELODY GENERATORS
HT3810B 128 NOTE MELODY GENERATORS
HT3810C 128 NOTE MELODY GENERATORS
HT3810D 128 NOTE MELODY GENERATORS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT36A4_07 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Music Synthesizer 8-Bit MCU
HT36ARP 功能描述:兩端交流開(kāi)關(guān)元件 32-40V RoHS:否 制造商:STMicroelectronics 轉(zhuǎn)折電流 VBO:45 V 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:SOT-23 封裝:Reel
HT36B 功能描述:兩端交流開(kāi)關(guān)元件 34-38V RoHS:否 制造商:STMicroelectronics 轉(zhuǎn)折電流 VBO:45 V 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:SOT-23 封裝:Reel
HT-36B 制造商:TECCOR 制造商全稱:TECCOR 功能描述:Bilateral Trigger Diacs
HT36B0 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:8-Bit Music Synthesizer MCU