Other Parts Discussed in Thread: CC2530
Hello I am new to zigbee, I need help explaining this code step by step and where do I put it in the GenericApp to measure temperature.
the code is:
TR0 |= 0x01; // TR0 must be modified prior to ATEST,
ATEST |= 0x01; // otherwise P0_0 and P0_1 forced with 0
uint16 tempSample = HalAdcRead( HAL_ADC_CHN_TEMP, HAL_ADC_RESOLUTION_12 );
TR0 &= ~0x01;
ATEST &= ~0x01;
I am using the CC2530 smartrf05