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.

关于VC5502的GPIO的问题

Other Parts Discussed in Thread: TMS320VC5502

在使用TMS320VC5502pgpio口遇到一个问题,需要帮忙分析一下,datasheet中介绍复位时GPIO6拉低,则复用脚被选择为pgpio功能,查看XBSR寄存器的bit0应该为0,可是无论把gpio6拉高还是拉低,查看xbsr寄存器的bit0都是1,而且从相应的pgpio口没有任何输出。通过程序读取gpio6的值,则与拉高或拉低是一致的。现在只是用仿真器在调试,还没有选择bootmode,不知道这会不会有影响。

      另外我想使用csl来调试这个口,可是编译通过不过,找不到相应的GPIO的定义,(dmamcbsp我都是用csl没有问题)所以是不是因为我是用的csl的库版本不对,不支持gpio?可是我看那个csl的文档有介绍这个gpio的使用的。

  • 根据bootloader application notes. 与你描述的不一致。

    On the C5502, the EMIF and the HPI share pins to reduce pin count. The function of the shared

    pins, or multiplexed pins as they are referred to in the data manual, is determined at reset via

    the GPIO6 pin. If GPI06 is low, the EMIF will be disabled and the HPI will use the EMIF address

    and data pins for operation (HPI operates in non-multiplexed mode). If GPIO6 is high, the EMIF

    will be enabled and the HPI will operate through non-EMIF pins (HPI operates in multiplexed

    mode).

    到是与C5501的描述一致:

    There is no sharing of pins between the EMIF and HPI on the C5501, however, the GPIO6 pin

    must be kept high at reset to enable both of these modules. If GPIO6 is low at reset, the C5501

    will configure the EMIF and HPI pins as parallel general-purpose input and output pins and the

    EMIF and HPI will not be available for use

  • 建议考虑CHIP_RSET(Reg,Val)来改变XBSR寄存器的值,即CHIP_RSET(XBSR,Val)。在csl_chiphal.h中