DSPRelated.com
Forums

GPIO pins in TMS320DM6446

Started by rich...@tcs.com March 13, 2008
I am just starting with Da Vinci.Before starting i am using Code composer evaluation version and trying to simply toggle IO pins using C.
Can anyone please help me with this??????

I have included c6x.h as header but tried with GP0EN, GP0DIR, GPIO etc but it is giving error undefined variables.

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
>>> Posted by: "r...@tcs.com" r...@tcs.com
>>> Thu Mar 13, 2008 5:31 am (PDT)
>>> I am just starting with Da Vinci.Before starting i am using Code composer
>>> evaluation version and trying to simply toggle IO pins using C.
>>> Can anyone please help me with this??????

>>> I have included c6x.h as header but tried with GP0EN, GP0DIR,
>>> GPIO etc but it is giving error undefined variables.
The following is what I use with a 6412 and cc v3.1.
//

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Thanx for your response.I have not read TMS320DM6446 processor extensively.Just my org.
> has told me to set GPIO pin as Input or Output and then toggle it
>
> But my problem is that i am getting undefined symbols for all my GPIO signals If you have
> a little code snippet dealing GPIO signals thn please send it to me I am copying my code
> with this mail.I f you can help me.
>
> #include
> #define chip_6201
> #include "C6x.h"
> #include "csl_gpiohal.h"
> #include "csl_gpio.h"
> #include "csl_chiphal.h"
>
> #if defined(_TMS320C6201)
> #define ALIGNED_ARRAY(ptr) _nassert((int) ptr % 8 == 0)
>
> #elif defined( _chip_6201) || defined(_TMS320C6700)
> #define ALIGNED_ARRAY(ptr) _nassert((int) ptr % 4 == 0)
> #else
> #define ALIGNED_ARRAY(ptr) /* empty */
> #endif
>
> void main()
> {
> GP0EN=1; //this signal it is giving as undefined
> GP0DIR=1; //this signal it is giving as undefined
> }
>
> Please someone help me how to toggle GPIO pins .I am getting GPIO symbols as undefined.I
> am using code composer for this purpose....
> >
> >Please Please someone help me...............
> >Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for
Commercial & Consumer End Equipment: www.ti.com/dm6467
> >
> >