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.

CC2530 Battery monitoring

Other Parts Discussed in Thread: CC2530, Z-STACK, CC2533

I've been looking around to see if anybody encountered the same issue I'm facing with little success...  Every body seems to be uising the ADC to monitor the VDD...

Chapter 13 of the user manual clearly describe the Battery monitor for the CC2530. 

I think I understand what need to be done in order to use this feature, it seems pretty straight forward...  But It not working for me, the value read from the BATTMON register is not what I expect and I've tried many different settings...

FIrst, I'm must say that I'm using IAR running version 9.02.01 as well as the latest version of the TI Z-Stack home ( Z-Stack Home 1.2.2a.44539 )

Now, this seemed strange to me, but  I had to modify current ioCC2530.h from IAR and the associated .ddf file in order to add the definition of both register involved in the battery monitoring.  Before I did so, the BATTMON register and the MONMUX register where not defined and obviously I got compile errors... 

This lead me to dout that the battery monotoring feature i availability for the CC2530 but again, Chapter 13 is part of the CC2530 user manual...

After defining those two registers in the right files in the IAR system folder, I can use them, view their content in the watch window ect... But something is still wrong...  The reset value,, according to chapter 13, is supposed to be 0x39  and I get a big fat 0x00...  Also, once I change the value, it seem to be set in the register, but I never got the BATMON_OUT bit to change (I've tried many setting and different wait times...

So, I'd like to know if the battery monitoring is working for any of you and if so, could you point me out to possible misconception from my part?