datasheetbank_Logo
データシート検索エンジンとフリーデータシート

M34116 データシートの表示(PDF) - STMicroelectronics

部品番号
コンポーネント説明
一致するリスト
M34116 Datasheet PDF : 23 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
M34116
M34116 INSTRUCTION SET (continued)
INSTRUCTION 5: M34116 TONE GENERATION
Up to 7 Tone and 1 Melody channels may be active simultaneously. The instruction format for Tone and
Melody is the same. For each Tone channel from 1 up to 4 couples of Step/Time may be specified while
for the Melody channel from 1 up to 32 couples of Step/Time may be specified.
Note:
The Melody channel can be channel 0 or 8 or 16 or 24 etc. according to the following formula:
Melody channel number = 0 + 8 x n (n = 0, 1, 2, 3, 4, 5, 6, 7)
The Tone channel assignment follows the same rule:
Tone 1 channel number = 1 + 8 x n (n = 0, 1, 2, 3, 4, 5, 6, 7)
Tone 2 channel number = 2 + 8 x n (n = 0, 1, 2, 3, 4, 5, 6, 7)
. .. ......... .... ........ ... ..................
Tone 7 channel number = 7 + 8 x n (n = 0, 1, 2, 3, 4, 5, 6, 7)
This means that, selecting the tone 1 on the channel 9 (or and other one of its series), the channels 1,
17, 25.... can not be used for tones (or melody). The same is occuring for the tones 2...7 or the melody.
Control Signal
Data Bus
CS
RD
C/D
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
0
AO4 AO3 AO2 AO1 AO0
0
1
0
0
C4
C3
C2
C1
C0
0
1
1
0
1
1
0
0
0
1
0
0
S17
S16
S15
S14
S13
S12
S11
S10
0
1
0
0
T17
T16
T15
T14
T13
T12
T11
T10
0
1
0
0
S27
S26
S25
S24
S23
S22
S21
S20
0
1
0
0
T27
T26
T25
T24
T23
T22
T21
T20
:
:
:
:
:
:
:
:
:
:
:
:
optional end code:
0
1
0
0
1
1
1
1
1
1
1
1
opcode:
0
1
1
0
1
1
0
0
y AO4–AO0: Output attenuation or gain (±15dB) AO4 = 1 gain, AO4 = 0 attenuation,
AO3–AO0 value in dB (0–15)
0dB attenuation or gain correspond to -6dBm0 level.
y C5–C0: Channel number (0–63)
y Sn7–Sn0: Frequency Step for the n–th note in the tone sequence (n = 1–4 for tone n = 1–32 for
melody). Step is a compressed coding of the frequency value. Given a frequency value f the value of
S7–S0 can be calculated as follow:
1) calculate the linear step
SL = round
(
f
x
32
125
)
2) apply the following table to get S7–S0 value from SL value (see also Appendix 1A and 1B).
S7 S6
Linear Step SL value (10 bit)
(SL decimal) STEP (Hz)
0
0
0
0
0
0 S5 S4 S3 S2 S1 S0 (164) (*)
3.9
0
0
0
0
0
1 S5 S4 S3 S2 S1 S0 (65–>127) (**)
3.9
0
1
0
0
1 S5 S4 S3 S2 S1 S0 0 (128–>254)
7.8
1
0
0
1 S5 S4 S3 S2 S1 S0 0
0 (256–>508)
15.6
1
1
1 S5 S4 S3 S2 S1 S0 0
0
0 (512–>1008)
31.2
(*) For tone 7 only; (**) For melody and tone 1-6
Note: to obtain a Pause (Silence) –> S7–S0 must be all 0’s
y End code: if Less than 4 couples of Step/Time for tone or less than 32 for melody are to be specified
then after the last couple of Step/Time a Step of all 1’s (optional end code) must be sent before the
opcode. Otherwise it must be skipped.
y Tn7–Tn0: Specify the duration of the n’th note or pause. The time increment is 32ms. To get T7–T0
value, divide the wanted duration in ms by 32 and round to integer.
Note: The minimum time between rising edges of successive WR for tone generation instruction is 4ck
periods (6ck periods if EC = 1).
11/23

Share Link: 

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