參數(shù)資料
型號: S1C88816D
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 8.2 MHz, MICROCONTROLLER, UUC164
封裝: DIE-164
文件頁數(shù): 26/173頁
文件大?。?/td> 1411K
代理商: S1C88816D
S1C88816 TECHNICAL MANUAL
EPSON
113
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Melody Generator)
5.13.3 Controlling melody output
This section explains the play control method after
programming of the note and scale RAM has
finished.
s Selecting a melody
Select a melody before playback can be started.
Writing a melody start address (0 to FFH) to the
scale/note RAM address register MCAD0–MCAD7
selects it as the melody to be played next. The
specified value is used as the low-order 8-bit
address for the note and scale RAMs.
Writing 00H specifies address 00D000H of the scale
RAM and address 00D100H of the note RAM.
Writing FFH specifies address 00D0FFH of the scale
RAM and address 00D1FFH of the note RAM.
Since the melody RAM data has no parameter that
specifies a beginning of a melody, any play start
position can be specified using this register.
s Selecting a tempo
The tempo for playing a melody can be selected
from among 16 types shown in Table 5.13.3.1 using
the tempo selection register MTT0–MTT3.
Table 5.13.3.1 Tempo selection
MTT3
1
0
MTT2
1
0
1
0
MTT1
1
0
1
0
1
0
1
0
MTT0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
Tempo
480
240
160 (Vivace)
120 (Allegro)
96
80
(Andantino)
68.6
60
(Adagio)
53.3 (Lento)
48
43.6 (Largo)
40
36.9
34.3
32
30
Division
ratio
1/1
1/2
1/3
1/4
1/5
1/6
1/7
1/8
1/9
1/10
1/11
1/12
1/13
1/14
1/15
1/16
=
The selected tempo will be set to the play control
circuit at the start of play. Therefore, the tempo
cannot be changed in the middle of play. When the
MTT0–MTT3 register is changed during play, the
selected tempo will be applied at the start of the
next play.
s Selecting a play mode and start/stop of play
The melody generator supports two play modes
(level-hold play and one-shot play), and either one
can be selected using the play mode selection
register MLEV before starting play. The melody
output control register MTC is used to control play
and the control method differs according to the
play mode.
Before play can be controlled using the MTC
register, the output selection register MOSEL must
be set to "1" so that the MOUT and MOUT
terminals can output the melody signals.
(1) Control of level-hold play
The level-hold play mode can be selected by
writing "0" to the MLEV register.
In this mode, writing "1" to the MTC register
starts playing and writing "0" stops playing. The
melody output continues until MTC is set to "0"
even if the melody is changed while MTC is "1".
(The play sequence returns to the beginning of
the melody if the END bit has been set in the
note RAM.)
Accessing across the melody RAM end address
returns the sequence to the melody RAM start
address to continue play.
MTC
Melody output
(MBUSY)
Interrupt
Melody 1
MTC
Melody output
(MBUSY)
Interrupt
Melody 1
Melody 2
Fig. 5.13.3.1 Level-hold play mode
(2) Control of one-shot play
The one-shot play mode can be selected by
writing "1" to the MLEV register.
In this mode, writing "1" to the MTC register
starts playing and play is stopped at the end of
the melody (when the END bit is set to "1" in the
note RAM).
When "0" is written to the MTC register in the
middle of a melody, the play stops immediately.
Note that the END bit stops play but it does not
reset the MTC register to "0". Therefore, write
"0" to MTC after play has finished by the END
bit.
MTC
Melody output
(MBUSY)
Interrupt
Melody 1
MTC
Melody output
(MBUSY)
Interrupt
Melody 1
Fig. 5.13.3.2 One-shot play mode
相關(guān)PDF資料
PDF描述
S1C88832F0A0100 MICROCONTROLLER, PQFP128
S1C88848D0A0100 8-BIT, MROM, 8.2 MHz, MICROCONTROLLER, UUC192
S1C8F360F 8-BIT, FLASH, 8.2 MHz, MICROCONTROLLER, PQFP176
S1D13305F00B 640 X 256 PIXELS CRT CHAR OR GRPH DSPL CTLR, PQFP60
S1D13305F00A 640 X 256 PIXELS CRT CHAR OR GRPH DSPL CTLR, PQFP60
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S1C88848 制造商:EPSON 制造商全稱:EPSON 功能描述:8-bit Single Chip Microcomputer
S1C8F360D411000 功能描述:16位微控制器 - MCU 8-bit Flash 60KB LCD Dr. 51 x 32 RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風(fēng)格:SMD/SMT
S1C8F360D511000 功能描述:16位微控制器 - MCU 8-bit Flash 60KB LCD Dr. 51 x 32 RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風(fēng)格:SMD/SMT
S1C8F360F413100 功能描述:16位微控制器 - MCU 8-bit Flash 60KB LCD Dr. 51 x 32 RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風(fēng)格:SMD/SMT
S1C8F360F513200 功能描述:16位微控制器 - MCU 8-bit Flash 60KB LCD Dr. 51 x 32 RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風(fēng)格:SMD/SMT