跳转到主要内容
瑞萨电子 (Renesas Electronics Corporation) - June is Pride Month, a month to raise awareness of the rights and the culture of the LGBTQ+ community

描述

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

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+, e² studio, or IAR Embedded Workbench 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

图像
For Sound Decompression
For Sound Decompression

特性

  • 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.
  • Two or more sound channels (playback)
    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

目标设备

类型 文档标题 日期
应用说明 PDF 1.37 MB 日本語
AI 生成的摘要: Audio playback of ADPCM data stored in NOR FLASH is achieved using the I2S master function on the RL78/G23 microcontroller. The system integrates NOR FLASH control via the Serial NOR Flash Memory Control Module Software Integration System (SIS) and uses M3S-S2-Tiny middleware for ADPCM encoding and decoding. The I2S communication supports PCM format with sampling frequencies of 8 kHz to 22.05 kHz and 16-bit data size. The document details hardware and software configurations, including pin usage, commands for writing and reading NOR FLASH, error handling, and flow charts for key functions. It also covers audio playback methods, middleware integration, and sample code for implementation.
应用说明 PDF 237 KB 日本語
AI 生成的摘要: The document details the development environment and library specifications for the RL78 Family Sound Playback/Compression System using the Original ADPCM Codec. It specifies compatible toolchains for CC-RL and IAR C/C++ compilers, including IDE versions, compiler versions, and code generator tools. ROM, RAM, and stack size requirements for the provided libraries are outlined. Developers must specify the "near" symbol for pointer arguments in all memory models.
应用说明 PDF 850 KB 日本語
AI 生成的摘要: The document provides a demonstration of sound playback and compression on the RL78/G14 CPU board. It includes a structured folder with application notes in English and Japanese, sample programs for various development environments (CS+ for CA, CX, CC, and IAR Embedded Workbench), and sound data files. The development environment section specifies compatible hardware boards and software toolchains, including versions of CS+, IAR Embedded Workbench, and Applilet3 code generator tools.
3 项目

样例程序

样例程序

筛选
类型 文档标题 日期 日期
示例代码
登录后下载 ZIP 26.76 MB
应用: 消费电子产品
Compiler: CC-RL, ICCRL78 Function: Application Example, Memory, Other peripherals IDE: CS+ for CC, e2 studio, IAR EWRL78
示例代码
[Toolchains=CC-RL|v1.10.00;IAR|4.20.1.2260;LLVM|V10.0.0.202207]
登录后下载 ZIP 1.93 MB Compiler: CC-RL, ICCRL78 IDE: e2 studio, IAR EWRL78
示例代码
登录后下载 ZIP 6.07 MB 日本語 Compiler: CA78K0R, CC-RL, ICCRL78 IDE: CS+ for CA, CX, CS+ for CC, IAR EWRL78
3 项目

Operating Environment

Target DeviceRL78 Family
Integrated Development Environment
  • e² studio
  • CS+ for CC
  • IAR Embedded Workbench for Renesas RL78 (IAR Systems)
Supporting compiler
Occupied ROM SizeApprox. 0.8Kbytes
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)
图像
Sample application combining a file system and sound playback
Sample application combining a file system and sound playback

How to Obtain

M3S-S2-Tiny

Target DeviceApplication Note Title
RL78 FamilyRL78 Family M3S-S2-Tiny: Introduction Guide Rev.2.01 (PDF | English, 日本語)

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.

支持社区

支持社区

在线询问瑞萨电子工程社群的技术人员,快速获得技术支持。
浏览文章

知识库

浏览我们的知识库,获取文章、常见问题解答及其他实用资源。
提交工单

提交工单

需要咨询技术性问题或提供非公开信息吗?