ML610Q409-NNNTBZ03A7 Rohm Semiconductor, ML610Q409-NNNTBZ03A7 Datasheet - Page 281

no-image

ML610Q409-NNNTBZ03A7

Manufacturer Part Number
ML610Q409-NNNTBZ03A7
Description
MCU 8BIT 16K FLASH 4CH 100-TQFP
Manufacturer
Rohm Semiconductor
Series
-r

Specifications of ML610Q409-NNNTBZ03A7

Core Processor
nX-U8/100
Core Size
8-Bit
Speed
2MHz
Connectivity
SSP, UART/USART
Peripherals
LCD, Melody Driver, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
-
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
1.25 V ~ 3.6 V
Data Converters
A/D 2x16b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 70°C
Package / Case
100-TFQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ML610Q409-NNNTBZ03A7
Manufacturer:
Rohm Semiconductor
Quantity:
10 000
20.3 Description of Operation
20.3.1 Operation of Melody Output
Melody output waveform
Melody is output in the following procedure.
(1) Select melody mode by setting the BZMD bit of the melody 0 control register (MD0CON) to “0”.
(2) Set a melody tempo in the melody 0 tempo code register (MD0TMP).
(3) Set a tone length code in the melody 0 tone length code register (MD0LEN).
(4) Set a scale code in the melody 0 scale code register (MD0TON).
(5) Set bit 2 (ENMLT) of the frequency control register 1(FCON1) to “1” to enable the low-speed double clock.
(6) When the M0RUN bit of the melody 0 control register (MD0CON) is set to “1”, the tone length code and scale code
The melody 0 signal output pin (MD0) is assigned as the secondary function of Port 2 or Port 5. For the secondary
function of Port 2 or Port 5, see Chapter 15, "Port 2" or Chapter 18, "Port 5".
In the software processing after melody 0 interrupt, the tone length code and the scale code of the note that are output
next are set to MD0LEN and MD0TON, respectively. When there is no next note to be output, rest data “00H” is set in
MD0TON, the M0RUN bit is set to “0” by the software processing after the next melody 0 interrupt, and melody output
is terminated.
By setting the M0RUN bit to “0”, melody can be terminated forcibly during melody output.
Figure 20-2 shows the operation waveform of the melody driver.
Tone length/Scale buffer
are transferred to the tone length buffer and scale buffer and melody output is started from the MD0 pin. At the
same time, a melody 0 interrupt (MD0INT) is requested. When an interrupt occurs and program is passed to the
interrupt routine, the interrupt request flag is cleared.
MD0TON
MD0LEN
MD0INT
M0RUN
MD0*
XX
XX
Figure 20-2 Operation Waveform of Melody Driver
1st sound
1st sound waveform
1st sound
2nd sound
2nd sound
2nd sound
waveform
20-7
3rd sound
ML610Q407/ML610Q408/ML610Q409 User's Manual
3rd sound
3rd sound
waveform
Final
Final sound waveform
Final sound
Rest data
Chapter 20 Melody Driver
Rest data

Related parts for ML610Q409-NNNTBZ03A7