nRF52832, ports/GPIOs x internal peripherals, ports/GPIOs x wakeup from sleep, plus general HW doubts

Hi.

In my current project with nRF52832, I have used the following port pins to connect it to an accelerometer and a SPI flash memory:

I would like to ask, get opinions about:

(1) If all internal signals of all serial peripherals like SPIs, I2Cs and UARTS can be configured in firmware to be connected to any port/GPIO pin.

(2) If any port/GPIO pin can be used to wakeup the MCU from sleep mode through logic level changes on the pins.

(3) The number of SPI peripherals? The number of I2C peripherals? The number of UART peripherals? And if they are shared? This is for future designs.

(4) If the schematic above is ok, regarding the 4-wire SPI signals of the 2 SPIs interfaces being connected to the nRF52832 pins P0.11~P0.14 and P0.17~P0.20, and if the INT1/INT2 push-pull outputs of the accelerometer which are connected to P0.15 and P0.16 can wakeup the nRF52832 from sleep mode through logic level changes on these pins.

(5) By connecting the two SPI interface signals to the pins shown in the schematic above I'm following the recommendation from the nRF52832 Product Specification (shown below), which recommends the use of signals <=10KHz for ports P0.22 to P0.31, that are nearby radio signals or related. Actually all these pins are not used in my current design.

(6) P0.25 and P0.26 were connected to GND as a workaround, this was recommnded to me by Nordic support in past.

(7) What is the positive reference of the analog inputs / ADC? That is, for which input voltage the ADC result will have its maximum value? And what is the resolution (bits) of the ADC?

(8) In which situations is really needed the use of an external 32.768KHz crystal oscilator? Please correct me if I'm wrong with such statement: the nRF52832 has an internal "not-high-precision-low-frequency-oscillator" which can be used by its internal RTC to wakeup the MCU from sleep periodically or in a predefined interval/period/seconds/minutes/hours to ahead.


Regards,
Jeferson Pehls.

Parents
  • Hi Jeferson

    1. Yes, but please note that some of the GPIOs are configured for other usage by default, like the P0.09 and P0.10 are configured as NFCT pins, and P0.21 is configured as a RESET pin. However these can be configured as GPIOs as well if you'd like.

    2. Yes, you can also configure any GPIO as the wake-up pin. 

    3. The number of each peripheral instance on the nRF52832 are listed in the product specification. I also attached them below:

     

    And yes, some of them are shared. This can be found in section 15.2 Peripherals with shared ID in the product specifciation.

    4. Yes, what I can see of your schematic looks okay. 

    5. Indeed, no problem there. These pins can be used at higher frequencies too, just not at the same time as the radio is running.

    7. Again, please refer to the product specification section 37 SAADC.

    8. Indeed, it has an internal RC oscillator that is fine for most uses, but you will get higher accuracy and lower current consumption by including an external 32.768 kHz crystal in your design. It is not needed for using any of the peripherals or features specifically AFAIK.

    Best regards,

    Simon

  • Hello Simon.

    Thank you very much.

    Another question.

    (9) Which GPIOs of nRF52832 can be used to generate interrupts through logic level change on the pin? ('0' to '1' or '1' to '0'). Any GPIO?

    Regards.

    Jeferson Pehls.

Reply Children
No Data
Related