Hi,
As well know, nRF52832 have more then one SPI and TWI interface.
How can I use SPI and TWI interface in the same program? for example, use SPI-0 and TWI-1.
Thank you,
Ives
Hi,
As well know, nRF52832 have more then one SPI and TWI interface.
How can I use SPI and TWI interface in the same program? for example, use SPI-0 and TWI-1.
Thank you,
Ives
Hi,
The easiest approach is to merge the example projects in the SDK together. For example twi_scanner + SPIM example.
best regards
Jared
Hi,
The easiest approach is to merge the example projects in the SDK together. For example twi_scanner + SPIM example.
best regards
Jared
Hi,
Thank you for your answer and example code.
If I want change twi or SPIM to 2nd interface, how can I modify config-file and source code?
Thank you
By interface you mean instance?
Hi,
If I want change SPI interface to SPI-1, then I need modify the "SPI_INSTANCE" to 1?
How to change the setting of config file?
Does I need change "event handle" function?
Thank you
You need to change this part in the example code:

And enable it in the sdk_config file:

Hi,
Thank you for your answer.
But I can not found NRFX_SPIM3_ENABLE define in sdk_ovnfig.h.
Please found the attach file
Thank you