Hi...
I am trying to sample audio input using ADC and then output the same audio through headphone.
I am new to CC2431 and would appreciate any help or sample code for audio output on SmartRF04EB board.
Thanks,
Prachi
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi.
You can start with the DN402:
http://focus.ti.com/analog/docs/techdocsabstract.tsp?familyId=936&abstractName=swra138
It's for the CC2510 which has the DSM mode as well as uLaw, but the principle for the CC2430 should be the same, The ADC are equal between the devices and you can still use Timer1 for audio output if you use it in PWM mode.
You have to install a 0 ohm resistor on the SmartRF board for the audio input to work. Think it is R104 on the backside, but you should check the user manual to be 100% sure.
Regards,
Kjetil
Thanks Kjetil...
I modified code for CC2430 platform. I am using DSM mode and not the u-law.
I inserted 0 ohm resistor at R104 but I dont get the audio loopback. I can hear only some noise.
Timer interrupts are serviced properly but not able to hear any sound from phone.
Am I missing something? Please guide.
Hi again,
Silly question, but i assume you have seen the volume potmeter on the 04EB.
Would have debugged both paths separately.
First check that the mic side works ok by looking at the ADC values. As a debug option you could consider inputting the free potmeter to the ADC (you will need to wire the potmeter to the ADC inpiut). This will alow you to control what the ADC should output.
For the phone part, you could try to replace the sampled ADC data with a pre-programmed buffer containing values for a 1 kHz sin wave or something.
That's all i can think of right now.
Kjetil