Programming ics307

Status
Not open for further replies.

ambrella

New Member
Hi! I have problem with ics307-02.
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
sendByte function:
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();
}
Af written bytes frequency does not change. Who worked with ics307? Who are some ideas?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…