TMP91xy20AFG Toshiba, TMP91xy20AFG Datasheet - Page 276

no-image

TMP91xy20AFG

Manufacturer Part Number
TMP91xy20AFG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP91xy20AFG

Package
LQFP144
Rom Types(m=mask,p=otp, F=flash,e=eeprom)
M
Rom Combinations
8
Ram Combinations
8
Architecture
16-bit CISC
Usb/spi Channels
-
Uart/sio Channels
1
I2c/sio Bus Channels
1
(s)dram Controller
1
Adc 10-bit Channel
8
Da Converter
-
Timer 8-bit Channel
4
Timer 16-bit Channel
1
Pwm 8-bit Channels
-
Pwm 16-bit Channels
-
Cs/wait Controller
4
Dual Clock
Y
Number Of I/o Ports
77
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 easily sound.
(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)
(Ref: Basic musical scale setting table)
In case of outputting a musical scale (440 Hz)
Scale
G
LD
LD
LD
C
D
E
F
A
B
C
Frequency
melody output waveform
setting value for melody
(MELALMC), 11X00001B ; Select melody waveform
(MELFL), 23H
(MELFH), 80H
[Hz]
264
297
330
352
396
440
495
528
(Notice: N = 1 to 4095 (001H to FFFH), 0 is not acceptable)
91C820A-274
Register
Value: N
03CH
02DH
01DH
01FH
035H
030H
027H
023H
at fs = 32.768 [kHz]
f
N = (16384/f
; N = 16384/440 − 2 = 35.2 = 023H
; Start to generate waveform
MLD
[Hz] = 32768/(2 × N + 4)
MLD
) − 2
TMP91C820A
2008-02-20

Related parts for TMP91xy20AFG