Skip to content

Adding quad input#40

Open
julia-m-stephenson wants to merge 10 commits into
chipaudette:masterfrom
julia-m-stephenson:JMS-Adding_quad_input
Open

Adding quad input#40
julia-m-stephenson wants to merge 10 commits into
chipaudette:masterfrom
julia-m-stephenson:JMS-Adding_quad_input

Conversation

@julia-m-stephenson

Copy link
Copy Markdown

This code provides a new object which allows 4 channel x 32 Bit transfers from I2S bus into the OpenAudio_Arduino Library framework.

An example project is provided.

The driving force was adding support for 24Bit ADCs to the T41-EP (hardware) and T41-EEE (software) projects.

The new Object is heavily based on work by Terrance Robertson who wrote an object that supported 4 channel x 16 Bit Transfers. Any mistakes are of course my own!

The example app is based on the Stereo Passthrough Example, it loops audio from the MIC input on the SGTL5000 to the headphone output and on a T41-EP loops audio from the PCM1808 ADC to the PCM5102 DAC.

This has been tested at up to 192kbits sample rate on the V10 T41-EP hardware.

I wrote this out of frustration with the T41-EPs claims at supporting 24Bit ADC only to find it didn't extend to the software! This is why OpenSource rules!
Thanks to Greg Raven for the T41-EEE project and I hope this will improve the project.

First Attempt no IQ displayed but didn't crash
Initial placeholder for Passthrough test, this is currently the output test with some tweaks for T41-EP
Moving to be closer to the Teensy PassThrough example
Can receive data from MIC and RX IQ inputs simultaneously and peak readings change.
This now works. With
TAA MIC -> TAA Headphones
PCM1808 Input -> PCM5102 output
Original library just input 16Bit values in the DMA engine now changed to 32bits.

Need to remove the scaling as not needed I2S automatically puts 16bit and 24bit numbers in the MSBits.
Example now should support two TAA devices or 1 TAA and 1x PCM1808 + PCM5102 as used on the T41-EP
TAA and PCM1808/PCM5102 all seem to work at 192000 on Teensy 4.1
Just some formatting
Mic gain set to 0dB to prevent feedback to headphones!
Added first guess for GUI don't know what else is required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant