DSPRelated.com
Forums

DM642: McBSP0 and 10-bit VP0

Started by bbas...@ieee.org August 1, 2007
I am trying to configure the DM642 to use McBSP0 and use VP0 in 10-bit mode. SPRS200L page 68 says this can be done. I actually want to use VP0D[19:10] as GPIO pins. How do I set this up? The CHIP_Config structure only lets you disable or enable VP0, not put it in 10-bit mode. From my testing, if I enable McBSP0, I can't use the upper VP0 pins for GPIO.

CHIP_Config devCfgReg {
CHIP_PERCFG_RMK(
CHIP_PERCFG_VP2EN_ENABLE,
CHIP_PERCFG_VP1EN_ENABLE,
CHIP_PERCFG_VP0EN_ENABLE, // ??
CHIP_PERCFG_I2C0EN_DEFAULT,
CHIP_PERCFG_MCBSP1EN_DISABLE,
CHIP_PERCFG_MCBSP0EN_ENABLE,
CHIP_PERCFG_MCASP0EN_DISABLE
)
};

CHIP_config(&devCfgReg);
Thanks,
Bryan
The problem ended up being very odd, undocumented behavior.

When you enable both the VP0 and McBSP0, the VP0 GPIO pins get re-numbered.
The problem is that the documentation always uses the pin name/number
(VP0D[15] or VDATA[15]) to describe the GPIO pins. All the descriptions in
PFUNC, PDIR, etc. use that terminology. I can't find anything saying that
in 10-bit mode you have to use the registers for the "VDATA[5] pin" to
control the VP0D[15] pin.
Am I wrong, did I miss this written somewhere?

Bryan
On 8/1/07, b...@ieee.org < b...@ieee.org> wrote:
>
> I am trying to configure the DM642 to use McBSP0 and use VP0 in 10-bit
> mode. SPRS200L page 68 says this can be done. I actually want to use
> VP0D[19:10] as GPIO pins. How do I set this up? The CHIP_Config structure
> only lets you disable or enable VP0, not put it in 10-bit mode. From my
> testing, if I enable McBSP0, I can't use the upper VP0 pins for GPIO.
>
> CHIP_Config devCfgReg > {
> CHIP_PERCFG_RMK(
> CHIP_PERCFG_VP2EN_ENABLE,
> CHIP_PERCFG_VP1EN_ENABLE,
> CHIP_PERCFG_VP0EN_ENABLE, // ??
> CHIP_PERCFG_I2C0EN_DEFAULT,
> CHIP_PERCFG_MCBSP1EN_DISABLE,
> CHIP_PERCFG_MCBSP0EN_ENABLE,
> CHIP_PERCFG_MCASP0EN_DISABLE
> )
> };
>
> CHIP_config(&devCfgReg);
>
> Thanks,
> Bryan