TMP92xy21FG Toshiba, TMP92xy21FG Datasheet - Page 380

no-image

TMP92xy21FG

Manufacturer Part Number
TMP92xy21FG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP92xy21FG

Package
LQFP144
Rom Types(m=mask,p=otp, F=flash,e=eeprom)
Romless
Rom Combinations
Romless
Ram Combinations
16
Architecture
32-bit CISC
Usb/spi Channels
-
Uart/sio Channels
2
I2c/sio Bus Channels
-
(s)dram Controller
1
Adc 10-bit Channel
4
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
82
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.
(Operation)
(Formula for calculating melody waveform frequency)
(Example program)
Reference) Basic musical scale setting table
The Melody function generates signals of any frequency (4 Hz to 5461 Hz) based on a
The melody tone can easily be heard by connecting an external loud speaker.
waveform to be output from MLDALM. The melody output frequency must then
be set to 12-bit registers MELFH and MELFL.
frequency.
MELALMC<MELALM> must first be set as 1 in order to select the melody
The following are examples of settings and calculations of melody output
Melody output waveform
Setting value for melody
(Note: N = 1 to 4095 (001H to FFFH), 0 is not acceptable.)
When outputting an “A” musical note (440 Hz)
Scale Frequency [Hz]
C
D
G
C
E
F
A
B
LD
LD
LD
(MELALMC), − − X X X X X 1 B
(MELFL), 23H
(MELFH), 80H
264
297
330
352
396
440
495
528
92CH21-378
f
N = (16384/ f
MLD
Register Value: N
[Hz] = 32768/(2 × N + 4)
03CH
02DH
01DH
035H
030H
027H
023H
01FH
MLD
; Select melody waveform
; N = 16384/440 − 2 = 35.2 = 023H
; Start to generate waveform
) − 2
at fs = 32.768 [kHz]
TMP92CH21
2009-06-19

Related parts for TMP92xy21FG