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;