Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

Back
Top