Teensy Audio question

Status
Not open for further replies.

mtiger

Well-known member
Hi guys,

So I'm looking at starting an audio project with Teensy using an external DAC (12 bit MCP4922 - initially) and wondering if i can use Teensy Audio Library code to start off?

I've looked over the Teensy Audio Library page (https://github.com/PaulStoffregen/Audio) and there is no mention that i can find regarding using external DACs. Only onboard DACs as shown in the pictures towards the bottom of the page.

Any help would be great, thanks. :)

Cheers,
M
 
The audio library does not have any support for this type of SPI interface DAC. In theory you could try to add it, but because this requires SPI and a special pulse, doing it efficiently with DMA would be very difficult. Doing it the normal SPI way from interrupts would be very inefficient, requiring 44100 interrupts per second which do 32 bits of SPI communication and generate a pulse.

You really should look for a DAC with I2S interface instead of SPI. They are well supported with very efficient DMA transfers.
 
Status
Not open for further replies.
Back
Top