This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why the ESB PTX Example does't have any clock config

The Enhanced ShockBurst PTX Project just inits the ESB and start transmitting without ever configing either of the 16MHz or 32kHz clocks (none that I can see at least).

Questions:

  1. Seems like both the 16MHz and the 32kHz clocks are disabled. True?

  2. What clock is ESB running from then? Does it auto init the 16MHz clock?

  3. As long as I use a peripheral like SPI-Slave, or GPIOs, I should not need any clock running?

  4. If neither clock is running, how does this affect my power consumption? Should be super-low if I don't transmit anything, and just _WFI() until I receive on SPI-Salve, correct?

Thanks

    1. No, the 16 Mhz will be started by the ESB library when needed. It's hidden inside the library functions, but if you probe on the crystal, you'll see that it's started when the radio is transmitting. The 32 kHz is not needed for radio operation and will only be started if you need it from your application.
    2. Internal 16 Mhz RC oscillator for the MCU and external 16 MHz will be enabled when radio need it.
    3. Yes, SPI requires 16 MHz. You can request it to be started when you need it.
    4. You want to power down as soon as possible to save power. Powering down also means shutting down the clock sources. If you want to use the 32 kHz as a RTC source, that would be the lowest power consuming way to implement wakeup on timer.
Related