DSPRelated.com
Forums

c5510 output port

Started by aliaa July 1, 2008
is there any output port i can use in c5510 to out 4 bits from it
as this feature is available in any micro controller
thanks
Ali-

> is there any output port i can use in c5510 to out 4 bits from it
> as this feature is available in any micro controller

Do you have the data sheet?

http://focus.ti.com/lit/ds/symlink/tms320vc5510.pdf

Look in section 3.2.4, General-Purpose Input/Output Port (GPIO).

By the way, TI webpage is showing the 5510 as "obsolete". What board are you using?

-Jeff
Aliaa-
> i have a project that recognize voice and control motors.
> i used dsk5510 but i couldn't found how to output 4 bits which i use to control
> h-bridge which control the motors. i am only want to output 0101 but when i tried
> GPIO it doesn't work and compilation failed. could you tell me how to do so.
>

Are you sure it's a compile problem and not a link problem? Please give the exact
error message.

If it's just a compile issue, then my guess is there is an include file somewhere
that CCS can't find. Or possibly you didn't define chip type, for example
CHIP_5510PGG_xx. The C55x CSL Reference Guide has more info:

http://focus.ti.com/lit/ug/spru433j/spru433j.pdf

Check on page 1-5.

In any case, your error is probably something simple.

-Jeff

PS. Please post to the group, not to me.
> Aliaa Ibrahim Seleem
> Faculty Of Engineering
> Computer Engineering Department
> a...@gmail.com
>
> ----- Original Message ----
> From: Jeff Brower
> To: Ali AA
> Cc: c...
> Sent: Tuesday, July 1, 2008 7:04:21 PM
> Subject: Re: [c55x] c5510 output port
>
> Ali-
>
> > is there any output port i can use in c5510 to out 4 bits from it
> > as this feature is available in any micro controller
>
> Do you have the data sheet?
>
> http://focus.ti.com/lit/ds/symlink/tms320vc5510.pdf
>
> Look in section 3.2.4, General-Purpose Input/Output Port (GPIO).
>
> By the way, TI webpage is showing the 5510 as "obsolete". What board are you
> using?
>
> -Jeff
>
--- In c..., Jeff Brower wrote:
>
> Aliaa-
> > i have a project that recognize voice and control motors.
> > i used dsk5510 but i couldn't found how to output 4 bits which i
use to control
> > h-bridge which control the motors. i am only want to output 0101
but when i tried
> > GPIO it doesn't work and compilation failed. could you tell me how
to do so.
> > Are you sure it's a compile problem and not a link problem? Please
give the exact
> error message.
>
> If it's just a compile issue, then my guess is there is an include
file somewhere
> that CCS can't find. Or possibly you didn't define chip type, for
example
> CHIP_5510PGG_xx. The C55x CSL Reference Guide has more info:
>
> http://focus.ti.com/lit/ug/spru433j/spru433j.pdf
>
> Check on page 1-5.
>
> In any case, your error is probably something simple.
>
> -Jeff
>
> PS. Please post to the group, not to me.
> > Aliaa Ibrahim Seleem
> > Faculty Of Engineering
> > Computer Engineering Department
> > aliaa.ibrahim.salman@...
> >
> > ----- Original Message ----
> > From: Jeff Brower
> > To: Ali AA
> > Cc: c...
> > Sent: Tuesday, July 1, 2008 7:04:21 PM
> > Subject: Re: [c55x] c5510 output port
> >
> > Ali-
> >
> > > is there any output port i can use in c5510 to out 4 bits from it
> > > as this feature is available in any micro controller
> >
> > Do you have the data sheet?
> >
> > http://focus.ti.com/lit/ds/symlink/tms320vc5510.pdf
> >
> > Look in section 3.2.4, General-Purpose Input/Output Port (GPIO).
> >
> > By the way, TI webpage is showing the 5510 as "obsolete". What
board are you
> > using?
> >
> > -Jeff
>
its compilation error

line 22: error: identifier "GPIO_PGPIO_PIN1" is undefined
line 22: error: identifier "GPIO_PGPIO_PIN1_OUTPUT" is undefined
i couldn't found any definition for them in CSL_GPIO5510.h

but they are exist in c5502

my code:

#include
#include
#include
#include <_csl_pgpio.h>
#include <_csl_pgpiodat.h>
#include <_csl_pgpiohal.h>
#include
#include
void main()
{

GPIO_pinDirection(GPIO_PGPIO_PIN1, GPIO_PGPIO_PIN1_OUTPUT);

GPIO_pinEnable(GPIO_PGPIO_PIN1);

GPIO_pinWrite (GPIO_PGPIO_PIN1, 1);

}

how could i define pins in c5510.
Thanks

Aliaa
Aliaa-

aliaa wrote:
>
> --- In c..., Jeff Brower wrote:
> >
> > Aliaa-
> >
> >
> > > i have a project that recognize voice and control motors.
> > > i used dsk5510 but i couldn't found how to output 4 bits which i
> use to control
> > > h-bridge which control the motors. i am only want to output 0101
> but when i tried
> > > GPIO it doesn't work and compilation failed. could you tell me how
> to do so.
> > >
> >
> > Are you sure it's a compile problem and not a link problem? Please
> give the exact
> > error message.
> >
> > If it's just a compile issue, then my guess is there is an include
> file somewhere
> > that CCS can't find. Or possibly you didn't define chip type, for
> example
> > CHIP_5510PGG_xx. The C55x CSL Reference Guide has more info:
> >
> > http://focus.ti.com/lit/ug/spru433j/spru433j.pdf
> >
> > Check on page 1-5.
> >
> > In any case, your error is probably something simple.
> >
> > -Jeff
> >
> > PS. Please post to the group, not to me.
> >
> >
> > > Aliaa Ibrahim Seleem
> > > Faculty Of Engineering
> > > Computer Engineering Department
> > > aliaa.ibrahim.salman@...
> > >
> > > ----- Original Message ----
> > > From: Jeff Brower
> > > To: Ali AA
> > > Cc: c...
> > > Sent: Tuesday, July 1, 2008 7:04:21 PM
> > > Subject: Re: [c55x] c5510 output port
> > >
> > > Ali-
> > >
> > > > is there any output port i can use in c5510 to out 4 bits from it
> > > > as this feature is available in any micro controller
> > >
> > > Do you have the data sheet?
> > >
> > > http://focus.ti.com/lit/ds/symlink/tms320vc5510.pdf
> > >
> > > Look in section 3.2.4, General-Purpose Input/Output Port (GPIO).
> > >
> > > By the way, TI webpage is showing the 5510 as "obsolete". What
> board are you
> > > using?
> > >
> > > -Jeff
> > >
> > its compilation error
>
> line 22: error: identifier "GPIO_PGPIO_PIN1" is undefined
> line 22: error: identifier "GPIO_PGPIO_PIN1_OUTPUT" is undefined
>
> i couldn't found any definition for them in CSL_GPIO5510.h
>
> but they are exist in c5502
>
> my code:
>
> #include
> #include
> #include
> #include <_csl_pgpio.h>
> #include <_csl_pgpiodat.h>
> #include <_csl_pgpiohal.h>
> #include
> #include void main()
> {
> GPIO_pinDirection(GPIO_PGPIO_PIN1, GPIO_PGPIO_PIN1_OUTPUT);
>
> GPIO_pinEnable(GPIO_PGPIO_PIN1);
>
> GPIO_pinWrite (GPIO_PGPIO_PIN1, 1);
>
> }
>
> how could i define pins in c5510.

The code above isn't going to compile because those none of your .h files contain
DEFINE statements for GPIO_PGPIO_PINn.

Did you look inside _csl_pgpio.h? I see pin definitions like:

#define GPIO_PIN0 (((Uint32)(GPIO_GPIO) << 16) | 0x0001u)
#define GPIO_PIN1 (((Uint32)(GPIO_GPIO) << 16) | 0x0002u)
.
.
.

Did you try these?

You need to look into the .h files to understand what's going on. This is basic C
programming, you have to debug your C code, just like you would using Linux or .NET.

The .h files, combined with the C55x CSL Reference Guide link (above), should give
you the info you need to get your GPIO test program working.

-Jeff