Hi all,
I am new in nRF51822. Today I am doing experiment using GPIO and radio transmission. I wrote a very simple code as below:
int main(void) {
init_clock();
radio_configure();
transmit();
nrf_gpio_cfg_sense_input(8, NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH);
NRF_POWER->SYSTEMOFF = 1;
}
The first three functions are the same as in the example code from nrf51822.
In the experiment, I plan to make the chip go to system off sleep, and wakeup from the gpio interrupt. Accidentally, I connect the gpio pin with the 3V energy source, and the power pin of the chip is not connect with any energy source. But the program still runs, and the chip continuously transmits data (around 10 radio transmission per second).
So my questions are:
-
Why the chip can get power supply from gpio pin? And is this harmful to the chip?
-
If I set the chip to system off state, do I still need to init_clock() and radio_configure() before radio transmission after wakeup? Do the radio and clock setups retain in the memory after the wakeup from system off state?
-
In this code, I found that as long as I give the gpio pin a high voltage (2.5V), then the chip will wakeup. Could I set the wakeup voltage higher (eg. 3.5V), since I only want the chip wakeup from system off state when the gpio pin get a voltage larger than 3.5V?
Kind Regards!