Interfacing controller with TM1638

Hi,

Im trying to display characters on LED display of TM1638,my controller is dspic30f5011.

i have done my code based on datasheet(TM1638),but i'm unable to get data on display.

can some one help me please.

Regards,
khaleel

can you give the sketch here???

khaleelarya:
Hi,

Im trying to display characters on LED display of TM1638,my controller is dspic30f5011.
Regards,
khaleel

gonnie08:
can you give the sketch here???

In addition to what gonnie said, also post a drawing of how you connected it to the Arduino, Which Arduino are you usings?

Chuck.

In addition to what gonnie said, also post a drawing of how you connected it to the Arduino, Which Arduino are you usings?

I'm not using Arduino,my controller is dspic30f5011.

connections as below

controller TM1638

SCKL -------------->CLK
CS -------------->STB
DOUT-------------->DIO
DIN -------------->open(I'm not reading any data fromTM1638)

can you give the sketch here???

writing sequence

CS = 0; // enabling the communication
DelayTcy(2);
WriteSPI2(0x44); // Data Command Set with Write data Mode and fixed Address
DelayTcy(10); // Delay of 1us
CS = 1; // disabling communication
DelayTcy(10);
CS = 0;
WriteSPI2(0xC0); // Set the Display Adress initial 0x00
DelayTcy(10);
WriteSPI2(0x40); // Transmission of Data 0
DelayTcy(10);
CS = 1;
DelayTcy(10);
CS = 0;
WriteSPI2(0x8F); // Brightness Control and switch On display
DelayTcy(10);
CS = 1;

and here is my writeSPI function

void WriteSPI2(unsigned int data_out)
{
if (SPI2CONbits.MODE16) // word write
SPI2BUF = data_out;
else
SPI2BUF = data_out & 0xFF; // byte write
}

khaleelarya:
I'm not using Arduino,my controller is dspic30f5011.

I'll be of no help, I do not have any knowledge of dspic30f5011.
Sorry.

chuck.