I am using nRF52832 DK for testing beaconing and TWIM and TWIS. I am using SDK 14.2.0 S132 v5.1.0.
But, the final product would be using nRF52810. So, will the code that I use now on nRF52832 DK be usable without any modifications on nRF52810?
As described in the nRF52810 Product Brief v1.3, the peripherals of the nRF52810 is binary compatible with the nRF52832, and your peripheral code written for nRF52832 should also work on nRF52810. Note that the nRF52810 only have one TWIM/TWIS serial instance (they share the same base address), which means you can only use one of them at the time. On nRF52832, there are 2 instances, allowing you to use TWIM and TWIS at the same time.
When it comes to softdevices, s132 is currently not supported as a production softdevice on nRF52810. You will have to switch to s112 softdevice in your final product, as this is the supported production softdevice. Note that s112 is peripheral only softdevice, meaning you can't use the central/scanner features of s132 softdevice.
I have the same problem now. In my project I use. SI7051 temperature sensor. I have write a library for it and in the delelooper board. PCA10040 i have tested it. The system are working. But the finaly project I use the nrf52810 chip not the nrf52832. The Demo board the pins are and my project pins in the nrf52810 chip are different. I use this configuration.
// Arduino board mappings#define ARDUINO_SCL_PIN 25 // SCL signal (pin 27 for the nrf52810 demo board)#define ARDUINO_SDA_PIN 10 // SDA signal (pin 26 for the nrf52810 demo board)
My answere is:
The pins of nrf52810 are support the TWIM peripheral. Which document must looking to know this information?
Can you help me please it's important.
Hasan said:Which document must looking to know this information?
That would be the Product Specification.
in this document, I understand we can select any pin for TWI. Is that right SCL on pin P0.25 and SDA on pin P0.10 and woking on this pin.
You can use any pins for TWI(M) on all nRF52 series ICs, but you should avoid using pins located near the radio for high frequency IO, to get optimal performance from the radio. Also note that on nRF52832, GPIO P0.09 and P0.10 is used for NFC by default. If you use these for normal GPIOs, you need to set the preprocessor symbol CONFIG_NFCT_PINS_AS_GPIOS. The nRF52810 does not have the NFC peripheral, so this is not an issue.
Thanks for your answer. I have no try the preprocessor define. But It's not working. I have change my the pin 10 to pin 2 and its working now.
Where did you define the symbol?