This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RF430FRL152H: Can the Infinite sampling mode be automatically initialized after power-on?

Part Number: RF430FRL152H


Hi,

Considering that my last problem has not been solved yet, I am thinking about different methods. If this method is feasible, the last problem will not be important to me.

I noticed that after I use infinite sampling, "startbit" is always "1", and the data of block 9 is also constantly refreshing. But when RF430FRL152H loses power and is powered on again, "startbit" is still 1, and the data of block 9 does not change. This means that sampling has stopped. Is there a way to restart sampling without rewriting data? 

Best Regards,

Zhixiong CHEN

  • Hi,

    I am not aware of a function that is executed when the device is powered up, which the user has access to. Normally the device will only execute the ROM code until it receives a command. 

    I will check if there is any workaround to manage setting the start bit after power up and will come back to you the next days.

    Best Regards,

    Helfried

  • Hi,

    I think I found a solution to start the sample process immediate when the RF430FRL152H is powered up.

    From your previous post I see that you are using the digital sensor. The DigitalSensorInit() subroutine is executed at power up. I added code to set the Start bit there. Unfortunately that did not start the measurement. There is an internal variable of the ROM code that needs to be set in addition to get the measurement started. Here is my code that I have added to the DigitalSensorInit() subroutine:

        unsigned int * GeneralControlReg = (unsigned int *)0xF868;
        unsigned char * Check_Conversion = (unsigned char *) 0x1CF1;
        
        *GeneralControlReg |= (unsigned int)BIT0;
        *Check_Conversion = 1;
    

    I defined two pointers, one that points to the General Control Register and one to point to an internal variable of the ROM code. In the General Control Register the Start bit is set and the ROM variable is set to 1.

    Please try this out and let me know if this will work for you.

    Best Regards,

    Helfried

  • Hi,

    I tried it, it seems to be feasible, but I encountered some problems, sometimes the status register will return 0x0b, I am confirming whether it is a code problem in other parts.

    Best regards,

    Zhixiong 

  • Hi,

    just to inform you. I am not in the Office the next week. In case, any answer will be delayed.

    Best Regards,

    Helfried