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: view sensor data tab

Part Number: RF430FRL152H

Dear all,

Hello my name is minhyung kang.

I am using RF430FRL152H and MPS-EXP430G2ET + DLP7970ABP to create a custom board.

I am using the GUI interface to sample the ADC0 data. But I have a problem.

I want to get sample data for a long time, So I set the Number of Passes Register high. But when I did it, the sensor data appears odd value. I want to resolve this problem.

Also, How I get the data infinitely? I want to get data continuously While the device is operating.

  • Hello Minhyung,

    if you just want to read the sampled data infinitely you do not have to set the "number of passes".

    If you set the number of passes data will be logged in subsequent memory location for the number you set. This is needed to log data and read it afterwards from the memory.

    In your case let the "number of passes" = 1 and continuous start the sampling and read the sample data.

    You have to start a sampling processes (bit 0 in the control register) and then read the sampled value. This has to be done in a loop.

    A second possibility is using the infinite sampling mode. Info about that can be found in the following thread:

    https://e2e.ti.com/support/wireless-connectivity/other-wireless/f/667/t/421039

    Best regards,

    Helfried

  • Dear Helfried

    Thank you for your kind reply. I think you need infinite sampling as you say. But I do not know how to do it. I set the Number of Passes Register to 2 and checked the Infinite sampling, but when I clicked Read logged data in View Sensor Data, only 2 data could be displayed. How can I get data continuously?

  • Hello Minhyung,

    you have to change also the "Logging Memory Size". Please read the thread I have referred to in my last post. It will explain it.

    Best regards,

    Helfried 

  • I already read the thread, but I don't understand well... sorry...

    I do not know how many should be set for each of the Stored Sample Memory, Total Number of Stores, and Sample Buffer Indexes. My goal is to just sample the ADC0 data continuously while the device is running. Can you give me more hint...?  I' m sorry to bother you.

  • Set Register "Logging Memory Size Register" = 2   (block 8, byte 0/1) -> 16 bit value.

    Set the "Number of Passes Register"   (block 0 , byte 4) = 2.

    In the "Interrupt Control Register"   (block 0, byte 6) bit 0 (Infinite Sampling) has to be set to "1".

    Then set the start bit (bit 0) in the "General Control Register" (block 0, byte 0) .

    Now the sampling process starts and you can read the ADC values.

    Here is a sample session of commands to send:

    0108000304FF0000
    0109000304F0000000
    0109000304F1FF0000
    010C00030410002101020000
    01130003041802210100000000000000010000
    011300030418022102111110050000FFFF0000
    011300030418022108020046020300A6A30000
    01130003041802210001000401020101000000
    010B000304180220090000
    010B000304180220090000
    010B000304180220090000
    ….. 

    Repeat last line to read ADC values.

    Best regards,

    Helfried

     

  • Dear Helfried

    Thank you!! I have one more question. The figure below shows that only 8 bits are changed. Do you mean separating 8 bits into 4 bits each? In other words, does it mean collecting two data at a time?

  • Hello Minhyung,

    these are two subsequent ADC samples in the memory.

    Each sample consists of two bytes (16 bit). Two get the ADC value the nibbles have to be swapped.

    In your example above you have the following values:

    0616, 0616, 0558, 05D2, 0630 …. and so on.

    Best regards,

    Helfried

  • Thank you so much!! I resolve the problem thanks to you!