TMP91xy25FG Toshiba, TMP91xy25FG Datasheet - Page 219

no-image

TMP91xy25FG

Manufacturer Part Number
TMP91xy25FG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP91xy25FG

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
2
I2c/sio Bus Channels
-
(s)dram Controller
-
Adc 10-bit Channel
4
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
49
Power Supply Voltage(v)
3.0 to 3.6
3.15.3
3.15.3.1 Melody Generator
Operational Description
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.
(Operation)
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.
(Formula for calculating of melody waveform frequency)
(Example program)
In case of outputting La musical scale (440 Hz)
(Refer to basic musical scale setting table)
melody output waveform
setting value for melody
(Note: N = 1 to 4095 (001H to FFFH), 0 is not acceptable )
LD
LD
LD
Scale
C
D
G
C
E
F
A
B
(MELFH), 80H
(MELALMC), 11X00001B
(MELFL), 23H
Frequency [Hz]
264
297
330
352
396
440
495
528
91C025-218
N = (16384/f
f
MLD
Register Value: N
[Hz] = 32768/(2 × N + 4)
03CH
02DH
01FH
01DH
035H
030H
027H
023H
; Select melody waveform
; N = 16384/440 – 2 = 35.2 = 023H
; Start to generate waveform
MLD
) – 2
at fs = 32.768 [kHz]
TMP91C025
2007-02-28

Related parts for TMP91xy25FG