Specifications
63
PF1072-04
Melody playing middleware
● Melody playing middleware for the S1C33 Family
● Supports simple PWM method similar to general melody ICs
● Max. 3-channel simultaneous outputs
● Supports in an S1C33 chip
■ FEATURES
•Middleware for the S1C33 Family is provided as a linkable library.
• Melody is output with 60Hz to 4kHz PWM waveforms using 16-bit timers.
• Melody tools allow input of music and evaluation of melody output on the PC.
•Compact data and library size (melody data: 2 bytes per note, library: 1.5K bytes) that needs only a small
ROM area.
• Suitable for data banks, PDAs, toys with a melody function.
■ HARDWARE CONFIGURATION
S1C33xxx
S1C33000
Core CPU
Built-in RAM
External RAM External ROM
Bus interface
Max. 3 ch
16-bit timer 0
16-bit timer 1
16-bit timer 2
Transister
or
AMP
for drive
Speaker
Piezoelectric
speaker
16-bit timer 4
(for interrupt)
■ RESOURCE
ROM size : Melody library = approx. 1.5K bytes, Melody data = approx. 2 bytes per note
RAM size : Approx. 150 bytes
Timer : 16-bit timer 4 is used for generating an interrupt
Melody output : One 16-bit timer is used for each output channel
■ SOFTWARE CONFIGURATION
● S5U1C330M1S Library
Libraries with melody subroutines that are called from the user's application.
Application
Hardware
16-bit timers 2 to 4 ch
S5U1C330M1S library
mdyOpen(), mdySet(), mdyStart(), ....
S1C33 Family S5U1C330M1S Middleware