13 questions

Tagged
• x
41
views
no
1

Why isn't nrf_drv_twi_xfer() working configured like this?

Hello,

I am using NRF52 TWI master to read data from my sensor, I have read the twi_sensor example but it doesn't make use of nrf_drv_twi_xfer().

My question is quite straightforward, I have noticed that my settings to use ... (more)

34
views
1
vote
1

TWI Stuck in nrf_twim_event_check using peripheral sensor.

Greetings, we're currently working in an application where we need to connect different peripherals to a nrf52832 for a wearable device. Each of these peripherals uses a different communication protocol, we are using the following peripherals with the respective ... (more)

52
views
1
vote
2

TWI: P0.30(SCL) and P0.31 (SDA) I2C with nRF52832

Hi,

I'd just start developping with the nRF52832 and I would like to communicate with a sensor using the I2C protocol. Has I am a stranger with the nordic uC, I would like to know if I can choose ... (more)

27
views
3
1

How can I use ERR_TO_STR_TWI() macro?

Hello,

I would like to understand how can I make use of the macro ERR_TO_STR_TWI in order to know what error is being given by my TWI module function.

I have tried something like this

  err_code = nrf_drv_twi_rx(&twi, reg_addr, rxData ...
(more)

103
views
no
no

Read register issue using nrf52 TWI

Hi ,

I have recently bought a nRF5232 PCA10040 development kit and i am trying to interface nRf52832 development kit(Master) with AS3955(slave) over twi. I tested the twi_scanner example and AS3955 responds with correct slave address(i.e 0x50 ... (more)

117
views
no
1

TWI and 11-bit I2C slave address devices

Hi. We are attempting to use the Infineon XMC1202 LED shield with our NRF52 device. The XMC1202 has an I2C address of 0x15E, instead of the traditional 7 bit address. We have been using the simple non-blocking TWI implementation to ... (more)

341
views
4
2

How can I reuse this library into TWI library in nrF52?

Hello all,

They both make use of either SPI or ... (more)

137
views
2
1

Always getting NCK. [closed]

Hi,

I'm trying to control LSM6DS3 by TWI communication. Slave address of the chip is 0xD4 when SDO/SA0 pin is low.

I'm using SDK13.0.0.

My code is like below.

ret_code_t err_code;

uint8_t flag=0;
uint8_t ...
(more)

288
views
1
vote
1

Power consumption for nrf52 with TWI & GPIOTE [closed]

Hi,

I have an issue about power consumption with a board nrf52 10040. The consumption should be 100µA but is 500µA. I found an errata about that in 'http://infocenter.nordicsemi.com/pdf/nRF52832_Engineering_C_Errata_v1.5.pdf' (3.27).

I tried ... (more)

160
views
1
vote
1

Write command for HRMI board using TWI

Hello,

I am trying to implement a Heart Rate Monitor Interface (HRMI) board with my nRF52, using the TWI_sensor example from SDK 12.2. I am running into trouble Writing to commands to the peripheral I2C address. Here is the ... (more)

185
views
no
1

i2c/twi detup on register level

Hello I'm trying to setup i2c/twi communication between nrf52832 with oled driver SH1107 but i need to do it in hardware instead of software but on the register level.

void initI2c()
{
NRF_TWIM0->SHORTS = 0x00001780;
NRF_TWIM0->INTEN = 0x019C0022;
NRF_TWIM0- ...
(more)

193
views
1
vote
1

BLE not advertising when TWI pins are changed

Hi devs,

I am working in an nRF52 DK. The attached example is not working when I change the SCL and SDA pins of TWI1 module. This is also not working if I disable TWI1 and enable TWI0!! The device ... (more)

212
views
1
vote
1

I2C code conversion help needed

Hi,

I need to read data from MLX90615. It is a temperature sensor which follows I2C to read data. I got a sample code for this which is given below.

float receiveTemperature(int Temperature_type) {
int dev = (0x5B << 1);                               // 5B is ...
(more)

Statistics

• Total users: 25687
• Latest user: Kristy Haris
• Resolved questions: 11282
• Total questions: 27855

Recent blog posts

• nrF52 Tutorial: ETM Instruction Trace with Keil MDK

Posted 2017-12-15 11:15:34 by Bob Boys
• One minute to understand BLE advertising data package

Posted 2017-12-15 07:30:51 by viewtool
• One minute to understand BLE connection data package

Posted 2017-12-15 07:10:49 by viewtool
• One minute to understand BLE MTU data package

Posted 2017-12-15 04:09:47 by viewtool
• Debugging on nrf52840 with GDB from CLI on linux

Posted 2017-12-14 14:02:03 by jfcamel

Recent questions

• Send multiple nus packages once

Posted 2017-12-16 11:11:00 by Jax VierMTech
• I can't get 4 channel PWM output

Posted 2017-12-16 07:38:24 by NRF CODER
• scan response packet in non connectable mode.

Posted 2017-12-16 07:07:09 by Rahul Sahu
• send and receive data over BLE

Posted 2017-12-16 06:15:23 by Rahul
• Unique access address BLE - uart ble example

Posted 2017-12-16 04:59:24 by Ali97