Register address values for the OPUS DAC/WM8741 Code   Leave a comment

Having done further programming with the Buffalo DAC, I realized that the register address values I used for the OPUS code are wrongly coded in 8-bit format where the I2C protocol of the Arduino Wire library is based on 7-bit register addresses. This means that the OPUS DAC code for the WM8741, although seemingly working, it is using the wrong addresses for the registers. If you want to reuse this code, please redefine the address to 7-bit values as specified in the datasheet.

Posted October 15, 2012 by BlgGear in Code for OPUS DAC

Where is the latest code?   Leave a comment

You may want to check the CODE section on the main blog…

Posted June 6, 2011 by BlgGear in General Code

Fixed a Bug in the Code (v.B06e)   23 comments

Code was missing

“#include <pins_arduino.h>” under Libraries.

For some reason copying html from the Arduino environment and pasting into wordpress will result in missing that part of the code. I have added it to the code just now.

I also copied the fixed code and pasted it in a blank sketch in Arduino and compiles fine.

Let me know if you find any bugs (use the comments section)

Posted January 11, 2011 by BlgGear in Code for Buffalo DAC

Code for Buffalo II DAC vB06e   5 comments

/***************************************************************************************************
 * HIFIDUINO v. B06e 
 * 
 * Saturday January 8th, 2011
 *
 * Arduino code for Buffalo II DAC and other DACs based on the Sabre32 DAC chip. This code is adapted
 * from an earlier version developed for the Wolfson 8741 DAC chip. For more information visit
 * www.hifiduino.wordpress.com or www.hifiduino.blogspot.com
 * 
 * (Although this code is based on a confidential data sheet for which I've signed an NDA, I've also
 * requested and have received permission to publish this code).
 * 
 * Change log:
 * v. B06e 01/08/11: Supports 32-bit I2S input in accordance to Buffalo II input wiring of SabreDAC
 *                   Rearranged code for default conditions, correct reading of sample rate in I2S
 *                   Allows manual "best DPLL bandwidth" setting. Allows manual selection of I2S or 
 *                   SPDIF. Can set default startup to I2S or SPDIF (in the code)
 * v. B05  11/25/10: Added remote control capability using the Apple Aluminum Remote Control. This
 *                   version enables remote volume control only.
 * v. B04  11/06/10: Added large numbers, tidy-up the UI, "pulse" indicator -every time the status
 *                   information is read. Also status indicator for PCM/DSD and Signal Lock 
 * v. B03  11/02/10: Supports s/w debounce, added setting of FIR filter, DPLL bandwidth, jitter
 *                   reduction and adjustment of LCD brightness. 
 * v. B021 10/18/10: No new functionality, but cleaned up the code and comments.
 * v. B02  10/15/10: Added reading of sample rate.
 * v. B01  10/11/10: Volume control, LCD, Rotary Encoder.
 ***************************************************************************************************/
/***************************************************************************************************
 * look for "spdifStart" and set to true if you want the DAC to startup in SPDIF mode and false if 
 * you want the DAC to startup in I2S mode
 *
 *
 ***************************************************************************************************/
 Read the rest of this entry »

Posted January 10, 2011 by BlgGear in Code for Buffalo DAC

Code for Buffalo II DAC vB05   1 comment

/***************************************************************************************************
 * HIFIDUINO v. B05
 * 
 * November 25, 2010
 *
 * Arduino code for Buffalo II DAC and other DACs based on the Sabre32 DAC chip. This code is adapted
 * from an earlier version developed for the Wolfson 8741 DAC chip. For more information visit
 * www.hifiduino.wordpress.com or www.hifiduino.blogspot.com
 * 
 * (Although this code is based on a confidential data sheet for which I've signed an NDA, I've also
 * requested and have received permission to publish this code).
 * 
 * Change log:
 * v. B05  11/25/10: Added remote control capability using the Apple Aluminum Remote Control. This
                     version enables remote volume control only.
 * v. B04  11/06/10: Added large numbers, tidy-up the UI, "pulse" indicator -every time the status
 *                   information is read. Also status indicator for PCM/DSD and Signal Lock 
 * v. B03  11/02/10: Supports s/w debounce, added setting of FIR filter, DPLL bandwidth, jitter
 *                   reduction and adjustment of LCD brightness. 
 * v. B021 10/18/10: No new functionality, but cleaned up the code and comments.
 * v. B02  10/15/10: Added reading of sample rate.
 * v. B01  10/11/10: Volume control, LCD, Rotary Encoder.
 ***************************************************************************************************/

 Read the rest of this entry »

Posted November 26, 2010 by BlgGear in Code for Buffalo DAC

Code for Buffalo II DAC v. B04   1 comment

/***************************************************************************************************
 * HIFIDUINO v. B04
 * 
 * November 06, 2010
 *
 * Arduino code for Buffalo II DAC and other DACs based on the Sabre32 DAC chip. This code is adapted
 * from an earlier version developed for the Wolfson 8741 DAC chip. For more information visit
 * www.hifiduino.wordpress.com or www.hifiduino.blogspot.com
 * 
 * (Although this code is based on a confidential data sheet for which I've signed an NDA, I've also
 * requested and have received permission to publish this code).
 * 
 * Change log:
 * v. B04  11/06/10: Added large numbers, tidy-up the UI, "pulse" indicator -every time the status
 *                   information is read. Also status indicator for PCM/DSD and Signal Lock 
 * v. B03  11/02/10: Supports s/w debounce, added setting of FIR filter, DPLL bandwidth, jitter
 *                   reduction and adjustment of LCD brightness. 
 * v. B021 10/18/10: No new functionality, but cleaned up the code and comments.
 * v. B02  10/15/10: Added reading of sample rate.
 * v. B01  10/11/10: Volume control, LCD, Rotary Encoder.
 ***************************************************************************************************/

 Read the rest of this entry »

Posted November 7, 2010 by BlgGear in Code for Buffalo DAC

Code for Buffalo II DAC v. B03   1 comment

/***************************************************************************************************
 * HIFIDUINO v. B03
 * 
 * November 02, 2010
 * Arduino code for Buffalo II DAC and other DACs based on the Sabre32 DAC chip. This code is adapted
 * from an earlier version developed for the Wolfson 8741 DAC chip. For more information visit
 * www.hifiduino.wordpress.com or www.hifiduino.blogspot.com
 * 
 * Although this code is based on a confidential data sheet for which I've signed an NDA, I've also
 * requested and have received permission to publish this code.
 * 
 * Change log:
 * v. B03  11/02/10: Supports s/w debounce, added setting of FIR filter, DPLL bandwidth, jitter
                     reduction and adjustment of LCD brightness. 
 * v. B021 10/18/10: No new functionality, but cleaned up the code and comments.
 * v. B02  10/15/10: Added reading of sample rate.
 * v. B01  10/11/10: Volume control, LCD, Rotary Encoder.
 ***************************************************************************************************/

Read the rest of this entry »

Posted November 3, 2010 by BlgGear in Code for Buffalo DAC