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.

LAUNCHXL-CC2650: Internal battery monitor sample code

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650

I am trying to find sample code to use the internal battery monitor to read the current supply voltage to the CC2650.

I have looked at the TRM chapter 18 and have got this far:

But I do not know what code to put in my Project Zero to:

1. Set BATUPD.STAT to 1

2. Read this 32bit register into a uint32_t variable in my program

I can not find any CCS sample code to do this.

I know it is very simple to do this with a couple of code lines but all this resister access is new to me.

Any help would be appreciated.

Dale