Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EngineerZone Spotlight
    • The Engineering Mind
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • Amplifiers
    • Analog Microcontrollers
    • Analysis Control Evaluation (ACE) Software
    • Audio
    • Clock and Timing
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power By Linear
    • Processors and DSP
    • Reference Circuits
    • RF and Microwave
    • Signal Chain Power (SCP)
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • My EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • More
  • Cancel
SigmaDSP Processors and SigmaStudio Development Tool
  • Processors and DSP
  • More
SigmaDSP Processors and SigmaStudio Development Tool
Documents Implementing Safeload Writes on the ADAU1701
  • Q&A
  • Discussions
  • Documents
  • File Uploads
  • Video/Images
  • Tags
  • Reports
  • Managers
  • More
  • Cancel
  • New
SigmaDSP Processors and SigmaStudio Development Tool requires membership for participation - click to join
  • Documents
  • 96 kHz operation for ADAU1452 serial ports
  • ADAU1701 Input and Output Signal Routing
  • ADAU1701: ADC resistor values for higher sample rates
  • Booting a SigmaDSP from a microcontroller with no C compiler
  • Calculating Filter Coefficients to Store in a Microcontroller
  • Can ADI provide or support the USB interface firmware code for my self-assembled PCB or end product?
  • Can ADI provide or support the USB interface firmware code for my self-assembled PCB or end product? - 2
  • Can I program multiple SigmaDSPs in parallel using one USBi?
  • Can I use SigmaDSP to decode MP3/WAV/AAC?
  • Can SigmaDSP do frequency-domain processing like FFT or pitch shift?
  • Can the ADAU1772 be used with a TDM output stream that has an odd number of channels?
  • Compressor Table Format - Changing compressors at run-time
  • Creating a delay after startup
  • Creating a simple balance crossfade control
  • E2PROM Selfboot problem
  • Empty Cells
  • EVAL-ADAU144XEBZ Evaluation Board Schematics
  • EVAL-ADAU1781Z GPIO Mapping in SigmaStudio
  • EVAL-ADAU1781Z GPIO Mapping in SigmaStudio - 2
  • Example Project: Using the Stopwatch to Count Successive Samples over a Threshold
  • Excluding Cells from the Exported System Files
  • FAQ: After downloading self-boot code to my target EEPROM, my USBi isn't recognized anymore by my computer. What's wrong and how do I fix it?
  • FAQ: Can I write C or assembly code for SigmaDSP in SigmaStudio?
  • FAQ: Can we bundle SigmaStudio with our product design?
  • FAQ: Developing custom algorithms and/or using 3rd party algorithms
  • FAQ: How can I change parameters on-the-fly in an application without SigmaStudio?
  • FAQ: How can I estimate MIPS/Memory resource on SigmaDSP?
  • FAQ: How do I change the sample rate of my SigmaStudio system?
  • FAQ: What operating systems are supported to run SigmaStudio?
  • FAQ: What types of capacitors are good to use in the analog audio signal path?
  • FAQ: Where can I send my questions I don't want to post in a public forum?
  • FAQ: Why can't I control any of the knobs or sliders in my SigmaStudio project?
  • FAQ:  Can I have multiple versions of SigmaStudio installed simultaneously?
  • FAQ:  Where can I download SigmaStudio?
  • FAQ:  Where can I find a description of the changes made in the latest version of SigmaStudio?
  • FAQ:  Which SigmaDSP ICs support selfbooting from an EEPROM?
  • FAQ:  Why isn't a software/documentation CD included with my evaluation board?
  • How are the audio inputs routed in SigmaStudio's Input cell?
  • How do I create the microcontroller code to interface to my SigmaDSP?
  • How do I execute a software safeload write?
  • How do I implement external volume control using GPIOs or Aux ADCs?
  • How do I report a SigmaStudio bug?
  • How do I start a timer after power-on, or when the input signal goes away?
  • How do I use a GPIO button to select different audio processing paths?
  • How many instructions can be executed per sample in SigmaDSP?
  • How to avoid distortion or clipping on the ADC inputs for the ADAU144x evaluation board
  • How to avoid distortion or clipping on the ADC inputs for the ADAU144x evaluation board - 2
  • How to calculate index table values in 28.0 format
  • How to create a crossover with more than 3 bands
  • How to self-boot the EVAL-ADAU1401AEBZ (evaluation board for ADAU1701, ADAU1702, and ADAU1401A)
  • How to self-boot the EVAL-ADAU1701MINIZ (evaluation board for ADAU1701, ADAU1702, and ADAU1401A)
  • Implementing Safeload Writes on the ADAU1701
  • Memory requirements for booting a SigmaDSP with a microcontroller
  • Monitoring average and instantaneous signal levels
  • My 2IN4OUT Proto with SPDIF based on ADAU1701
  • My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
  • New Sigma300 Family Products:  ADAU1451 & ADAU1450
  • New SigmaStudio 3.3 Beta Version Available
  • New SigmaStudio Download Site
  • Peak Full Range Compressor
  • Playing audio samples in SigmaDSP
  • Preserving "Ear-candy" in a mono mix
  • Problems with Push Button Volume w/Mute module
  • Setting the PLL mode for the ADAU1701 at different sample rates
  • Sigma 300 (ADAU145x) Exponential Slewing
  • SigmaDSP PCB Layout Best Practices
  • SigmaDSP Products and Evaluation Boards - ROHS and REACH Compliance
  • SigmaStudio 3.4 Released
  • SigmaStudio consulting services...
  • Slow rate random number generator
  • Stimulus-Probe Capability and Limitations
  • Testing USB communications between the PC and SigmaDSP
  • The ADAU1372 is not on the list of compatible processors or under Processors/DSPs on Sigmastudio 3.11.1 or 3.11. Can you please tell me how I can use the EVAL board with ADAU1372?
  • Third Party Algorithm Plugins in SigmaStudio
  • Thoughts on using index selectable filters...
  • True peak-to-peak detection in SigmaStudio
  • Truncating bits using bitwise logic
  • Updated self-boot EEPROM image generation / download
  • Updating SigmaDSP Parameter with a Microcontroller
  • Using compressors to avoid output clipping
  • Using hardware data capture (trap) registers with the DSP Readback cell (AD1940, ADAU1701)
  • Using stopwatch with feedback loop to create periodic test signal
  • Using the ADAU145x's Slew Ext Volume Block
  • Using the DSP Control mode of the ADAU1761 PGA / ALC
  • Using two SigmaDSP evaluation boards simultaneously with one USBi board
  • Welcome to the SIGMADSP Processors and SIGMASTUDIO Development tool community
  • What are the mute ramp times in the AD193x codecs?
  • What are the number formats for SigmaDSP?
  • What is the step size for audio delay in a SigmaDSP?
  • When should I use single precision or double precision filters?
  • Where can I buy a SigmaDSP Evaluation Board or USBi (EVAL-ADUSB2EBZ)?
  • Which SPI Mode is used by SigmaDSP Devices?
  • Workaround: Creating constant-dB envelope decay using an existing linear decay algorithm
  • [bug report] False frequency response displayed in a parametric equalizer window for an IIR coefficient filter
  • [Tutorial] Using Hierarchy Boards to create re-usable code

Implementing Safeload Writes on the ADAU1701

In order to use the safeload write feature on the ADAU1701 (also ADAU1702, ADAU1401, and ADAU1401A), a very specific sequence of write commands must be executed. The write sequence is as follows:

  • Safeload Data 0, address 0x0810
  • Safeload Address 0, address 0x0815
  • (optional) Safeload Data 1, address 0x0811
  • (optional) Safeload Address 1, address 0x0816
  • (optional) Safeload Data 2, address 0x0812
  • (optional) Safeload Address 2, address 0x0817
  • (optional) Safeload Data 3, address 0x0813
  • (optional) Safeload Address 3, address 0x0818
  • (optional) Safeload Data 4, address 0x0814
  • (optional) Safeload Address 4, address 0x0819
  • Initiate safeload transfer bit, address 0x081C

Up to 5 target addresses may be written. The writes marked "optional" in the list above only need to be included if more than one parameter is being updated.

The format for the Safeload Address and Safeload Data registers is as follows (from the ADAU1701 datasheet):

A simple example of using the Safeload Data 0, Safeload Address 0, and IST (initiate safeload transfer bit) to set a volume control to 0 dB in parameter memory is shown below. In this example, the target address in parameter RAM is 0x0000. Since only one parameter is being updated, the Data 1, Data 2, Data 3, Data 4, Address 1, Address 2, Address 3, and Address 4 registers may be ignored.

//Write 0x00800000 to set volume to 0 dB

08 10 00 00 80 00 00     //Data 0
08 15 00 00              //Address 0
08 1C 00 3C              //Set IST High

In the case where multiple parameters need to be updated, the additional parameter data and address registers may be used. The following example shows the 5 parameters of an IIR filter being updated.

//Write 1kHz, +5 dB peaking filter coefficients

08 10 00 00 83 57 7E     //Data 0
08 15 00 00              //Address 0
08 11 00 FF 0A B4 47     //Data 1
08 16 00 01              //Address 1
08 12 00 00 74 12 18     //Data 2
08 17 00 02              //Address 2
08 13 00 00 F5 4B B9     //Data 3
08 18 00 03              //Address 3
08 14 00 FF 88 96 6B     //Data 4
08 19 00 04              //Address 4
08 1C 00 3C              //Set IST High

Only one safeload write operation should be attempted per each audio frame.

  • adau1702
  • adau1401
  • safeload_write
  • safeload
  • adau1701
  • Share
  • History
  • More
  • Cancel
Comments
Anonymous

Top Comments

  • Yagami
    Yagami over 6 years ago in reply to genp +1

    Hi Gennady,

    I may be wrong, but I think you're only able to do the trick where you keep the chip select line low throughout the duration of the writes when you are writing to contiguous (sequential…

  • genp
    genp over 6 years ago in reply to Yagami

    I wonder if it's possible to write to safeload address registers and safeload data registers in a burst mode (address of the first safeload address/data register and then up to 5 parameter addresses or datasets).

    It would save significant amount of bytes written in my case. 

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • Yagami
    Yagami over 6 years ago in reply to genp

    Hi genp,

    You can always write these values directly to parameter RAM, bypassing the need for safeload entirely. The only problem is that if you are unlucky and end up writing to a parameter at the exact moment it's being updated by the control port, there might be an audible artifact on the output. That's the problem Safeload was originally designed to solve.

    However, for the sake of speed, you could possibly write to memory directly, if you're OK with the tradeoff of possibly having audible artifacts.

    It might be worth testing just to see how bad it is. Maybe it's not even noticeable!

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • genp
    genp over 6 years ago in reply to Yagami

    Hi Yagami,

    unfortunately, you are absolutely right.

    In a current project for sound development I need to update 6 input levels on 4 mixers every 10 mS.

    It's 24 levels with 3 writes for each updates = 72 writes.

    In the previous project (on 1442) I had 22 12-input mixers, but was able to use DMA due to

    sequential writes.

     

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • Yagami
    Yagami over 6 years ago in reply to genp

    Hi Gennady,

    I may be wrong, but I think you're only able to do the trick where you keep the chip select line low throughout the duration of the writes when you are writing to contiguous (sequential) addresses in memory. Since your target addresses 0x0810, 0x0815, and 0x081C are not sequential, I imagine that you need to bring the chip select line high between each of the three writes.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
  • genp
    genp over 6 years ago

    Another clarification required, please.

    Some details are skipped in this otherwise great description.

    I am using SPI port for communication.

    According to the datasheet, every message requires first byte 0x00 (in my case) of device address and Write.

    So do I need to latch every message like this (the above single write is used as an example):

    CS LOW

    00 08 10 00 00 80 00 00     //Data 0

    CS HIGH

    CS LOW
    00 08 15 00 00              //Address 0

    CS HIGH

    CS LOW
    00 08 1C 00 3C              //Set IST High

    CS HIGH

    or do I latch the whole packet:

    CS LOW

    00 08 10 00 00 80 00 00     //Data 0

    00 08 15 00 00              //Address 0

    00 08 1C 00 3C              //Set IST High

    CS HIGH


    I remember that when using 1442 I used DMA for safeload write, so I did latch the whole packet.

    On 1701 it doesn't seem to work, or I am doing something wrong.

    Thank you,

    Gennady

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
>
Related
 
社交网络
快速链接
  • 关于ADI
  • Partners
  • 模拟对话
  • 职业
  • 联系我们
  • 投资信息
  • 新闻中心
  • 质量和可靠性
  • 办事处与代理商
  • Analog Garage
语言
  • English
  • 简体中文
  • 日本語
  • Руccкий
电子快讯

欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

订阅
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • 网站地图
  • 隐私和保密政策
  • 隐私设置
  • 使用条款
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.