Page 1 of 1

Dev Board Audio Jack

Posted: Sun Feb 21, 2010 7:52 am
by RobOnk
Hello,

A question on a totally different topic. (sorry not sure how to start a new topic string)

I have the version 3 development board, and I want to test the audio jack output.
Or more specifically understand it's usage. I am considering buying the separate DAC/SPI E-block, which of course had additional features I know, but... ($$$$)
The datasheet for the (ver 3) board mentions the audio jack can be used "for tone generation", can a tone be sent to the A0 output? If so, how?

Thanks, Rob

Re: Dev Board Audio Jack

Posted: Mon Feb 22, 2010 3:23 pm
by Benj
Hello Rob

New topics are created by going to the area you wish to post in and clicking the "new topic" button.

The audio connector on the V3 dev board is connected to pin A0. You can generate a square wave tone by outputting alternating logic levels on the pin. The delay between the pin toggling controls the frequency of the audio.

eg to output a 100hz tone simply delay for 1 / 100 = 10ms / 2.

loop
{
output 1
wait 5ms
output 0
wait 5ms
}

Re: Dev Board Audio Jack

Posted: Fri Apr 09, 2010 12:42 pm
by RobOnk
Hello,

I'm trying out the "record" project from the van Dam book.
I believe I have it working...well sort of. (using the SPI/DAC board) EB-13 I believe)

I don't have a microphone so I'm inputting a simple sign wave.
I can record(?) and playback the tone (coming from a func. generator) however if I disconnect the func. generator the playback will stop, after a second or so.
I expected the recorded tone to be stored in memory, so why does the tone stop? Also, I cannot playback the tone w/o the tone input connected.

Thanks, Rob

Re: Dev Board Audio Jack

Posted: Mon Apr 12, 2010 10:53 am
by Steve
Hi Rob,

I don't have any knowledge of this particular program. You might be able to get help about it on the Elektor forum.