Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | MCBSP as GPIO woes

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

MCBSP as GPIO woes - s_minshull - Jul 17 12:41:53 2006

Hi

I'm new to all things DSP and I'm having problems understanding some
of the instructions for using some of the MCBSP signals as GPIO on a
c6711 DSK....

I'm confused about the use of of the CSL instruction "MCBSP_setPins"
that clams to set the status of MCBSP signals configured as GPIO.  It
accepts a handle and a signal name....

My question is how do I specify whether to set the signal high or low???

On a related note, I've noticed the instruction "SET_PIN" in some of
TI's examples...  WHere can I find the include file for this???

Thanks in advance

Steve Minshull

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

RE: MCBSP as GPIO woes - Mike R - Jul 17 16:11:07 2006

The signals you specify are set high, the rest are all set low.

Mike

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
s_minshull
Sent: Monday, July 17, 2006 7:55 AM
To: c...@yahoogroups.com
Subject: [c6x] MCBSP as GPIO woes

Hi

I'm new to all things DSP and I'm having problems understanding some
of the instructions for using some of the MCBSP signals as GPIO on a
c6711 DSK....

I'm confused about the use of of the CSL instruction "MCBSP_setPins"
that clams to set the status of MCBSP signals configured as GPIO.  It
accepts a handle and a signal name....

My question is how do I specify whether to set the signal high or low???

On a related note, I've noticed the instruction "SET_PIN" in some of
TI's examples...  WHere can I find the include file for this???

Thanks in advance

Steve Minshull





(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: MCBSP as GPIO woes - s_minshull - Jul 18 9:16:47 2006

Is there any way of toggling individual signals rather than having to
specify each signal every time you call the function??
--- In c...@yahoogroups.com, "Mike R" <dsprelated@...> wrote:
>
> The signals you specify are set high, the rest are all set low.
> 
> Mike
> 
> -----Original Message-----
> From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
> s_minshull
> Sent: Monday, July 17, 2006 7:55 AM
> To: c...@yahoogroups.com
> Subject: [c6x] MCBSP as GPIO woes
> 
> Hi
> 
> I'm new to all things DSP and I'm having problems understanding some
> of the instructions for using some of the MCBSP signals as GPIO on a
> c6711 DSK....
> 
> I'm confused about the use of of the CSL instruction
"MCBSP_setPins"
> that clams to set the status of MCBSP signals configured as GPIO.  It
> accepts a handle and a signal name....
> 
> My question is how do I specify whether to set the signal high or low???
> 
> On a related note, I've noticed the instruction "SET_PIN" in some
of
> TI's examples...  WHere can I find the include file for this???
> 
> Thanks in advance
> 
> Steve Minshull

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Re: MCBSP as GPIO woes - Jeff Brower - Jul 18 13:01:16 2006

Steve-

> Is there any way of toggling individual signals rather than having to
> specify each signal every time you call the function??

You can go a little faster by using direct instructions instead of CSL function
calls.  For example this line writes to TIMER1 control register, makes TOUT1 a
GPIO,
sets TOUT1 pin to high:

   *(unsigned volatile int*)TIMER1_CTRL = ((*(unsigned volatile
int*)TIMER1_CTRL) &
0xFFFFFFFA) | 4;

You can do similar for McBSP and GPIO registers.  Also you might want to disable
and
re-enable interrupts around such access.

But this is only going to gain some speed.  If I recall, C671x limits successive
I/O
pin access to around 90 nsec, so that's the lower limit.  This has to do with
internal CPU bus stalls.

-Jeff
> --- In c...@yahoogroups.com, "Mike R" <dsprelated@...>
wrote:
> >
> > The signals you specify are set high, the rest are all set low.
> >
> > Mike
> >
> > -----Original Message-----
> > From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
> > s_minshull
> > Sent: Monday, July 17, 2006 7:55 AM
> > To: c...@yahoogroups.com
> > Subject: [c6x] MCBSP as GPIO woes
> >
> > Hi
> >
> > I'm new to all things DSP and I'm having problems understanding some
> > of the instructions for using some of the MCBSP signals as GPIO on a
> > c6711 DSK....
> >
> > I'm confused about the use of of the CSL instruction
"MCBSP_setPins"
> > that clams to set the status of MCBSP signals configured as GPIO.  It
> > accepts a handle and a signal name....
> >
> > My question is how do I specify whether to set the signal high or
low???
> >
> > On a related note, I've noticed the instruction "SET_PIN" in
some of
> > TI's examples...  WHere can I find the include file for this???
> >
> > Thanks in advance
> >
> > Steve Minshull
> >
> >
> >
> >
> >
> >
> > 
> >

______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

RE: Re: MCBSP as GPIO woes - Mike R - Jul 18 13:14:37 2006

Various options:

- Use MCBSP_getPins to get the current pin settings, modify and write back
using MCBSP_setPins.
- Use the MCBSP_RGETH and MCBSP_RSETH macros to read, modify and write the
PCR register. 

Either of these could be encapsulated as your own macro to keep the main
code cleaner.

Mike

-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
s_minshull
Sent: Tuesday, July 18, 2006 5:49 AM
To: c...@yahoogroups.com
Subject: [c6x] Re: MCBSP as GPIO woes

Is there any way of toggling individual signals rather than having to
specify each signal every time you call the function??
--- In c...@yahoogroups.com, "Mike R" <dsprelated@...> wrote:
>
> The signals you specify are set high, the rest are all set low.
> 
> Mike
> 
> -----Original Message-----
> From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
> s_minshull
> Sent: Monday, July 17, 2006 7:55 AM
> To: c...@yahoogroups.com
> Subject: [c6x] MCBSP as GPIO woes
> 
> Hi
> 
> I'm new to all things DSP and I'm having problems understanding some
> of the instructions for using some of the MCBSP signals as GPIO on a
> c6711 DSK....
> 
> I'm confused about the use of of the CSL instruction
"MCBSP_setPins"
> that clams to set the status of MCBSP signals configured as GPIO.  It
> accepts a handle and a signal name....
> 
> My question is how do I specify whether to set the signal high or low???
> 
> On a related note, I've noticed the instruction "SET_PIN" in some
of
> TI's examples...  WHere can I find the include file for this???
> 
> Thanks in advance
> 
> Steve Minshull

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )