RSS
Sort by » date activity ▼ answers views votes

13 questions

Tagged
  • x
41
views
no
votes
1
answer
Last activity 2017-12-08 16:40:40 +0200 by Jørgen Holmefjord flag of Norway

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
answer
Last activity 2017-12-05 18:19:17 +0200 by Martin Børs-Lind flag of Norway

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
answers
Last activity 2017-12-02 20:15:57 +0200 by Jems

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
votes
1
answer
Last activity 2017-11-30 15:15:50 +0200 by Jørn flag of Norway

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
votes
no
answers
Last activity 2017-10-03 23:36:55 +0200 by Shahid Ali Nadaf

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
votes
1
answer
Last activity 2017-09-27 22:47:39 +0200 by tanekaf

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
votes
2
answers
Last activity 2017-06-02 12:41:56 +0200 by BosseSand

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

Hello all,

I am trying to make use of some Adafruit libraries for some sensors in my nrF52pca10040, the libraries are these twoAdafruit_BME280.cpp, Adafruit_BME280.h and Adafruit_TSL2591.h,Adafruit_TSL2591.cpp

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

137
views
2
votes
1
answer
Last activity 2017-04-27 09:56:56 +0200 by Daniel Sullivan

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
answer
Last activity 2017-03-28 23:15:49 +0200 by John DeWitt flag of United States

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
answer
Last activity 2017-02-27 15:04:07 +0200 by Jørgen Holmefjord flag of Norway

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
votes
1
answer
Last activity 2016-11-23 15:00:36 +0200 by Stian flag of Norway

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
answer
Last activity 2016-10-20 13:17:20 +0200 by Jørgen Holmefjord flag of Norway

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
answer
Last activity 2016-10-17 19:30:25 +0200 by AmiguelS

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
  • Unanswered questions: 3823
  • Total questions: 27855

User menu

    or sign up

Recent questions