Hello community,
at the moment I'm trying to migrate my proprietary communication protocol from the CC2430 to the CC2530. Thanks to the migration guide all runs perfect but except the internal temperature sensor. The ADCs result is always between 150 and 225 mV (depending to the supply voltage, 2 to 3 V) and doesn't change, when the temperature does. According to the datasheet it should have 904 mV at 25 °C.
I tried to enable the temperature sensor with the TR0 and/or the ATEST registers, but nothing happend. I am using CC2530 withoat a primary address in the info page - from a preliminary batch according to this post --> http://e2e.ti.com/support/low_power_rf/f/155/p/15751/60635.aspx#60635
What am I doing wrong? Any ideas?
Regards
mario
My code:
ADCCON3 = 0x3E; // temp
while(!(ADCCON1 & 0x80)); // wait until conversion done
temp = ADCL;
temp |= ADCH << 8;
temp = temp >> 4; // only 12 bits
t_voltage = temp *1.15 / 2047;