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.

CCS/RF430FRL152H: RF430FRL152HEVM

Part Number: RF430FRL152H
Other Parts Discussed in Thread: MSP-EXP430G2ET, DLP-7970ABP

Tool/software: Code Composer Studio

Hi,

I used "SensorHub Project" sample code and try to enable ADC1 and ADC2.

I add some code to set the "Sensor Control Register(F86Ah)"

But the value is not change in the FRAM(F86Ah)

If I write the value to the other address(F888h), it is success.

Is there any mistake in my understanding?

Thanks.

==========================================================

// Firmware Sensor Control Register Settings
#define REFERENCE_ADC1_SENSOR_ENABLE  BIT0
#define THERMISTOR_ADC2_SENSOR_ENABLE  BIT1

#define SENSOR_CONTROL_ADDRESS  0xF86A
#pragma RETAIN(Firmware_Sensor_Control_Byte);
#pragma location = SENSOR_CONTROL_ADDRESS
volatile const u08_t Firmware_Sensor_Control_Byte = REFERENCE_ADC1_SENSOR_ENABLE + THERMISTOR_ADC2_SENSOR_ENABLE;

  • Hello Allen,

    That is not the right way to write to the register. That sort of coding is used for Patch code or adjusting variables used by ROM - all of which should be driven only from TI provided software.

    The virtual registers are intended to configure the device functions based on the ROM Sensor Stack when written into (or to provide results when read from) by an NFC device. To configure an ADC otherwise, it would be better to do a register-level configuration using the SD14 registers. I am not aware of a way to trigger the ROM sensor configs without using NFC to write to the virtual registers.
  • Hi Ralph,

    Thanks for your suggestion.
    I still have some question about this.
    1. Is the best way to use NFC if I want to write virtual registers?
    2. How can I use the NFC to write virtual register if I haven't TRF7970AEVM board.
    Is it can use android phone to do this? Have any sample code for reference?

    Thanks.
  • Hello Allen,

    The virtual registers exist to be written with NFC/RFID communication, or possibly a host controller as well, though we don't really see the host controller case come up. You just configure the peripheral registers otherwise. The virtual registers start at block 0 of memory for NFC/RFID.

    You would use a reader/write device to communicate and configure the registers starting at block 0. You can use the MSP-EXP430G2ET LaunchPad and DLP-7970ABP BoosterPack to do this. See Section 1.4 of our FAQ Guide: www.ti.com/.../sloa247

    You could use an Android phone but you need an app that lets you write block data to specific ISO15693 blocks, and does not use NDEF formatting which is the default for most apps.
  • Hi Ralph,

    Thanks for your help.