Maximum PDM clock frequency supported by nRF5340

Hi,

We wanted to implement nRF5340 with our ultrasonic microphone SPH0641LU4H-1 (https://www.knowles.com/docs/default-source/model-downloads/sph0641lu4h-1-revb.pdf?Status=Master&sfvrsn=bdc077b1_4) to sample 80kHz data. To understand the capabilities, can you support us with -

1. Can we achieve PDM clock frequency of 4.8 MHz to run the sensor in ultrasonic mode?

2. Can we sample 80kHz data at a ratio of 64? If not, what is the maximum sampling rate we can achieve?

3. How much RAM and flash will be acquired to store 80 kHz data for 1 second?

Thanks & BR,

Ankit M

  • Hi Ankit,

    1. The nRF5340 supports Pulse Density Modulation (PDM) and can generate the PDM clock. However, based on the information provided in the nRF5340 Product Specification and nRFx PDM HAL, the maximum PDM clock frequency supported is 1.333 MHz. Therefore, achieving a PDM clock frequency of 4.8 MHz as required by your ultrasonic microphone may not be possible with the nRF5340.
    2. The nRF5340 supports a selectable ratio of 64 or 80 between PDM_CLK and output sample rate as per the PDM Product Specification. However, given the maximum PDM clock frequency of 1.333 MHz, the maximum achievable sampling rate would be approximately 20.8 kHz (1.333 MHz / 64) which is less than the 80 kHz you require.
    3. The amount of RAM and flash required to store 80 kHz data for 1 second would depend on the bit depth of the data. For example, if each sample is 16 bits (2 bytes), you would need approximately 160 KB of memory (80,000 samples/second * 2 bytes/sample) to store 1 second of data.
  • Thank you for the quick response!

    1. As shown in spec sheet, 1.333 MHz is highest but is this from 32MHz peripheral clock or Audio PLL clock?

    2. As per the driver provided by Nordic, 1.333 MHz can be set as maximum. Can we configure the driver to achieve the 4.8 MHz frequency as the equation of PDMCLKCTRL can provide the register value needed to operate at the desired frequency?

    3. Can you provide the updated library to change the PDM clock frequency to 4.8 MHz if the driver can be updated?

    Thanks,

    Ankit

  • The ratio register can only take values 64 or 80, so only very limited amount of PDM clock frequencies are achievable here. By the understanding of the documentation, changing the driver does not change the hardware limitation of getting a maximum of 1.333MHz of PDM clock.

  • Thank you for your valuable input on the PDM part.

    I have a separate enquiry regarding the BLE range provided by NRF5340. I happened to go by your blogs from 2 years back on NRF52840 range testing and have used the same IC in one of our products, but dont seem to find enough data now on NRF5340's max BLE range at 3dBm.

    Can you help to understand how much range can I achieve with NRF5340 at 3dBm power in LE_CODED 125kbps mode?

    Is there any calculator or equations to find out the same?

  • Ankit Mallick said:
    Can you help to understand how much range can I achieve with NRF5340 at 3dBm power in LE_CODED 125kbps mode?

    Ankit, 

    I tested and wrote the blog, that you are mentioning above. Unfortunately, we did not test this with nRF53 yet. 

    But we can try to calculate this, as we know that " every 6-dBm increase in output power doubles the possible distance that is achievable"

    On nRf52840, you have these radio sensitivity. 

    • -103 dBm sensitivity in 125 kbps Bluetooth low energy mode (long range)
    • -20 to +8 dBm TX power, configurable in 4 dB steps

    On nRF5340. 

    • -104 dBm sensitivity in 125 kbps Bluetooth Low Energy mode (long range)
    • -40 dBm to +3 dBm configurable TX power

    There is a slight improvement in the RX sensitivity in nRF53 but a bit of less TX power. 

    So if you do the same test I did with same TX power as nRF52840 and measuring distance, you will get slightly more distance on nRF5340 just because of slightly better radio rx sensitivity. 

    But since you cannot do the 8 dBm TX power on nRF5340, you wont be able to do that test on it to compare it with nRF52840.

Related