SM1126 Series
Melody words
Melody words contain all the information needed for playback of a single note, including the note duration
and type (name or rest). Each melody word comprises a 3-bit length code (R2 to R0) followed by a 5-bit type
code (S4 to S0).
SIO
(n-1)th data
(n)th data
SC
write (n-1)th Data
write (n)th data
ST
ADDRESS
n-1
n
n+1
Figure 12. Melody word timing
End word
The end word (01011111) indicates the end of the melody. When the end word is detected during melody
playback, operation returns to the SRAM leading address. All data in SRAM after the end word is ignored.
SIO
01011111
next word
SC
write END-WORD
write next word
ST
ADDRESS
m
m+1
m+2
Figure 13. End word timing
End-of-write command
The end-of-write command (10111111) is used to return to play mode from write mode. This command
should be executed when power is first applied to set play mode.
WRITE mode changed to PLAY mode
SIO
1
0
1
1
1
1
1
1
SC
ST
Figure 14. End-of-write command timing
NIPPON PRECISION CIRCUITS—12