Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
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 ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
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 ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
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 <j...@signalogic.com> > To: Ali AA <l...@yahoo.com> > Cc: c...@yahoogroups.com > 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...@yahoogroups.com, Jeff Brower <jbrower@...> 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 <jbrower@...>
> > To: Ali AA <loli_eng@...>
> > Cc: c...@yahoogroups.com
> > 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 <csl.h>
#include <csl_gpio.h>
#include <csl_gpiodat.h>
#include <_csl_pgpio.h>
#include <_csl_pgpiodat.h>
#include <_csl_pgpiohal.h>
#include <csl_gpiohal.h>
#include <csl_gpio5510.h>
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
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
Aliaa-
aliaa wrote:
>
> --- In c...@yahoogroups.com, Jeff Brower <jbrower@...> 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 <jbrower@...>
> > > To: Ali AA <loli_eng@...>
> > > Cc: c...@yahoogroups.com
> > > 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 <csl.h>
> #include <csl_gpio.h>
> #include <csl_gpiodat.h>
> #include <_csl_pgpio.h>
> #include <_csl_pgpiodat.h>
> #include <_csl_pgpiohal.h>
> #include <csl_gpiohal.h>
> #include <csl_gpio5510.h> 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
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x