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.

C6474 - GPIO OUT_DATA Register

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I'm trying to learn how to use the GPIO on the C6474 DSP. When I use the example for blinking leds supplied for the EVM 6474 (see C:\CCStudio_v3.3\boards\evmc6474_v1\tests\led), no problem it's work.

And when I use the function included in this example (see EVM6474_GPIO_setOutput()), no problem the DSP drive well pin I selected.

But it only drives 1 pin by 1 pin. For example, the following routine drive the only GPIO_0 :  

EVM6474_GPIO_setOutput( 0, 1);
EVM6474_waitusec( T1s );
EVM6474_GPIO_setOutput( 0, 0);

How could I do, if I want to drive GPIO_0 & GPIO_1 in one cycle ? In other words, how could I do to write in the OUT_DATA register for several pins activation  ?

Thanks for your help.

 

 

  • Bubsy,

    Please let us know how you ended up solving this.

    The two recommendations I have are:

    1. Copy the source for EVM6474_GPIO_setOutput to a new function that will use two "number" parameters.

    2. Starting from the source for EVM6474_GPIO_setOutput, write a new function that uses the SET_DATA and CLR_DATA registers. This would be more efficient since it would not require a read-modify-write, which is what the EVM6474_GPIO_setOutput function does.

    Regards,
    RandyP

    [Sorry it has taken so long to get an answer for this. You actual solution would be appreciated by the entire E2E Community.]