DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

SM5L1 データシートの表示(PDF) - Sharp Electronics

部品番号
コンポーネント説明
メーカー
SM5L1
Sharp
Sharp Electronics Sharp
SM5L1 Datasheet PDF : 27 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
4-Bit Single Chip Microcomputers
SM5L1/SM5L2/SM5L3
MELODY ROM INSTRUCTION
The melody ROM instruction is composed of 6 bits.
The 6-bit instruction (one set) corresponding to a musi-
cal note, generates a sound signal.
Table 3. Melody Bit Description
BIT
DESCRIPTION
I
Control the tone length. When 1, 125 ms;
when 0, 62.5 ms.
OCT
m3 - m0
When the octave is 1, the frequency is de-
termined by m3 - m0. When the octave is
0, 1/2 of the frequency determined by
m3 - m0.
Frequency as shown in Figure 21. Pause
when m3 = m2 = m1 = m0 = 0, stop instruc-
tion when m3 = m2 = m1 = 0, m0 = 1.
EXAMPLE OF WRITING ON THE MELODY ROM
An example of writing a tone such as the following, on
the melody ROM are shown in Figure 22 and Table 4.
The tone length of an initial musical note which is
generated from ROM addressed data assigned by a
PRE instruction has an error of maximum ±4 ms.
Therefore, by applying a pause as an initial note, a mel-
ody performs with a precisely regulated tone length.
MUSICAL
SCALE
sol
la
sol
mi
do
re
do
la
TONE LENGTH
(ms)
OCT m3 m2 m1 m0
375
0
0 111
125
0
0 101
250
0
0 111
250
0
1 010
375
1
0 010
125
1
1 100
250
1
0 010
250
0
0 101
5L1-22
Figure 22. Melody ROM Tone Writing Example
Table 4. Melody ROM Instruction Example
ADDRESS
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
DATA
00
27
27
27
25
27
27
2A
2A
22
22
22
3C
22
22
25
25
01
MUSICAL NOTE
INSTRUCTION
pause
sol
sol
sol
la
sol
sol
mi
mi
do
do
do
re
do
do
la
la
stop
Microcomputer Data Sheet
17

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]