Raspberry Pi Pico (RP2040) PIO-based PDM input to I2S output example.
cargo run --release
詳しくは .cargo/config.toml のrunnerを確認してください。
probe-runを用いて書き込みます。
RP2040 PIO-based PDM input to I2S output example
License: Apache License 2.0
Raspberry Pi Pico (RP2040) PIO-based PDM input to I2S output example.
cargo run --release
詳しくは .cargo/config.toml のrunnerを確認してください。
probe-runを用いて書き込みます。
ステレオのPDM→PCM変換で230.4MHzまでオーバークロックしている。
もっと高速化したい。
PDM→PCM変換が間に合っていない時に0値を出力するようになっている。
XIPのキャッシュミスで速度が安定しない可能性がある。
RAM実行に書き換えることで改善するか?
I2S出力の値が16サンプルごとに少し飛ぶ。
16サンプルはバッファーサイズ。
バッファーサイズを32サンプルにしたときは48サンプルごとに飛んでいたっぽい。不思議なので要検証。
PDMかI2Sのダブルバッファリングに問題があるのではないかと思う。
PDMクロック送信開始後33ms程度はゴミデータしか返ってこない。
ほぼPDMデータは0が返ってくるので負のオフセットがついてしまう。
タイマーで40ms後に割り込み、積分データを0にリセットする
PDM→PCM変換のdequeueに格納するタイミング次第ではLchとRchが1サンプルずれる可能性がある。
1ch目(Lch)のときに全チャンネル分をdequeueから取得するなどしてサンプルがずれないようにしたい。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.