Can I not connect pin 0_7 (AIN7) as input to ADC? I was confused looking at the specs. I can still use internal voltage and do ADC conversion right? Are there any code examples?
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.
Can I not connect pin 0_7 (AIN7) as input to ADC? I was confused looking at the specs. I can still use internal voltage and do ADC conversion right? Are there any code examples?
Hi Dh Sh,
Yes you can input P0_7 to the ADC. Have a look at table 7-1 in the CC253x/4x User's Guide.
I cannot find any ADC specific code examples, but if you read chapter 12 of the User's Guide, the ADC is pretty straight forward to use.
/Fredrik
Hello Dh Sh,
I have converted a few simple ADC software examples from the CC254x devices which i am working on now to work on the CC2530 device. The examples use VDD as Reference Voltage on the AVDD pin, but the structure of the code should make it very easy to change the input and reference voltage. Just look at the definitions in the source code and change accordingly.
The project is used with IAR Embedded Workbench version 8.10.
BR. Eirik