TMP91xy16FG Toshiba, TMP91xy16FG Datasheet - Page 214

no-image

TMP91xy16FG

Manufacturer Part Number
TMP91xy16FG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP91xy16FG

Package
LQFP100
Rom Types(m=mask,p=otp, F=flash,e=eeprom)
Romless
Rom Combinations
Romless
Ram Combinations
Ramless
Architecture
16-bit CISC
Usb/spi Channels
-
Uart/sio Channels
1
I2c/sio Bus Channels
-
(s)dram Controller
1
Adc 10-bit Channel
-
Da Converter
-
Timer 8-bit Channel
4
Timer 16-bit Channel
-
Pwm 8-bit Channels
-
Pwm 16-bit Channels
-
Cs/wait Controller
4
Dual Clock
Y
Number Of I/o Ports
31
Power Supply Voltage(v)
2.7 to 3.6
3.14.3
3.14.3.1 Melody Generator
Operational Description
(Operation)
(Formula for calculating of melody waveform frequency)
(Example program)
(Refer to “Basic musical scale setting table”)
low-speed clock (32.768 kHz) and outputs the signals from the MLDALM pin.
waveform as output waveform from MLDALM. Then melody output frequency has to
be set to 12-bit register MELFH, MELFL.
The Melody function generates signals of any frequency (4 Hz to 5461 Hz) based on
By connecting a loud speaker outside, Melody tone can sound easily.
At first, MELALMC<MELALM> have to be set as “1” in order to select melody
Followings are setting example and calculation of melody output frequency.
Melody output waveform
Setting value for melody
In case of outputting “La” musical scale (440 Hz)
Scale
(Note: N = 1 to 4095 (001H to FFFH), 0 is not acceptable )
LD
LD
LD
C
D
E
G
A
B
C
F
(MELALMC), 11X00001B
(MELFL), 23H
(MELFH), 80H
Frequency [Hz]
264
297
330
352
396
440
495
528
91C016-212
f
N = (16384/f
MLD
Register Value: N
[Hz] = 32768/(2 × N + 4)
03CH
02DH
01FH
01DH
035H
030H
027H
023H
at fs = 32.768 [kHz]
; Select melody waveform
; N = 16384/440 − 2 = 35.2 = 023H
; Start to generate waveform
MLD
) − 2
TMP91C016
2008-02-20

Related parts for TMP91xy16FG