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.

XM4C129XNCZADI1 碰到的奇怪问题



各路大侠,在调试Tiva M4 的时候碰到了一个奇怪的问题,SPI I2C 都调通了,在调试LCD的时候

我们用EVM 板自带的测试程序 C:\ti\TivaWare_C_Series-2.0.1.11577\examples\boards\dk-tm4c129x\dk-tm4c129x.eww 中的hello 工程 去测试板子,发现在

void

Kentec320x240x16_SSD2119Init(uint32_t ui32SysClock)

{

    uint32_t ui32ClockMS, ui32Count;

    tLCDIDDTiming sTimings;

 

    //

    // Determine the number of system clock cycles in 1mS

    //

    ui32ClockMS = CYCLES_FROM_TIME_US(ui32SysClock, 1000);

 

    //

    // Divide by 3 to get the number of SysCtlDelay loops in 1mS.

    //

    ui32ClockMS /= 3;

 

    //

    // Enable the LCD controller.

    //

    SysCtlPeripheralEnable(SYSCTL_PERIPH_LCD0);

 

    //

    // Assert the LCD reset signal.

    //

GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_6, 0);

………………………..

 

发现运行SysCtlPeripheralEnable(SYSCTL_PERIPH_LCD0); 不正确。对LCD Controller Run Mode Clock Gating Control (RCGCLCD) 的最后一位操作无效果。通过与你们的EVM比较发现得到的Device Identification 1 (DID1)数据和数据手册上的值不一致,我们得到的值是0x10CAE076  而数据手册上的值为1032E076.

 

能否给出一个建议? 谢谢