DSPRelated.com
Forums

using McBSP as GPIO

Started by baba...@yahoo.com January 23, 2010
Hi
I've configured DSK6713's McBSP registers (PCR0,PCR1) to use its pins as GPI/O. But except CLKR0 and FSR0 pins, none of McBSP's pins respond to my commands. I've set both port0 and port1 variables as same, but only CLKR and FSR of port0 are working.

thank you very much

_____________________________________
babak,

you might want to read:
TMS320C6713 Floating-Point Digital Signal Processor (Rev. L)
about page 89

Which is found at:


Then read the details of GPIO in SPRU190.pdf
and SPRA809A.pdf

Note:
After opening the appropriate document, do a search for McBSP and for GPIO.

R. Williams

---------- Original Message -----------
From: b...@yahoo.com
To: c...
Sent: Sat, 23 Jan 2010 10:59:48 -0500
Subject: [c6x] using McBSP as GPIO

>
>
> Hi
> I've configured DSK6713's McBSP registers (PCR0,PCR1) to use its pins as GPI/O. But except CLKR0 and FSR0 pins, none of McBSP's pins respond to my commands. I've set both port0 and port1 variables as same, but only CLKR and FSR of port0 are working.
>
> thank you very much
Babak-

> I've configured DSK6713's McBSP registers (PCR0,PCR1) to use
> its pins as GPI/O. But except CLKR0 and FSR0 pins, none
> of McBSP's pins respond to my commands.

Not all McBSP pins can be used for GPIO, and some pins can be used only for input and some for output (i.e. fixed
direction). From the C6x McBSP Reference Guide (http://focus.ti.com/lit/ug/spru580g/spru580g.pdf, pg 85):

DX pin is configured as general-purpose output pin; FSX and
CLKX pins are configured as general-purpose I/O pins. These
serial port pins do not perform serial port operations.

DR and CLKS pins are configured as general-purpose input
pins; FSR and CLKR pins are configured as general-purpose
I/O pins.

> I've set both port0 and port1 variables as same, but only CLKR and
> FSR of port0 are working.

Can you explain "port0 and port1 variables"? Which 'variables' are you talking about? Do you mean registers, or
variables you declared in your C code?

-Jeff

_____________________________________