nRF5340 audio DK SPI Configuration

Hi,

I am using nRF5340 audio DK PCA10121. The information from  product specs, DK schematic and suggestions from this forum for nRF5340 do not align. Here are my notes:

From nRF5340_Objective Product Specs_v0.5.pdf, section 9.1 Pin Assignments, SPIM2 has:

SCK - P0.08

MOSI - P0.09

MISO - P0.10

Question 1 - does this mean SPIM0 and SPIM1 is not available to use? Figure 1: Simplified block diagram shows SPIM0..2?

From other post in this forum, the example of nrf5349 overlay is:

&spi1 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    sck-pin = <10>;
    mosi-pin = <11>;
    miso-pin = <12>;
};

Question 2 - How do I translate from P0.08 to decimal pin number as in overlay example (10, 11, 12, etc)?

I reviewed PCA10121_Schematic_And_PCB.pdf, I can't tell which SPI and pins are available for external communication. I want to use nRF5340 SPIM0..2 to Semtech SX1262.

Question 3 - Which SPIM is recommended to use for SPI mater to Semtech SX1262?

Thanks

Parents
  • Hi,

    From nRF5340_Objective Product Specs_v0.5.pdf

    You refer to the objective product specification (OPS), which was an incomplete specification used before the chip entered mass production. You should refer to the latest product specification instead for updated and correct information (the latest is 1.3).

    Question 1 - does this mean SPIM0 and SPIM1 is not available to use? Figure 1: Simplified block diagram shows SPIM0..2?

    No. There are 4 SPIM instances (0-3) that are available from the application core and 1 form the network core. You should see that in the latest product specification. There is an internal pin crossbar that makes it so that you can use any available GPIO pins at your discretion. The only exception is that if you are using SPIM4 in high speed mode (32 MHz), you will need to use the specific pins described under Pin assignments.

    Question 2 - How do I translate from P0.08 to decimal pin number as in overlay example (10, 11, 12, etc)?

    This is decimal numbers. P0.08 means GPIO port 0, pin 8. If it has been P0.11 it would be GPIO port 0 pin 11. The only special case is for port 1, where you add 32. So for instance P1.02 translates to 32+2 = 34.

    Question 3 - Which SPIM is recommended to use for SPI mater to Semtech SX1262?

    That depend son the speed. For "normal" speeds, any will do. If you need high speed, you need to use SPIM4 and the dedicated high speed pins.

Reply
  • Hi,

    From nRF5340_Objective Product Specs_v0.5.pdf

    You refer to the objective product specification (OPS), which was an incomplete specification used before the chip entered mass production. You should refer to the latest product specification instead for updated and correct information (the latest is 1.3).

    Question 1 - does this mean SPIM0 and SPIM1 is not available to use? Figure 1: Simplified block diagram shows SPIM0..2?

    No. There are 4 SPIM instances (0-3) that are available from the application core and 1 form the network core. You should see that in the latest product specification. There is an internal pin crossbar that makes it so that you can use any available GPIO pins at your discretion. The only exception is that if you are using SPIM4 in high speed mode (32 MHz), you will need to use the specific pins described under Pin assignments.

    Question 2 - How do I translate from P0.08 to decimal pin number as in overlay example (10, 11, 12, etc)?

    This is decimal numbers. P0.08 means GPIO port 0, pin 8. If it has been P0.11 it would be GPIO port 0 pin 11. The only special case is for port 1, where you add 32. So for instance P1.02 translates to 32+2 = 34.

    Question 3 - Which SPIM is recommended to use for SPI mater to Semtech SX1262?

    That depend son the speed. For "normal" speeds, any will do. If you need high speed, you need to use SPIM4 and the dedicated high speed pins.

Children
No Data
Related