ES521 WINBOND | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 15

Technical content

Introduction: The ES521 evaluation system allows testing of all features of the chip and visually shows the signal flow through the chip. Writing to three 16-bit configuration registers sets up the signal flow. An active path is highlighted in blue while the gray arrows show possible but not currently active paths. The main application window allows playback and record of analog audio as well as setting up the configuration registers. There are three ways to set the configuration registers,

  • Change the controls on the main window until the desired signal flow is highlighted in blue.
  • Type in values in the configuration register boxes in the top left window, the signal flow will be updated to show the current signal path.
  • Select a path from the Path menu. The various play and record buttons allow playback and record either from a supplied address or the current location of the address pointer. Pressing the ‘Read Status’ button retrieves the address pointer. The program also supports reading and writing digital data by selecting the ‘Digital’ menu in the menu bar. Content of the ES521 evaluation kit: The evaluation system package contains an Evaluation Board (batteries included) and a CD ROM with the following items:
  • User’s Guide
  • Self installing application software
  • Data sheets

Application software at a glance: Figure 1 –Software Overview Type in configuration Current configuration register binary representation of settings in these boxes settings in hex numbers configuration registers select main or secondary device CODEC setup Status display current address PCM / I2S pointer clock / sync

Introduction to system setup To quickly get familiar with the system, follow this tutorial that will explain the procedure of setting up a feed through path from the microphone to the speaker of the main 5216. The main 5216 uses the analog audio connectors on the left side of the board.

  • Start the ES521 Application from the start menu. The default path is all configuration registers set to 0.
  • Set the Aux Gain control to ‘OFF’
  • Set the SUM1AMP control to ‘OFF’
  • Set the SUM1MUX to ‘OFF’
  • Set the SUM2 control to ‘OFF’
  • Set the CODEC MUX to ‘NONE’
  • Set the CODEC A/D control to ‘OFF’, this prevents noise from the CODEC.
  • Set the CODEC D/A control to ‘OFF’, also for preventing noise.
  • Set the Volume MUX control to ‘INP MUX’
  • Set the Output Select control to ‘8 Ohm’
  • Click ‘Write Config’, this updates the main 5216 with this setup. The display should now show a single blue path from the microphone to the output. If a speaker is connected to the speaker output, any sound coming into the microphone will be played back over the speaker. The top left corner of the application windows shows the configuration registers, they should look like in the following picture. Figure 2 – Configuration Register settings If other values are displayed, restart the application and follow the steps again. The binary representation of the Configuration Registers at the top of the application window shows the register content in binary form with bit names used in the data sheet. There are two other ways to get to the same setup:
  • Exit and restart the application to get back to the initial state. Go into the Paths menu and select ‘MIC to Speaker’. This should display an identical setup, press the ‘Write Config’ button to write the data to the chip.
  • Type the following values in the three text boxes in the top left corner: 0464 C7E0 0003 Press the ‘Load’ button, This will also set up the same configuration. Press the ‘Write Config’ button to write the data to the chip.

The ISD5216 is a very versatile chip where the analog audio signal can be routed and processed in a variety of ways. Writing to three configuration registers sets up the internal path. To aid the setup of the signal paths, the available paths are displayed graphically and the currently selected path highlighted in blue while the available but inactive paths are shown in gray. An arrow is only highlighted if there is a signal at the input end, and the signal can be accepted at the other end. The easiest way to setup a path is from the signal input towards the output. There are a number of ways to set up the path of analog audio, Note: The configuration registers are not actually written to the chip until the ‘Write Config’ button is pressed: 1. The controls on the main application window can be used to setup any path through the system. Set all controls so that the desired path is highlighted and click ‘Write Config’ to write the configuration to the chip. An arrow is only highlighted if there is a connection at both ends of the arrow. To setup a configuration, start from the input and move towards the outputs. For example, the paths to the CODEC will not be highlighted unless the A/D converter is switched on. 2. A value can be typed directly into the configuration register boxes. Pressing the load button will update the graphics on the main display. The configuration register setup should be written in hex numbers. 3. The ‘Paths’ menu contains stored paths that will setup a given configuration. It is possible to add and remove paths from this menu to save commonly used paths. The currently selected configuration is displayed in three ways:

  • Graphically by highlighted arrows.
  • A hexadecimal number labeled ‘CFG0’, ‘CFG1 and ‘CFG2’
  • A binary number with the bit labels used in the datasheet The buttons used for configuration register setup is: Load - Update the current configuration with the settings in the textboxes in the top left corner Write Config – Write the settings currently selected to the chip. Chip Select – Choose whether to use the main or secondary board

Storing Custom Configurations The application comes pre-configured with a few useful paths that can be found in the Paths menu. To add new paths, simply set up the desired configuration and select ‘Add Path’ from the Paths menu, a window will appear asking for a name for this configuration. Fill in a descriptive name (max 32 characters) and click OK to store this path. The paths are permanently stored on the computer. A maximum of 32 paths can be stored. To remove a stored path, select the path from the Path menu and click ‘Remove Path’ in the Path menu. The Path will be permanently removed. Analog Play and Record The ES521 Demo System allows full playback and record capabilities from the main application window. The 5216 supports two types of addressing: Use current address – Recording or Playback starts from the position of the current address pointer, no address is sent as part of the command. The address pointer can be retrieved from by pressing the ‘Read Status’ button which displays the address bytes as two hexadecimal numbers (high and low address byte) Supply address – Record and Playback can be setup by sending an address with the Play or Record command. See the 5216 datasheet for addressing details. Play – Play from the current address Play from address – Play from the address given in the box below the button. Record – Record from the current address. Record from address – Record from the address given in the box below the button. The Status Register The Status register gives an indication of what the chip is currently doing, and the current address pointer. Select which chip to use (main or secondary 5216) and click the ‘Read Status’ button near the bottom of the screen to update the status. It gives the following information: Table 1 – Status Register bits EOM Indicates that an End Of Message interrupt has occurred OVF Indicates that Recording or Playback reached the end of the array RDY When set, the chip is ready to accept new commands. PD Set when the chip is powered down PRB Set when chip is in playback mode, cleared wh en in record mode Address The current address pointer to the memory array

The ISD5216 chip allows writing of digital data as well as analog. Any address can be used for either analog or digital storage, but not both at the same ti me. The demo application shows the capability to read and write text into memory and also read the raw data out of any memory cell. The Address box at the top of the window is shared for all operations, type in a hex number between 0 and FFFF to specify a 64 bit block. If no address is specified, the application is going to use the current address pointer. For details about addressing, please refer to the datasheet. Reading and Writing Strings Erase: Pressing this button will erase one page of data (2048 bits), it is not possible to erase a smaller number of bits. Read Data: Reads a string of characters previously stored with the Write Data button. Write Data: Writes a string to non -volatile digital memory (max 256 characters) Reading Raw Data The program allows reading of the raw data from any position in the array. Use the address box at the top of the window or leave it blank for using the current address. Type the number of 64 bit words to read (a decimal number) and press Read Raw Data to retrieve the data.

Figure 3 – Digital Read and Write Dialog Address used for All operations Raw data in hexadecimal notation

The ES521 Evaluation System has a pair of jumper selectable oscillators. Please refer to the datasheet for details of operating modes. There are three clocks supplied to the 5216s: MCLK – The main clock straight from the oscillator. SCK – Bit clock used for I 2S or PCM data. WS – Word sync / Frame sync used by I 2S or PCM data. PCM mode uses the 13.824MHz oscillator to generate an 8kHz signal commonly used in telecom applications. The clock jumper(J9) must be set to the 13.824MHz setting and CODEC jumper (J1) must be set to PCM. The clock generator allows short and long frame sync to be selected. Note: The frame sync setting is not part of the configuration registers and therefore applies to both devices. It is not stored in the paths setup. I2S mode uses a 20.48MHz oscillator to generate the I 2S bit clock and there is only one word sync length setting. The CODEC jumper(J9) must be in the I2S position Running One Or Two Devices The Demo Board is set up to allow running either one of the two devices from the PC parallel port, and the central bank of DIP switches allows decoupling of the I2C and CODEC buses so that the devices can be controlled independently. The headers bring out the full I2C and CODEC buses as well as the RAC and INT pin of each device. In the normal mode with the DIP switches on, the devices are connected together allowing the CODECs of both devices to communicate with each other, and the PC to control the I2C bus of both devices. Disabling the CODEC DIP switches allows for example another CODEC chip to be connected. If the external CODEC is connected to the main 5216, the external CODEC will be in slave mode, if connected to the secondary 5216, the clocks from the clock generator on the Demo Board can be disconnected and the secondary 5216 run in slave mode.

The board has the following connectors and possible setups: Clock Configuration Jumper (J9) The clock jumper is only needed for operations involving the CODEC, the jumper allows selection between the 13.824MHz and the 20.48MHz oscillator on the board. 13.824MHz is used for 8kHz applications such as A -law or µ-law CODEC operation. 20.48MHz is divided down to 44.1kHz to interface using I2S. Using long or short frame sync in PCM mode is software selectable from the main application window. CODEC Jumper (J1) In I2S mode, the two SDIO lines are connected together, while in PCM mode the SDIO is connected to SDI and vice versa. I2C Switches (SDA, SCL) When the DIP switches for SDA and SCL are on, both 5216s are controlled using the I2C bus from the PC parallel port. Switching the I2C interface off allows control of the second 5216 from the J10 header. Note that pull-ups must be provided by the external bus driver in that case. CODEC Switches (SCK, WS, MCLK, SDI, SDIO) The 5216 CODECs can be connected together or run separately depending on the switch setup. The switches allow the clocks generated on the main board to be connected to the secondary board as well, and the CODEC data lines allow digital communication between the devices. The clocks are always connected to the main board, but switching the CODEC off allow s the secondary board to be controlled by another device using the J10 header. Recommended power supply The board can be driven by a 9V battery or a 5 to 9V DC supply with positive polarity rated at 500 mA

Connectors and clock generation C17 1uf RB2 TP4 DGND 1 U3B SN74LV125AD 5 6 4 7 LED PJ_202A_POWER_JACK 3 1 R16 3.6K VCCD RB2 Single point connection close to J1 CONNECTOR DB25 C22 0.01uf VCCD B500CT3E 13.824 MHZ 4 8 1 NC OUT VSS VCC VCCD WS_1 TP5 AGND 1 C14 100uf @ 20V U3C SN74LV125AD 9 8 10 7 RAC_1 C19 0.1uf SDA_1 C16 0.1uf RB1 C18 0.01uf PIC16F84A-20P 9 10

18 RA2

SCK_1 C21 0.1uf 1K U4 NJU7201L30

3 VSS (GND)

0.1uf VCCD U3A SN74LV125AD 2 3 1 7 HEADER 2 RB0 C12 0.1uf USE FREE TRACK TO SHORT(.156) TP8 DGND 1 MCLK_1 TP6 DGND 1 VCCD C20 0.01uf C23 0.1uf +9VDC SCL_1 TP3 AGND 1 RB0 TP2 DGND 1 VCCD RB3 B500CT3E 20.480 MHZ 4 8 1 NC OUT VSS VCC 9V BATT HOLDER 2 9V Cell 470 VCCA VCCD RAC_2 TP7 AGND 1 DC POWER JACK w SW HEADER 3 MCLK_1 TP1 AGND 1 RB1 NJU7201L30

RAC_1 VCCA SDI_1 SCK_1 SW1 SW DIP-7 SDIO_1 HEADER 10 SCL_1 ACAP_AGND SDI_2 10K 0.01uf 0.1uf SCL_1 MJ_3536 SDA_2 MCLK_1 J4 MJ_3536 0.1uf VCCD 1.5K HEADER 3 SCL_1 MCLK_1 47uf MCLK_1 WS_1 DUT 1 VCCD SDIO_2 47uf 0.1uf MJ_3536 1SDA_1 MCLK_2 0.1uf 0.01uf SDA_1 MICROPHONE U1ISD5216 20A0 SDA SCL RAC INT MCLK AUXIN AUXOUT MIC+ MIC- SDI SP+ SP- SDIO WS ACAP VCCD VCCD VCCA VSSD VSSD VSSA VSSA VSSA N/C MICBS SCK SDIO_2 WS_1 WS_1 INT_1 1.5K WS_2 SDI_1 VCCD SDI_1 SDA_1 INT_1 SDIO_1 SCK_2 SDIO_1 C10 0.1uf SCK_1 RAC_1 SCL_2 SCK_1 10K 0.1uf SDIO_1 C11 4.7uf

SCL_2 WS_2 RAC_2 C32 0.1uf VCCD VCCD R12 RAC_2 R11 10K R13 MCLK_2 C29 0.01uf SDI_2 C26 47uf R10 10K SDI_2 C24 0.01uf VCCD SDIO_2 MCLK_2 C27 47uf SDA_2 R14 1.5K SCL_2 SDA_2 INT_2 MICROPHONE J10 HEADER 10 SCK_2 J13 MJ_3536 J11 MJ_3536 J12 MJ_3536 U8ISD5216 20A0 SDA SCL RAC INT MCLK AUXIN AUXOUT MIC+ MIC- SDI SP+ SP- SDIO WS ACAP VCCD VCCD VCCA VSSD VSSD VSSA VSSA VSSA N/C MICBS SCK SCK_2 R15 1.5K C33 0.1uf VCCD VCCA INT_2 SDIO_2 C34 4.7uF C30 0.1uf DUT 2 C25 0.1uf C31 0.1uf WS_2 ACAP_AGND C28 0.1uf