« 2021年3月 | トップページ | 2021年6月 »

2021年5月

2021年5月22日 (土)

16倍 24Bit スーパーサンプリングSDメモリープレイヤーの試作

16x 24Bit Super Sampling SD Memory Player Prototype

Sd_ss4490all 
写真1.試作したスーパーサンプリングSDメモリープレイヤー
photo1. Prototype Super Sampling SD Memory Player


今回はスーパーサンプリングSDメモリープレイヤーを試作したので紹介する。

再生可能なファイルフォーマットは、44.1kHz16bitのwavのみで、これを16倍24bitスーパーサンプリング処理(3次自然スプライン関数によるデータ補間処理)してI2S DACであるAK4490でD/Aして出力する。

32bitマイコンPIC32MX230F064Bを動作クロック11.2896MHz(発振器は22.5792MHz)で動作させSDメモリからWAVを読み出してI2Sに変換し、これをトラ技MAX10基板(10M08SAE144)で受けて16倍24Bitスーパーサンプリング処理を行い、705.6kHzサンプリングのI2SとしてAK4490に送る。
16倍サンプリングでは44.1k x 16でLRCKが705.6kHzとなり、このときBCLKは705.6 x 64 = 45.1584MHzとなる。今回は水晶発振器に22.5792MHzを使い、MAX10で2倍PLLして45.1584MHzを生成している。
MAX10でPLLを行う場合、ソースクロックはCLK0またはCLK1端子に入れる必要があり、トラ技のMAX10基板ではメインのCN1,CN2には接続されておらず、CN5-5に接続されているP28(CLK1n)から入力した。

 

This time, we will introduce a prototype of Super Sampling SD Memory Player.

The supported file format is 44.1kHz 16bit wav, which is 16x 24bit supersampling processing (data interpolation processing by the 3rd order natural spline function) and D/A is output by AK4490 which is an I2S DAC.

The 32-bit microcomputer PIC32MX230F064B is operated with an operating clock of 11.2896 MHz (oscillator is 22.5792 MHz), WAV is read from the SD memory and converted to I2S, and this is received by the Tora Gi MAX10 board (10M08SAE144) to perform 16 times 24-bit supersampling processing. Send to AK4490 as I2S with 705.6kHz sampling.
In 16x sampling, LRCK is 705.6kHz at 44.1k x 16, and BCLK is 705.6 x 64 = 45.1584MHz. This time, 22.5792MHz is used for the crystal oscillator, and 45.1584MHz is generated by double PLL with MAX10.
When performing PLL with MAX10, the source clock must be put in the CLK0 or CLK1 terminal, and P28 (CLK1n) connected to CN5-5, not connected to the main CN1 and CN2 on the MAX10 board. ).



Sd_ss4490_pic32
写真2.PIC32はMAX10の下に配置してある
Photo 2 of PIC32 placed under MAX10 shows the implementation of PIC32.


写真2にPIC32の実装の様子を示す。PIC32はトラ技MAX10基板の下に配置しており、書き込み用のICSPピンヘッダはPIC32の1~6ピンの横に配置した。PIC32の上側の14ピン部品は発振回路に使用した74HCU04で、水晶は22.5792MHz。

The PIC32 was placed under the Tora Gi MAX10 board, and the ICSP pin header for writing was placed next to pins 1 to 6 of the PIC32. The 14-pin component on the upper side of PIC32 is 74HCU04 used for the oscillation circuit, and the crystal is 22.5792MHz.


Sd_ss4490_sdcard
写真3.SDアダプタとOLEDユニット(SSD1306)
Photo 3. SD adapter and OLED unit (SSD1306)


SDカードのホルダは、microSD→SDの変換アダプタを利用した。変換アダプタの接点に直接はんだ付けして各信号線を引き出している。
表示パネルはI2C接続のOLEDユニットSSD1306を使用した。

再生波形は以下のとおり。

The SD card holder used a microSD to SD conversion adapter. Each signal line is pulled out by soldering directly to the contacts of the conversion adapter.
The display panel used an I2C-connected OLED unit SSD1306.

The reproduced waveform is as follows.

 

Sd_ss4490_1khz
図1.スーパーサンプリング1kHz再生波形
Figure 1. Super sampling 1kHz playback waveform

 


Sd_ss4490_10khz_nos
図2.NOS 10kHz再生波形
Figure 2. NOS 10kHz playback waveform

 


Sd_ss4490_10khz
図3.スーパーサンプリング10kHz再生波形
Figure 3. Super sampling 10kHz playback waveform

 


Sd_ss4490tr1khz_nos
図4.NOS 1kHz方形波再生波形
Figure 4. NOS 1kHz square wave reproduction waveform


Sd_ss4490_tr1khz
図5.スーパーサンプリング1kHz方形波再生波形
Figure 5. Super sampling 1kHz square wave reproduction waveform


音質はスーパーサンプリングの良さが出ていて、D/AデバイスにI2S、ΔΣのデバイスを使用する場合は、内部デジタルフィルタをOFFにするため、デバイスの個性は出にくいように思える。

電源は、9VのACアダプタを2個使用し、正負電源を構成した。この場合正負電源の消費電流が、正側約200mA、負側約10mA(オペアンプの負電源のみ)と非常にアンバランスなので、バッテリー駆動にするには検討が必要だ。

The sound quality is good for super sampling, and when using an I2S, ΔΣ DAC device for the super sampling DAC, the internal digital filter is turned off, so it seems that the individuality of the device is hard to come out.

The power supply used two 9V AC adapters to form a positive and negative power supply. In this case, the current consumption of the positive and negative power supplies is very unbalanced, about 200mA on the positive side and about 10mA on the negative side (only the negative power supply of the operational amplifier), so it is necessary to consider how to drive it with a battery.

●20210529追記
・NJW4191による負電圧チャージポンプ回路追加により、単電源に対応
・ランダム選曲機能追加

● 20210529 Addendum
・ Addition of negative voltage charge pump circuit by NJW4191 supports single power supply
・ Addition of random music selection function

●20210530追記
負電圧にチャージポンプを使った単電源回路で、単4(AAA)サイズのリチウムイオン電池ICR10440での動作試験を行った。
回路の消費電流は約200mA、この電池の容量は350mAhなので、

350 / 200 = 1.75h = 105min

つまり1時間45分使える計算になる。
実際に動作させてみたところ、14時45分開始、16時27分終了となったので1時間42分でほぼ計算通りとなった。

● 20210530 Addendum
A single power supply circuit that uses a charge pump for negative voltage, with AAA size lithium-ion battery ICR10440. An operation test was performed.
The current consumption of the circuit is about 200mA, and the capacity of this battery is 350mAh, so

350/200 = 1.75h = 105min

In other words, it is a calculation that can be used for 1 hour and 45 minutes.
When I actually operated it, it started at 14:45 and ended at 16:27, so it was almost as calculated in 1 hour and 42 minutes.

20210530sssd_batt
写真4.リチウムイオン電池による動作試験
Photo 4. Operation test with lithium-ion battery

●20210602追記
・ヘッドホンモニター用にΦ3.5ステレオミニジャックを付けていたが、ボリュームがないと不便なので、ヘッドホンアンプとボリュームを追加した。

● 20210530 Addendum
・I had a Φ3.5 stereo mini jack for the headphone monitor, but it was inconvenient if there was no variable resistor, so I added a variable resistor  and headphone amplifier.

Add_hpa
写真5.ヘッドホンアンプおよびボリュームを追加
Photo 5. Added headphone amplifier and variable resistor


回路図
Schematic
ダウンロード - sd_ss4490_003sch.pdf



| | | コメント (0)

2021年5月 7日 (金)

PCM1795 Dual 16倍 24Bit スーパーサンプリングDAC ( 基板頒布あり )

PCM1795 Dual 16x 24Bit Super Sampling DAC (with board distribution)

Ss1795pcbs
写真1.PCM1795をモノラル構成で2個使用した16倍24Bit スーパーサンプリングDAC
photo1. 16x 24Bit Super Sampling DAC Using Two PCM1795 in Monaural Configuration

今回はI2S入力のΔΣ方式DAC、PCM1795をモノラル構成で2個使用した16倍24Bit SSDACを開発したので紹介する。

I2S入力のΔΣDACを使ったスーパーサンプリングDACについては、すでに最初のSS128I2SでAK4490とPCM5102を使って実現している。
今回はバーブラウンのハイエンドDACであるPCM1795を、内部デジタルフィルタなしのモノラルモードで2個使用し、専用のFPGAで16倍24BitスーパーサンプリングDACを構成した。
このデバイスをモノラルモードで使用する場合はI2Sフォーマットではなく、24Bit右詰フォーマットで使用する。これは有名なPCM1704と同じデータフォーマットだ。

再生波形は以下のとおり。

This time, we have developed a delta-sigma DAC with I2S input and a 16x 24Bit SSD AC using two PCM1795 in monaural configuration.

For super-sampling DAC using ΔΣDAC of I2S input, already the first SS128I2S is realized by using the in AK4490 and PCM5102.
This time, two Bar Brown high-end DACs, PCM1795, were used in monaural mode without an internal digital filter, and a 16x 24-bit supersampling DAC was configured with a dedicated FPGA.
When using this device in monaural mode, use it in 24-bit right-justified format instead of I2S format. This is the same data format as the famous PCM1704.

The reproduced waveform is as follows.

Nos10ksin
図1.44.1kHz16Bit入力 NOSモード 10kHz正弦波
補間なしの生データ再生。
Figure 1. 44.1kHz 16Bit input NOS mode 10kHz
Raw data playback without sine wave interpolation.

Ss10ksin
図2.44.1kHz16Bit入力 16倍24bitスーパーサンプリング 10kHz正弦波
きれいな正弦波が再現された。
Figure 2. 44.1kHz 16Bit input 16x 24bit supersampling 10kHz sine wave
beautiful sine wave was reproduced.


Nos1ktr
図3.44.1kHz16Bit入力 NOSモード 1kHz方形波
Fig. 3.  44.1kHz 16Bit input NOS mode 1kHz square wave


Ss1ktr
図4.44.1kHz16Bit入力 16倍24bitスーパーサンプリング 10kHz方形波
オーバーシュートとアンダーシュートが1山ずつ出るSSDACの特徴的な波形。
Fig. 4.  44.1kHz 16Bit input 16 times 24bit super sampling 10kHz square wave 
Characteristic waveform of SSDAC with one overshoot and one undershoot. 


Nos1ksaw
図5.44.1kHz16Bit入力 NOSモード 1kHzのこぎり波
Fig. 5. 44.1kHz 16Bit input NOS mode 1kHz sawtooth wave


Ss1ksaw
図6.44.1kHz16Bit入力 16倍24bitスーパーサンプリング 1kHzのこぎり波
過渡的な応答は方形波と同じようにオーバーシュートとアンダーシュートが出る。
Fig. 6. 44.1kHz 16Bit input 16 times 24bit supersampling 1kHz sawtooth wave
The 
transient response is overshoot and undershoot like a square wave.


音質はこれまでのSSDACの特徴を引き継いでいて、とくに高域がきめ細かく再生される。
またモノラル構成で2個使いとしたことで、チャンネルセパレーションやSNRでも有利で、ヘッドホンで聴いてもノイズはまったく感じられない。
今回採用したPCM1795は入手性もよく、価格も比較的廉価なので、SSDACの入門用としておすすめします。

以下のとおり、基板を頒布します。

The sound quality inherits the characteristics of SSDAC so far, and especially the high frequencies are reproduced in detail.
Also, by using two in a monaural configuration, it is advantageous for channel separation and SNR, and no noise is felt even when listening with headphones.
The PCM1795 adopted this time is easily available and the price is relatively low, so it is recommended as an introduction to SSDAC.

The boards will be distributed as follows.
(Please contact us for overseas shipping.)

【主な仕様】
●Amanero COMBO384互換入力
●NOSおよび16倍24BitスーパーサンプリングΔΣDAC(PCM1795x2)音声差動出力
●入力電源:AC12V~AC15V x2(±電源)
●基板サイズ:112mm x 140mm
回路図、部品表製作マニュアル操作マニュアル電気学会論文

[Main specifications]
● Amanero COMBO 384 compatible input
● NOS and 16x 24 Bit Super Sampling ΔΣ DAC (PCM1795x2) Audio differential output
● Input power supply: AC12V to AC15V x2 (± power supply)
● Board size: 112mm x 140mm
● Circuit diagram, parts Table , production manuals , operation manuals , the Institute of electrical Engineers of paper with

 
次の3種類を頒布します。(すべて税、送料込み)

①書き込み済みFPGA搭載基板   23000円
・書き込み済みFPGAのみ搭載した基板です。
・納期:1週間~10日程度

②全部品実装基板(動作確認済み) 54000円
・書き込み済みFPGAを含む全部品を搭載した基板です。
・Amanero COMBO384は含まれません。
・すべて手実装です。
・納期:2~3週間程度(受注生産)

③全部品実装基板(動作確認済み)、AmaneroCOMBO384、電源トランスセット 77000円
・すべて手実装です。
・AC電源ケーブルおよび電源スイッチ、ヒューズ等はご用意ください。
・納期:2~3週間程度(受注生産)

④生基板 3400円
・生基板のみの販売です。FPGA用pofファイルをダウンロードしてお使いいただけます。

●FPGA用pofファイルのダウンロードはこちら


購入ご希望の方は表題に「SSDAC1795頒布希望」とお書きのうえ、
dj_higo_officialアットhigon.sakura.ne.jp(アットを@に換えて)までメールにて
お申し込みください。
※ご希望のセット番号と、お名前、ご住所、電話番号をお書きください。
折り返し、代金振込先等のご案内をお送りします。

製造・頒布はSLDJ合同会社が行います。

| | | コメント (0)

« 2021年3月 | トップページ | 2021年6月 »