Hi,
I am new to CC2540. Please allow me to describe my set up first.
I am using SimpleBLEperipheral project. I have temperature sensor event measuring temperature every 3 sec and broadcast out by the interval defined in SimpleBLEperipheral.
I have already done that set up. With that set up, what I would like to achieve is, to have control input (lets say we use port 0 pin 1) into CC2540. As long as that port 0 pin 1 is high, my CC2540 will keep doing above mentioned operation. Once that Port 0 Pin 1 goes low, I want CC2540 to go lowest power consumption mode, until port 0 pin 1 is high again, then CC2540 will resume temperature sampling and broadcasting again. It not required to save any data during low power consumption mode. There will be no fix duration between when Port 0 Pin 1, will be high or low. It could be 5sec or 1 minute or longer.
Can anyone give me direction of example project or related post for it? Thank a lot.
Regards,
LB