================================================================================ apollo3-ctimer_pattern_i2s_sgtl5000 ================================================================================ Copyright (C) 2013-2017, Fujitsu Electronics Europe GmbH or a subsidiary of Fujitsu Electronics Europe GmbH. All rights reserved. This software, including source code, documentation and related materials ("Software"), is owned by Fujitsu Electronics Europe GmbH or one of its subsidiaries ("Fujitsu"). If no EULA applies, Fujitsu hereby grants you a personal, non-exclusive, non-transferable license to copy, modify, and compile the Software source code solely for use in connection with Fujitsu's integrated circuit products. Any reproduction, modification, translation, compilation, or representation of this Software except as specified above is prohibited without the express written permission of Fujitsu. Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Fujitsu reserves the right to make changes to the Software without notice. Fujitsu does not assume any liability arising out of the application or use of the Software or any product or circuit described in the Software. Fujitsu does not authorize its products for use in any products where a malfunction or failure of the Fujitsu product may reasonably be expected to result in significant property damage, injury or death ("High Risk Product"). By including Fujitsu's product in a High Risk Product, the manufacturer of such system or application assumes all risk of such use and in doing so agrees to indemnify Fujitsu against all liability. ================================================================================ History ** Date Ver Initials Description ** - 2019-03-21 V1.0 MSc Automatic Created ** - 2019-08-30 V1.1 MSc Startup for IAR corrected ** - 2019-09-12 V1.2 MSc Fixed wrong I2S_DOUT descriptionto PAD12 Supported toolchain versions ARM 5.11 IAR 7.30 iSYSTEM 9.12.213 Segger 4.1 ================================================================================ This example demonstrates with use of STGL5000 how to generate I2S audio-output by use of two timer with one timer configured as pattern generator. Connection: STGL5000 <-> Apollo3Blue Function SYS_MCLK <- GPIO7 (Master Clock) I2S_SCLK -> GPIO25 (I2S Bit Clock) I2S_LRCLK -> GPIO13 (I2S Word-Select Clock) I2S_DIN <- GPIO12 (I2S Data) CTRL_DATA <-> GPIO9 (I2C SDA) CTRL_CLK <-> GPIO8 (I2C SCL) ----------- ----------- CLKOUT PAD7 | HFRC |________| DIV4 |________________________ MCLK | 48MHz | | | ----------- ----------- PAD25 A0IN -------------------- BCLK ___________________________________________|CLK | | | A0OUT PAD12 | CTIMER A0 OUT |________________ DOUT | | _|TRIGGER | PAD13 B0IN -------------------- | --------------------- LRCLK ____________|CLK | | 64-bit pattern generator | | B0OUT | | CTIMER B0 OUT |_______| | | | | --------------------- single-count Audio-Sequence by Manuel Schreiner, generated by iMachine 2 ================================================================================ ================================================================================ EOF (not truncated) ================================================================================