Hi,
I m using TLC5948 LED driver, driving with stellaris LM3S9B96 . The TLC5948 Ic is not working in SPI mode. My code is as follows
Func_Buff[]=
{0xfff8,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x857f,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff}; //Blank = 0;DSPRPT=1;TMGRST=0;ESPWM=1;
DSP_Buff[]=
{0x0000,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff};
main()
{
//System clock is configured for 40Mhz
//SPI is initialized for 2Mhz clock
//Frame/Chip select pin in SPI is configured as GPIO for LAT selection
LAT_LOW;
for(ux=0;ux<17;ux++)
{
ssIDataput(SSI0_BASE,DSP_Buff[ux]);
}
LAT_HIGH
SystctlDelay(1);
LAT_LOW
for(ux=0;ux<17;ux++)
{
ssIDataput(SSI0_BASE,Func_Buff[ux]);
}
LAT_HIGH
SystctlDelay(1);
LAT_LOW
PWM_init();//For 2Mhz
while(1);
}
Any advice on this would be of great help.
Regards
Venkat