Enable SPIM on nRF52840
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Fanton
- Posts: 4
- Joined: Tue Jun 29, 2021 3:18 am
Enable SPIM on nRF52840
Hi all! How to enable SPIM3 to work with Adafruit nrf52840 ? I can`t get more than 8MHZ on SPI_MODE_2. How to enable it?
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Enable SPIM on nRF52840
@Fanton,
Interesting thread on the nordic site with someone using Adafruit Feather nRF52840 controller. They were getting SPI3 to work with a 15pF cap on the MOSI line.
https://devzone.nordicsemi.com/f/nordic ... or-to-work
It also ends with the suggestion of setting the driver strength to high before initialization.
Interesting thread on the nordic site with someone using Adafruit Feather nRF52840 controller. They were getting SPI3 to work with a 15pF cap on the MOSI line.
https://devzone.nordicsemi.com/f/nordic ... or-to-work
It also ends with the suggestion of setting the driver strength to high before initialization.
- Fanton
- Posts: 4
- Joined: Tue Jun 29, 2021 3:18 am
Re: Enable SPIM on nRF52840
@mikeysklar Unfortunately adding 15pF didn't fix the problem. The maximum speed remains the same - 8MHz. Most likely this is a problem with the Adafruit_nRF52_Arduino package, but I don't know how to fix this problem yet.
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Enable SPIM on nRF52840
@Fanton,
Have you reviewed these github issue related to spim? #351 has some working demo code.
https://github.com/adafruit/Adafruit_nR ... issues/351
https://github.com/adafruit/Adafruit_nR ... o/pull/360
https://github.com/tinygo-org/tinygo/issues/1298
Have you reviewed these github issue related to spim? #351 has some working demo code.
https://github.com/adafruit/Adafruit_nR ... issues/351
https://github.com/adafruit/Adafruit_nR ... o/pull/360
https://github.com/tinygo-org/tinygo/issues/1298
Please be positive and constructive with your questions and comments.