Use a CommonSignal component connected to an isr. There are some APIs for power management documented in "System Reference Guide" (from Creator Help).
you mean CommonSignal component or Global signal reference component.
If it is Global signal reference component.,then i connected with isr. and i selected PWRinit in the Global signal.
But It is for Low voltage Detection,after detection of low voltage i want to reset the ble chip i.e, brown out reset
shoulb be triggered.
You will need to use the function CySysLvdEnable(uint32 threshold) to set the voltage threshold, and using this combined with the Global SIgnal reference component set to PWRinit should fire the interrupt connected to the Global Signal Reference Component when the software detects a low voltage threshold level trip. You will also need to handle the interrupt generated from that, but that should be simpler to figure out.
Thanks for ur reply
I am able to generate the interrupt for LVD.But i want to reset the ble when i get the lvd interrupt.
is CySoftwareReset(); API resetes the ble chip or not?
is there any other API to reset the BLE chip.
Thanks in advance.
The CySoftwareReset() API forces the PSoC to reboot. Thus the BLE radio gets reset too.
You can also manually stop/start the BLE radio too if you don't want to reset the whole processor/application, but CySoftwareReset() is the simplest solution.