Reply by modo270180 June 14, 20062006-06-14
Hi All,

first of all I would like to tank all the people who helped me in the
previus question.

I have a problem in the configuration of the video port of the DM642
in an ours board.

I would like to use the low half Video port 0 of the DM642 as McBSP
and the high half as GPIO (only pins VCTL0, VCTL1). The aim of this
two pins is to control the shift page of a flash memory. Moreover this
two pins are pullup with a 10K at Vcc (3.3V).

This is the code that I wrote:

VP_ConfigPort vp0cp = {
0x00000001, /*PCR*/
0x00000000, /*PIEN*/
0x00000000 /*PISTAT*/
};

VP_ConfigGpio vp0Cfg = {
0x00300000, /*PFUNC*/
0x00300000, /*PDIR*/
0x00000000, /*PDOUT*/
0x00000000, /*PDSET*/
0x00300000, /*PDCLR*/
0x00000000, /*PIEN*/
0x00000000, /*PIPOL*/
0x00000000 /*PICLR*/
};
CHIP_Config devCfgReg {
CHIP_DEVCFG_RMK
(
CHIP_DEVCFG_VP2EN_ENABLE,
CHIP_DEVCFG_VP1EN_ENABLE,
CHIP_DEVCFG_VP0EN_ENABLE,
CHIP_DEVCFG_I2C0EN_ENABLE,
CHIP_DEVCFG_MCBSP1EN_DISABLE,
CHIP_DEVCFG_MCBSP0EN_DISABLE,
CHIP_DEVCFG_MCASP0EN_DISABLE
)
};
Inside main:
CHIP_config(&devCfgReg);

vpHandle = VP_open(VP_PORT0, VP_OPEN_RESET);
if(vpHandle == INV)
printf("Opening video port 0 FAILED");

VP_configGpio(vpHandle, &vp0Cfg);
VP_configPort(vpHandle,&vp0cp);
...

I measured the voltage in out and I found 2.2V. I explained this value
through the resistor series of the pull up (10K) and the pull down
resistor (20K) inside the video port (Vcc = 3.3V).
The result was that the port wasn't configured as GP in OUT.

Could someone give me some hints or tell me where is the mistake?

Tanks in advance

Modo