Part Number: RF430FRL152H
Tool/software: Code Composer Studio
Hi,
I use the example code as below to get the value of ADC0.
And find the ADC0 value is a multiple of 32.
But the ADC0 is a 14-bit value(0~16383).
Is there any SD14 parameter setting wrong ?
Thanks.
====================================================================
void main()
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog
// ROM RF13M module setup ** The following three lines are needed for proper RF stack operation
DS = 1; // ROM variable needs to be initialized here
asm ( " CALL #0x5CDA "); // Call ROM function ( Initialize function pointers)
asm ( " CALL #0x5CAC "); // Call ROM function ( Check part configuration)
initISO15693(CLEAR_BLOCK_LOCKS);
DeviceInit();
SD14CTL0 = SD14EN + VIRTGND;
SD14CTL1 = SD14UNI + SD14INTDLY0 + ADC0_CHANNEL;
while(1)
{
SD14CTL0 |= SD14SC;
__delay_cycles(1000000);
ADC_Value= SD14MEM0;
ADC_Volts = ((ADC_Value >> 8) *900)/(16383 >> 8);
//Enter Low Power mode
//__bis_SR_register(LPM3_bits + GIE);
}
}
====================================================================
