Nuvoton NuSpeech Series Technical Reference Manual

High sound quality voice synthesizer
Table of Contents

Advertisement

Quick Links

N5132 Technical Reference Manual
NuSpeech Family
N5132 High Sound Quality Voice Synthesizer
Technical Reference Manual
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuVoice microcontroller based
system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
November 7, 2014
Page 1 of 20
Rev. 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuSpeech Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuSpeech Series

  • Page 1 The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NuVoice microcontroller based system design. Nuvoton assumes no responsibility for errors or omissions.
  • Page 2: Table Of Contents

    N5132 Technical Reference Manual Table of Contents Table of Contents ........................2 List of Tables ..........................3 List of Figures ........................... 3 General Description ..................... 4 Features ......................... 4 Pin Configuration ......................5 Pin Assignment (SOP20) ....................5 Pin Description ........................ 5 SPI interface ........................
  • Page 3: List Of Tables

    N5132 Technical Reference Manual List of Tables Table 4-1: The SPI command summary ..................8 Table 6-1: The method to enable the output of 250 Hz clock............17 List of Figures Figure 4-1: N5132 supports SPI bus protocol – Mode 3 ..............7 Figure 4-2: The common features of all command protocol types ...........
  • Page 4: General Description

    N5132 Technical Reference Manual GENERAL DESCRIPTION The N5132 is a high sound quality Voice Synthesizer with advanced 5-bit MDPCM algorithm. It includes 4-bit C with SPI interface to communicate with external MCU and PWM output to playback voice.. Note1: Please refer to data sheet for electrical related spec and typical applications. FEATURES ...
  • Page 5: Pin Configuration

    N5132 Technical Reference Manual PIN CONFIGURATION 3.1 Pin Assignment (SOP20) BP32 (0: Enable CLK250HZ output) VSS1 BP33 (CLK250HZ output) VDD1 PWM+ /RESET VDD_SPK N5132 (SOP20) PWM- VSS_SPK TEST BP13 (MOSI) V33O BP12 (MISO) (SSB) BP10 BP11 (SCLK) 3.2 Pin Description Name Type Power...
  • Page 6 N5132 Technical Reference Manual VSS1 Ground pin. It must connect to VSS. Power supply. Ground pin. V33O Pout 3.3V regulator output. It is for chip internal use only, cannot connect to external device. Power supply 7.5V input for OTP memory programming. NC for normal operation.
  • Page 7: Spi Interface

    N5132 Technical Reference Manual SPI INTERFACE The N5132 uses an industry standard SPI interface to communicate with microcontroller host. However, the SPI bus protocol includes 4 modes. But the N5132 operates in mode 3 only. These SPI modes determine the relationship between the serial clock and the data bits. Many common microcontrollers contain built-in hardware SPI ports.
  • Page 8: Spi Command Summary

    N5132 Technical Reference Manual 4.1 SPI Command Summary The microcontroller host can send commands through the SPI interface to achieve the intended functions. The SPI commands supported by the N5132 are listed in Table 4-1. Table 4-1: The SPI command summary Command Format Function description Command Protocol...
  • Page 9: Figure 4-2: The Common Features Of All Command Protocol Types

    N5132 Technical Reference Manual 0 1 2 4 5 6 7 8 9 10 12 13 14 15 SCLK (Feature 1) command HOST MOSI 7 6 5 4 3 2 1 0 ..MISO 7 6 5 4 3 2 1 0 Command returned (Feature 3) STATUS...
  • Page 10: The Command Protocol Type

    N5132 Technical Reference Manual 4.2 The command protocol type The N5132 incorporates the command protocols to prevent inadvertent write cycles caused by spurious system level signals that may exist during power transition. The feature of command protocol allows microcontroller host to examine in time whether or not the N5132 receives the instructions correctly.
  • Page 11: Figure 4-5: The Desired Protocol Sequence For Read_Id Command

    N5132 Technical Reference Manual Command protocol type 2 This command protocol 2 is applied to READ_ID only. The READ_ID command is used to read the 4 bytes of product ID bonded to the set of playlists. When user creates the playlists using the playlist editor tool, user can assign 4-byte hexadecimal codes as the specified product ID at the same time.
  • Page 12: Figure 4-7: Open The Product Id Menu

    N5132 Technical Reference Manual Figure 4-7: Open the Product ID menu. READ_ID command SCLK HOST MOSI 0x10 0x** 0x** 0x** 0x** 0x01 MISO STATUS 0x10 0xD4 0xC3 0xB2 0xA1 0x** = means do not care ID[31:24] ID[23:16] ID[15: 8] ID[ 7: 0] Figure 4-8: The SPI bus timing of READ_ID command.
  • Page 13: Figure 4-9: N5132 Receives A Valid Command Based On The Command Protocol 1

    N5132 Technical Reference Manual Command protocol type 3 For the other commands except PLAY and READ_ID commands, the command protocol 3 can achieve the intended functions. The protocol timing is illustrated in Figure 4-9. The microcontroller host can send the command followed by one END-code and then closes this SPI transaction. The first byte shifted out at MISO pin by the N5132 is the value of status register which will be described in section 4.4.
  • Page 14: The Limitations Of Spi Command Protocol

    N5132 Technical Reference Manual 4.3 The limitations of SPI command protocol Users need to notice three operating limitations to use the SPI command protocol of N5132. 4.3.1 The maximum SPI bus serial clock rate The N5132 can tolerate 12.5 KHz of SPI bus serial clock rate maximally, i.e. the microcontroller host cannot send the serial clock too quick.
  • Page 15: How To Wake Up N5132

    N5132 Technical Reference Manual playback is still busy ³ 1 ms ³ 1 ms 0 1 2 3 4 5 6 7 11 12 13 14 15 0 1 2 3 4 5 6 7 11 12 13 14 15 0 1 2 3 4 5 6 7 11 12 13 14 15 SCLK...
  • Page 16: Status Register

    N5132 Technical Reference Manual STATUS REGISTER The N5132 has one status register indicating the real-time operating status. It is an 8-bit register and the MSB bit is the first bit to be shifted out at the beginning of SPI transfer. Status Register SP_BUSY VALID...
  • Page 17: The Calibration Of System Clock

    N5132 Technical Reference Manual THE CALIBRATION OF SYSTEM CLOCK The desired system clock of N5132 is 8,192 KHz. The system clock is generated by the ring oscillator which connects 150K ohm resistor at OSC pin to ground. That 150K ohm resistor is labeled as Rosc. Somehow the built-in ring oscillation circuit may vary from lot to lot.
  • Page 18: Application Circuit

    N5132 Technical Reference Manual APPLICATION CIRCUIT N5132 1 NC BP32 20 (SOP20) VSS1 BP33 VDD1 0.1uF PWM+ /RESET SPEAKER 5 VDD_SPK Microcontroller 0.1uF 4.7uF 150 ohm Host PWM- VSS_SPK TEST (MOSI) BP13 V33O (MISO) BP12 0.1uF BP10 (SSB) (SCLK) BP11 Figure 7-1: The application circuit for 3 batteries.
  • Page 19: Revision History

    N5132 Technical Reference Manual REVISION HISTORY PAGE/ VERSION DATE DESCRIPTION CHAP. V1.0 Nov., 2014 Initial release. November 7, 2014 Page 19 of 20 Rev. 1.0...
  • Page 20 N5132 Technical Reference Manual Important Notice Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.

This manual is also suitable for:

N5132

Table of Contents