This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to access the RAM of nrf52832

Now I want to access the RAM of nrf52832 with pdm digital microphone, I need to put the RAM data to the RF data buffer,is there any good way to slove the problem? Accroding to the datasheet,the PCM sampes is 16-bit,so is there any need to change it to two bytes? Then I can translate the data through the RF(2.4G)?

  • Hi,

    The PDM can use EasyDMA to store samples directly in a buffer at a RAM location of your choise. You can then use EasyDMA implemented in the radio to read out the same data from the same RAM location. You don't need to worry about the bit width of the samples as long as your receiving device knows how to interpret the incoming data.

    Note however, that only one peripheral can access the same RAM block at a time so you will need to implement a mechanism that ensures that the PDM fills a buffer in a certain RAM block before the radio reads the data. It is possible to reconfigure the PDM and radio to write/read to/from different RAM blocks at run-time allowing you to switch back and forth between two places in RAM located in different RAM blocks.

Related