DSPRelated.com
Forums

I'm desparate. It seems so simple.

Started by dfigueire September 27, 2007
Problem: Pull the amute1 (mute output of McASP 1) low to light an LED.

Does anyone know how to do this. Seems simple right.

There is conflicting information in the docs. But starting with
spru584a.pdf (c6000 doc) I found that I need to set amute1, or GPIO
channel 1 bit 0 to 0. This is done by setting the GPIOEN bit 0 high to
enable GPIO function, then set GPIDIR1 bit 0 to 1 to set output and
then set GPIDAT1 bit 0 to 0. Some of this garnered from
tms320c6727.pdf page 59. Nothing. I have worked on this for over a day
and I can't seem to make even the simple things work.

Next I will look at the DSP/BIOS stuff, but I don't think it was ment
to do this kind of thing.

Thanks,
David
There are a few different methods for poking registers on these chips. I'll
explain using the CSL methods.

First, you have to enable the McAsp peripheral using CHIP_config(). I'm not
sure if CHIP_config reads the values back like the docs say to, so you might
want to delay and call CHIP_getConfig for good measure.

Next, open the port using MCASP_open and configure it using MCASP_config.
In your configuration, just set the PFUNC and PDIR correctly for the mute
pin.

Then you can use MCASP_setPins and MCASP_clearPins to blink the LED.

Bryan
On 9/27/07, dfigueire wrote:
>
> Problem: Pull the amute1 (mute output of McASP 1) low to light an LED.
>
> Does anyone know how to do this. Seems simple right.
>
> There is conflicting information in the docs. But starting with
> spru584a.pdf (c6000 doc) I found that I need to set amute1, or GPIO
> channel 1 bit 0 to 0. This is done by setting the GPIOEN bit 0 high to
> enable GPIO function, then set GPIDIR1 bit 0 to 1 to set output and
> then set GPIDAT1 bit 0 to 0. Some of this garnered from
> tms320c6727.pdf page 59. Nothing. I have worked on this for over a day
> and I can't seem to make even the simple things work.
>
> Next I will look at the DSP/BIOS stuff, but I don't think it was ment
> to do this kind of thing.
>
> Thanks,
> David
>
>
>