This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM648视屏显示口软件复位的问题



C:\dvsdk_1_11_00_00_DM648\pspdrivers_1_10_00\packages\ti\sdo\pspdrivers\drivers\vport\src\vportdis.c里面:

   /* reset video port */
    chan->vportRegs->VP_CTL = CSL_VPORT_VP_CTL_VPRST_MASK;                        1

  /* enable video port */
    chan->vportRegs->PCR |= CSL_VPORT_PCR_PEREN_MASK;

    while (1)
    {
        vpCtrl = chan->vportRegs->VP_CTL;
        if (!(vpCtrl & CSL_VPORT_VP_CTL_VPRST_MASK))                                                   2
        {
            break;
        }
    }

 

端口初始化时VP_CTL为0x4000,CSL_VPORT_VP_CTL_VPRST_MASK为0x8000,执行完上面第1句后,VP_CTL变成0xc000。 VP_CTL的最高位VPRST表示复位使能位,这样导致第2句一直是死循环。ti文档说:The VPRST bit may take several clock cycles to clear to 0。怎么我现在这个bit位一直没被清0