Electronic Components Datasheet Search
  English  ▼

X  

SM5M2 Datasheet(PDF) 16 Page - Sharp Corporation

Part # SM5M2
Description  4-Bit Single-Chip Microcomputer(LCD Driver)
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SHARP [Sharp Corporation]
Direct Link  http://sharp-world.com/
Logo SHARP - Sharp Corporation

SM5M2 Datasheet(HTML) 16 Page - Sharp Corporation

Back Button SM5M2 Datasheet HTML 12Page - Sharp Corporation SM5M2 Datasheet HTML 13Page - Sharp Corporation SM5M2 Datasheet HTML 14Page - Sharp Corporation SM5M2 Datasheet HTML 15Page - Sharp Corporation SM5M2 Datasheet HTML 16Page - Sharp Corporation SM5M2 Datasheet HTML 17Page - Sharp Corporation SM5M2 Datasheet HTML 18Page - Sharp Corporation SM5M2 Datasheet HTML 19Page - Sharp Corporation SM5M2 Datasheet HTML 20Page - Sharp Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 28 page
background image
SM5M2
- 16 -
CONTROL PROCEDURE
The binary counter for designating the address of
the melody ROM can be arbitrarily set using the
PRE instruction.
A performance is started and
stopped by the RD0-flag to "1" and "0".
The stop code generates a "rest tell signal", and at
the same time, sets the RD1 flag. The end of the
melody can be found by testing the RD1 flag.
Accordingly, to stop a performance at the end of
melody, the RD0 flag must be clear upon detection
of RD1 flag = 1.
Next step of PRE instruction, put the NOP
instruction.
The following is an example of a melody
generating program.
MELO
LAX
2
ATX
LAX
1
PRE
; Set the starting address of
the melody at the 21st.
Hexadecimal step.
NOP
; Dummy command
:
:
LBLX
0DH
LAX
1
OUT
; Start the melody
TPB
1
; Executed for clear the
RD1 flag
NOP
; Dummy command
:
:
LBLX
0DH
L1
TPB
1
; Test the RD1 flag
TR
L1
; Loop for detect the stop
code
LAX
0
OUT
; Stop the melody
Using these functions, the user can generate
music, sound effects, alarm signals, etc. as desired,
and any portion of the music can be repeated.
Table 3 lists the melody output frequencies. The
output frequency can be halved by making bit 5
(OCT) of the melody ROM Low (0). In Table 3, m0
to m3 show data in bits 1 to 4 of the melody ROM.
Table 3
Melody Output Frequency
∗1 Number of clocks for one cycle
∗2 The number (n) in the waveforms represents the number of periods of the oscillation frequency (32.768 kHz) from the crystal
oscillator for the duration in that particular part of the waveform.
m3 m2 m1 m0
OUTPUT FREQUENCY (Hz) CLOCK NUMBER
∗1
∗2
do
0 0 1 0
2114.1
15.5
si
0 0 1 1
1985.9
16.5
la#
0 1 0 0
1872.4
17.5
la
0 1 0 1
1771.2
18.5
sol#
0 1 1 0
1680.4
19.5
sol
0 1 1 1
1560.4
21.0
fa#
1 0 0 0
1489.5
22.0
fa
1 0 0 1
1394.4
23.5
mi
1 0 1 0
1310.7
25.0
re#
1 0 1 1
1236.5
26.5
re
1 1 0 0
1170.3
28.0
do#
1 1 0 1
1110.8
29.5
7
8
8
8
8
8
8
9
8
9
9
9
9
9
9
10
9
10
10
10
10
11
10
11
11
11
11
11
11
12
12
12
12
13
12
13
13
13
13
14
14
14
14
14
14
15
15
15



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com