Skip to main content
Renesas Electronics Corporation - June is Pride Month, a month to raise awareness of the rights and the culture of the LGBTQ+ community

Description

M3S-S2-Tiny (hereafter abbreviated S2) is the sound playback system which just requires small memory.

This software library is a FIT module based on the Renesas Firmware Integration Technology (FIT). You can easily embed specific software in user applications by combining the required FIT modules.

Use S2 to enable sound output in any device incorporating a target microcontroller. S2's original algorithm compresses and expands sound in ADPCM mode compactly at high speed. It can be used to add true sound output functionality to devices that previously only provided visual indications or beeps.

Components

  • Sound data expansion software (library in binary format)
  • Sample software for sound reproduction
    (Source files in the format of projects for CS+ or e² studio that include a sample driver for the PWM output)
  • Library function and sample software user's manual and other documents in a complete set
  • Sound data compression/expansion tool (PC software)

How to obtain

Image
For Sound Decompression
For Sound Decompression
Image
For Sound Compression
For Sound Compression

Features

  • Sound compression and expansion using Renesas-specific ADPCM format
    16-bit PCM data (files in wav format) is compressed to 4-bit quantity on your PC, and the compressed 4-bit data is expanded to 16-bit PCM data on microcontroller. Then expanded 16-bit data is converted to 8- or 10-bit data according to your system's requirements.
  • The compressed data of two or more sound channels can be expanded in parallel.
  • The processing of expansion being optimized MCU by MCU
  • Compact design tailored for embedded systems
    Realizable using the internal memory of the MCUs
  • Includes sound compression/expansion utility (PC application)
    Recorded sound data (in wav format) can be compressed on a PC. (The compressed data can be incorporated into the microcontroller.)
    * The compressible formats are 16 bits quantized monaural PCM (files in wav format).
  • Includes sample programs which responds to Renesas IDE.
  • Learn More

Target Devices

Type Title Date
Application Note PDF 292 KB 日本語
This application note explains how to implement the ADPCM Encoder/Decoder Library using Firmware Integration Technology(FIT). S2 Library can playback/record to use RX Family. The S2 library for the Renesas Microcomputer is written in optimized assembler.
Application Note PDF 266 KB 日本語
AI-generated Summary: The sample program demonstrates sound playback and compression using an original ADPCM codec on various RX Family CPU boards. It supports voice playback via PWM or D/A output and voice recording by converting PCM input from A/D to ADPCM stored in RAM. The development environment requires specific versions of e2 studio, RXC Toolchain, and emulator tools. Sample programs are provided for RX64M, RX610, RX210, RX111, and RX65N boards, with configurable PWM and D/A output settings. Users connect their systems to the Middleware Evaluation Board for sound playback.
2 items

Sample Code

Sample Code

Filters
Type Title Date Date
Sample Code
[Software=RX Driver Package|V1.50],[Toolchains=CC-RX|V3.07.00]
Log in to Download ZIP 2.20 MB Compiler: CC-RX Function: Driver or Library IDE: e2 studio
Sample Code
Log in to Download ZIP 18.52 MB 日本語 Compiler: CC-RX IDE: e2 studio
2 items

Operating Environment

Target DeviceRX Family
Integrated Development Environment
Supporting compilerC/C++ Compiler Package for RX Family [CC-RX]
Occupied ROM SizeFor sound decompression: approx. 0.5Kbytes
For sound compression: approx. 0.4Kbytes
Occupied RAM SizeFor sound decompression: approx. 40bytes
For sound compression: approx. 30bytes
* Including the stack 

Purpose

  • Sound guidance
    • Salutations such as "Welcome" and "Thank you"
    • Guidance for equipment operation procedures such as "Please follow instructions" and "Please call the attendant"
    • Announcements such as "The bath is ready" and "Breakfast is ready"
    • Repeated playback of simple commercial or advertisement such as "Put on the market today"
  • Security
    • A trespasser, when detected, is warned by a large sound. "Informed to police" or "Crime-prevention camera is at work"
  • Safety measures
    • Calling one's attention for safety. "Hot water will run out" or "The door will be closed"
    • Warning one about abnormal state: "The door (lid) is open" or "The pot has run out of water"
  • Substitution of sounds for displays
    Use of sounds as substitutes for guidance, warnings, and so on through display elements such as LEDs or LCDs (improvement to functionality)
Image
Sample application combining a file system and sound playback
Sample application combining a file system and sound playback

How to Obtain

The RX Driver Package provides the set of FIT modules. Obtain the package, and you can then download the set of FIT modules you require. Furthermore, FIT modules work in combination with the Smart Configurator, which eases both downloading of the FIT modules and embedding them in user applications.

M3S-S2-Tiny

Sample Program

If you will be applying the sample program to another microcontroller, make changes and sufficiently evaluate the program according to the specifications of the given microcontroller.

Support Communities

Support Communities

Get quick technical support online from Renesas Engineering Community technical staff.
Browse Articles

Knowledge Base

Browse our knowledge base for helpful articles, FAQs, and other useful resources.
Submit a Ticket

Submit a Ticket

Need to ask a technical question or share confidential information?