Wrongs Occurred in the Program of DS18B20-PAR+T&R

Greetings~

Can you help me have a see my time sequence ? It's about the component-- DS18B20-PAR+T&R .( DS18B20-PAR+T&R Datasheet ) What’s wrong here?

/*ds1820 restoration-----------------------------------------------------------------*/
int16 ds1820rst()
{
        int16 flag=0;
        EALLOW;
        GpioCtrlRegs.GPBMUX2.bit.GPIO55= 0;  //0 general io
        DQ_DIR=1;//output situation
        EDIS;
        DQ=1;
        DSP28x_usDelay(10);    //delay
        DQ=0;
        DSP28x_usDelay(600);    //delay
        DQ=1;

        DSP28x_usDelay(30);

        EALLOW;
        GpioCtrlRegs.GPBMUX2.bit.GPIO55= 0;  //0 general io
        DQ_DIR=1;//input situation
        EDIS;
        if(DQ==0)
        flag=DQ;
        return flag;
}

However,why there are no any return signal when in the process of initialization? Are there any wrongs here? I can't see any wrongs in my program?

Please help me have a see. Appreciating it in advance! :bz

Answers

  • Answer ✓

    this is a forum for the Processing language, see processing.org . i think you have posted in completely the wrong place.

  • Oh... Thanks for you remind,koogs.

Sign In or Register to comment.