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

NRF52832 use

Dear

i want to nrf52832 to collect accelaration sensor data(SPI communication 8MHZ). The sensor output datas per 250us,nrf52832 will lost the sensor interupt when 52832 connected with phone and connecting interval is per 20ms ? Or Lost connect?

Parents
  • Yes, you can have problems with concurrency of any peripheral such as SPI and BLE functionality! The only solution is to use EasyDMA enabled peripheral (and driver) and also making sure that your DMA transfer is longer then time which BLE stack needs to serve radio events. With 8MHz and only 255B buffers on DMA served SPIx peripheral on nRF52832 you will still have problems to achieve that and your hope might be only to utilize "array list" feature. Read about it in nRF52832 specification on Infocenter, search for SPI and array list Questions on this forum and look for examples in nRF5 SDK.

    But if your sensor only works in 250us "bursts" and cannot work with continuous SPI transfer (using array list on nRF52 side to have it longer then 255B and achieving some reasonable times for MCU to handle BLE stack operations) then you are pretty much doomed.

  • thanks for response!how long deal with radio event per onnected event?

Reply Children
No Data
Related