Hi,
I know c6713 has a codec to read analog inputs, is there any way i can work on digital pulses using c6713.
I need to take the digital pulses coming from tac line and convert that digital pulses to a analog signal and send it out through line in.
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,
I know c6713 has a codec to read analog inputs, is there any way i can work on digital pulses using c6713.
I need to take the digital pulses coming from tac line and convert that digital pulses to a analog signal and send it out through line in.
Thanks.
Have a small description about the project, I would be getting a Tac signal from Tac line which is a digital pulses, so i have to output a analog signal based on received pulses.
Is there any sample example for such type.
I am new to dsp , so any help would be appreciated.
I got a sample code to configure the GPIO, which was executed without any error. Now i am not sure how to read the data from the pin. Have attached the sample code.
#include <dsk6713.h>
>
> #define GPIO_ENABLE_ADDRESS 0x01B00000
> #define GPIO_DIRECTION_ADDRESS 0x01B00004
> #define GPIO_VALUE_ADDRESS 0x01B00008
>
> void main( void )
> {
> int* GPIO_ENABLE_REGISTER,* GPIO_DIRECTION_REGISTER, *
> GPIO_VALUE_REGISTER ;
>
> GPIO_ENABLE_REGISTER = (int*)GPIO_ENABLE_ADDRESS ;
> GPIO_DIRECTION_REGISTER = (int*)GPIO_DIRECTION_ADDRESS ;
> GPIO_VALUE_REGISTER = (int*)GPIO_VALUE_ADDRESS ;
>
> *GPIO_ENABLE_REGISTER = 255 ;
> *GPIO_DIRECTION_REGISTER = 255 ;
>
> DSK6713_init();
>
> while( 1 )
> {
> *GPIO_VALUE_REGISTER = 255 ;
> DSK6713_waitusec(500000);
> *GPIO_VALUE_REGISTER = 0 ;
> DSK6713_waitusec(500000);
> }
>
> }
Can i have any update on the request.
I would simply like to take digital data through GPIO ports and send it out to codec, which converts it to analog output.
Navaneeth,
You have sample code for accessing GPIO registers. You also need to find sample code for accessing codec outputs, which probably means using the McBSP ports.
Navaneeth Karthikeyan said:> while( 1 )
> {
> *GPIO_VALUE_REGISTER = 255 ;
> DSK6713_waitusec(500000);
> *GPIO_VALUE_REGISTER = 0 ;
> DSK6713_waitusec(500000);
> }
In your GPIO sample code, what is the line below doing?
Navaneeth Karthikeyan said:> *GPIO_VALUE_REGISTER = 255 ;
Is this reading from or writing to the GPIO register? Is it accessing a single data line or more than 1?
Can you observe the GPIO pins with a scope or change them with a signal generator (or even with a manual switch)?
When you read the GPIO register, if there are several pins providing values into that register, how can you pull out or extract the single line that you want to read? Since that will be a simple binary 1 or 0, you will next figure out an algorithm that will convert a series of binary 1 or 0 data into a numeric value to be written to the codec.
You will:
Regards,
RandyP