郁闷呀 供电正常,排除硬件问题,sda时序数据完全正常,clk正常。
//初始化子程序 void Init_Led(void)
{ //Initialise GPIO pin to general gpio EALLOW; GpioMuxRegs.GPFMUX.bit.MFSXA_GPIOF10 = 0; //RST GpioMuxRegs.GPFDIR.bit.GPIOF10 = 1; GpioMuxRegs.GPFMUX.bit.MDXA_GPIOF12 = 0; //SCLK GpioMuxRegs.GPFDIR.bit.GPIOF12 = 1; GpioMuxRegs.GPFMUX.bit.MDRA_GPIOF13 = 0; //SDA GpioMuxRegs.GPFDIR.bit.GPIOF13 = 1; EDIS; //Initialise the chip ch454; RST=1; DSP28x_usDelay(200); RST=0; DSP28x_usDelay(1); SDA=1; DSP28x_usDelay(1); SCL=1; SendLedData(CH454_RESET); //软复位 SendLedData(CH454_SYSPARA(0x0049)); // 配置系统参数 SendLedData(CH454_DISPARA(0x002A)); //显示参数 SendLedData(CH454_TWINKING(0x0000)); //闪烁参数
}