toggle quoted messageShow quoted text
Thanks for the reply.
and for interrupt on gpio, what should I set?
I mean numbers associated with pins
for e.g. P0.03 - SCK
CONFIG_SPIM0_NRF52_GPIO_SCK_PIN = 3 ?
On 03/29/2018 01:11 PM, Lasończyk, Karol wrote:
Well, You can use for example:
P0.03 - SCK
P0.04 - SO
P0.28 - SI
P0.29 - CS
P0.30 - INT
SPI pins are settable in config menu.
To catch interrupt on P0.30 pin You can use gpio driver. I see that pin can be configured in gpio driver to generate interrupt on particular edge.
There are no dedicated pins for SPI in nRF devices. You can use any of available pins. Of course remember that LED or something else can be connected to the particular pin. Pins suggested by me are safe.
I advise to start with slower clock frequency like 1MHz and increase it when everything will work properly.
From: Cufi, Carles
Sent: Thursday, March 29, 2018 10:45 AM
To: Ravi kumar Veeramally <ravikumar.veeramally@...>; zephyr-devel@...; Lasończyk, Karol <Karol.Lasonczyk@...>; Głąbek, Andrzej <Andrzej.Glabek@...>
Subject: Re: [Zephyr-devel] nrf52840 + enc28j60 setup
+ Karol and Andrzej in case they can help out with info.
On 29/03/2018, 10:24, "zephyr-devel-bounces@... on behalf of Ravi kumar Veeramally" <zephyr-devel-bounces@... on behalf of ravikumar.veeramally@...> wrote:
I am experimenting nrf52840 + enc28j60 (ethernet controller). I am trying to
connect to some ports on board to provide spi functionality, need help in
enabling this setup.
Details about ENC28J60 board are here. I need pin numbers on nrf52 board
and SPI configuration setup.
NRF52840 PCA10056 ENC28J60 (pin numbers on the board)
PIN SCK (1)
PIN SO (3)
PIN SI (2)
PIN CS (7)
PIN INT (5)
VDD VCC (10)
GND GND (9)
Which pins to use and how to configure them?
Thanks in advance,
Zephyr-devel mailing list