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.
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 ...........
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 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.
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.
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...
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.
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.
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.
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.
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.
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...
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.
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”.
Need help?
Do you have a question about the NuSpeech Series and is the answer not in the manual?
Questions and answers