Hi! I have problem with ics307-02.
I try write 3 byte 0x23 0x14 0x06, using the emulator SPI interface.
sendByte function:
Af written bytes frequency does not change. Who worked with ics307? Who are some ideas?
I try write 3 byte 0x23 0x14 0x06, using the emulator SPI interface.
Code:
STROBE_L;
sendByte( 0x23 );
sendByte( 0x14 );
sendByte( 0x06 );
DATA_L;
STROBE_H; // Strobe High
Delay();
STROBE_L; // Strobe low
Code:
void sendByte(uint8_t data)
{
uint8_t BitValue = 128;
Delay();
for(int i = 0; i < 8; i++)
{
SCLK_L;
Delay();
if(data & BitValue > 0)DATA_H; else DATA_L;
Delay();
SCLK_H;
Delay();
SCLK_L;
BitValue = BitValue / 2;
}
Delay();
}