Hello all,
we are currently working on a project using the CC2540 keyfob (mini dev kit). We would like to read an analog voltage and use a comparator so that only if the voltage has a certain value a signal is sent to the microcontroller and only then a bluetooth signal is transmitted to a smartphone.
We have a few questions regarding this:
Is it possible to use pins P0_6 or P0_7 for reading the analog voltage? Or are these pins used otherwise already?
How can we set these pins as analog input?
I read that the CC2540 has an analog comparator. Is it possible to use it and set a certain voltage as reference voltage so that a bluetooth signal is only sent if the analog voltage has the value 1,2V or greater? How would you program this?
We would be very grateful for your help!
Thanks alot!