RSS
Sort by » date activity ▼ answers views votes

266 questions

Tagged
  • x
26
views
no
votes
no
answers
Last activity 2017-08-10 14:36:16 +0200 by anv

TWI. RXDREADY event signaled, TXDSENT - not.

I am trying to communicate with DS1307 (RTC) using TWI on nRF51822. I have configured the pins, address (0x68 fixed for DS1307), frequency and enabled TWI.

Now I am about to read the register 0x00 of the slave (DS1307) I ... (more)

478
views
no
votes
2
answers
Last activity 2017-08-10 11:52:24 +0200 by anv

Problem in twi/i2c communication receiving data

Hi<br> I'm trying to communicate between nrf51-DK and arduino using twi. I was able to send data from nrf51-DK to arduino using nrf_drv_twi_tx but when I'm trying to send the data from arduino to DK, I'm ... (more)

33
views
no
votes
no
answers
Last activity 2017-08-10 11:42:51 +0200 by All4here

PWM and TWI not working at the same time [closed]

Hello, i have Nrf52840, here is the code for PWM

APP_PWM_INSTANCE(PWM1, 1);

uint8_t cBuzzer::_PWM_init(uint32_t Time_uS){
app_pwm_uninit(&PWM1);
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(Time_uS, Buzzer_Pin);    
/* Initialize and enable PWM. */
if (app_pwm_init(&PWM1, &pwm1_cfg, NULL) != Successfully) {return Error ;}
app_pwm_enable(&PWM1);
return ...
(more)

37
views
no
votes
no
answers
Last activity 2017-08-10 08:44:22 +0200 by trigerion

nRF52 spurious resets with SDK12.2.0 - How to resolve?

Hello,

we have developed a solar powered LED module with an additional battery. It is based on the nrf52832. The WDT and TWI is mainly used and for BLE the soft device is applied. From time to time, the NRF ... (more)

50
views
1
vote
2
answers
Last activity 2017-08-08 10:18:13 +0200 by RK flag of Singapore

TWI HW producing shortened ACK clock pulse

Hi everyone,

we are trying to use the TWI interface of the nRF52832 to communicate with a TI BQ28Z610 fuel gauge, using the TWI driver of the nRF5_SDK_13.0. For the last few days we had seen always the same ... (more)

46
views
1
vote
1
answer
Last activity 2017-08-02 13:33:57 +0200 by Hung Bui

TWI locks on nRF51822 v3

hello,

i am experiencing issues with the TWI library on the smart beacon kit rev. 1.3.0 which features the v3 of the nRF51822. i had the same experience on the new nRF52840(preview devkit) but it is not ... (more)

62
views
no
votes
no
answers
Last activity 2017-08-02 03:50:02 +0200 by dawsonc

How to determine if peripheral has been initialized

Hello,

I'm working on an application in which I have to dynamically switch between a TWI master peripheral and SPI master peripheral that use the same peripheral ID (our application requires this, since we need the extra buses). Is ... (more)

111
views
3
votes
3
answers
Last activity 2017-07-28 18:32:17 +0200 by Cooper

nrf52832 use specific pin assignment can cause twi function not working

Hi

I found a strange issue on nrf52832. And I use nRF5-SDK-v13.1.0.

When I assignment P0.7->SCL & P0.6->SDA, the twi function not working. But I change the assignment to P0.6->SCL & P0.7->SDA ... (more)

144
views
1
vote
2
answers
Last activity 2017-07-27 17:42:04 +0200 by Cooper

TWI SCL and SDA pins 7 and 6 not working on NRF52

Hello,

I built a simple I2C application for the LMP91000 and I was successfully able to configure it to read the status register.

However, I tested to see if I could use pin 6 and 7 for SCL and SDA ... (more)

66
views
no
votes
no
answers
Last activity 2017-07-27 13:52:46 +0200 by omar

NRF 52 GY-87

Hi,i m working in uav project with nr52 and GY-87 that contains mpu6050 and hmc8553 as sensor. i use i2clib to do connexion with twi created by jeff rowberg, then i wrote an mpu6050 library that worked vey well ... (more)

82
views
no
votes
1
answer
Last activity 2017-07-26 14:44:21 +0200 by Kristin flag of Norway

want to write and read data to/from Flash?

I want to add some configuration files to nrf52, so can I write data in flash and read when I want.......I have the example code of twi master_twi slave but it engages the pin so I need a separate ... (more)

43
views
1
vote
1
answer
Last activity 2017-07-25 21:04:08 +0200 by zolotiyeruki

TWI doesn't work when a handler is set

I'm learning how to use TWI with the nRF52 PDK, and I have it connected to a LSM6DS3 module for testing.

When initializing the TWI, if I use the following line, it works great:

ret_code_t err_code = nrf_drv_twi_init(&m_twi, &twi_config ...
(more)

42
views
no
votes
no
answers
Last activity 2017-07-21 09:34:24 +0200 by Jørgen Holmefjord flag of Norway

I am running MCP9808 on NRF52 EVB, i have this following program which is not giving the correct values on terminal display

I have this program running on KEIL 5, what could be the problem with the code and Do you guys have any sample code for mcp9808? Note- I am using the wired connection not a Bluetooth app to sense the ... (more)

59
views
1
vote
2
answers
Last activity 2017-07-19 07:26:10 +0200 by Michal

TWI stops working - SDA bus always LOW

Hi!

I'm developing a project with nrf52832 and I'm getting some problems. The micro is only communicating with an accelerometer (MMA8453) and after some time the communication stops. Using a digital analyzer is possible observe that the SDA ... (more)

90
views
1
vote
no
answers
Last activity 2017-07-17 13:16:49 +0200 by Stian flag of Norway

TWI bus freeze after several thousand tx/rx cycles

I'm periodically polling a TWI sensor with a blocking call, as in

ret_code_t err_code;
m_xfer_done = false;

err_code = nrf_drv_twi_tx(&i2c, address, subAddress, 1, true);
APP_ERROR_CHECK(err_code);
while (m_xfer_done == false) {};

if (err_code == NRF_SUCCESS) {
        m_xfer_done = false;
        err_code = nrf_drv_twi_rx(&i2c, address, dest, count ...
(more)

44
views
no
votes
2
answers
Last activity 2017-07-17 08:02:15 +0200 by Martin Børs-Lind flag of Norway

How to use TWI with BLE to transfer MPU6050 data

Hi,

I am developing on NRF51822 custom board but I had a problem on how to init TWI driver to communicate with MPU6050.

In short, when receiving a BLE_CONNECTED event I trigger a TIMER wih rearming every 2second. Within the ... (more)

24
views
1
vote
1
answer
Last activity 2017-07-13 16:03:06 +0200 by Jørgen Holmefjord flag of Norway

Can we interface smbus based sensor with NRF51/52 ?

Hi,

Can we interface a smbus based sensor with NRF51 or NRF52? The only difference between smbus and TWI is the minimum speed requirement which is 10Khz if I am correct.

83
views
1
vote
1
answer
Last activity 2017-07-11 11:00:35 +0200 by Jørgen Holmefjord flag of Norway

Can we connect two I2C(TWI) masters at same time to nrf52?

I am specific about master as I have to connect two simultaneously(obviously to two different pins pair). Plz provide any code outline if you have, Thank you in Advance

43
views
no
votes
1
answer
Last activity 2017-06-29 08:44:13 +0200 by Martin Børs-Lind flag of Norway

TWIM (i2c) SCL clock is half the expected frequency

On nRF52, I see that 100 kHz gives a SCL period of 10 us which is correct but for 250 kHz, I get 8 us instead of expected 4 us. Similarly, for 400 kHz I only see 5 us instead ... (more)

74
views
no
votes
3
answers
Last activity 2017-06-28 15:36:53 +0200 by Martin Børs-Lind flag of Norway

twi, mpu650 + hmc5883l

HI, i m beginner in TWI with nrf52832. i want to write a bit in a registre of hmc5883l but i didnt succeed. what i want to do is :

writeByte(devAddr, regAddr, b) ==> ( 0x1E,0x37,1)

tgis my own code ... (more)

74
views
no
votes
1
answer
Last activity 2017-06-27 03:46:44 +0200 by Nguyen Hoan Hoang flag of Canada

Managing multiple SPI and TWI peripherals

Hello,

I'm working on an application where we have a number of sensors and a radio that each require a connection to the nRF52. Specifically, 4 of these peripherals need a SPI connection to the nRF52 and one needs ... (more)

73
views
no
votes
no
answers
Last activity 2017-06-22 13:27:39 +0200 by Jørn flag of Norway

In the MPU6050 module, when the ACC, GYRO data update, INT pin can not produce interrupt signal

NRF52832 S132 MPU6050 TWI

I want to finish the function:

  1. When the ACC, GYRO data update, the INT pin to generate an interrupt, and then in the P026 pin configuration falling edge trigger GPIOTE interrupt,and then read the ACC ...
(more)

45
views
no
votes
1
answer
Last activity 2017-06-22 12:18:32 +0200 by Jørgen Holmefjord flag of Norway

Can nRF52 SDK TWI master write a series of registers

I want to save precious CPU cycles by writing 40 i2c (TWI) registers in one shot. Can I somehow set up the TWI master to write 40 registers (each 16-byte address with 8-bit data)?

Further, can this be done for ... (more)

31
views
no
votes
no
answers
Last activity 2017-06-22 05:56:37 +0200 by Garen

On the mpu6050 module, the configuration Data y Ready interrupt is not successful [closed]

NRF52832 S132 MPU6050 TWI
I want to finish the function:
1. When the ACC, GYRO data update, the INT pin to generate an interrupt, and then in the P026 pin configuration falling edge trigger GPIOTE interrupt,and then read the ...
(more)

117
views
1
vote
1
answer
Last activity 2017-06-20 13:16:19 +0200 by Sigurd flag of Norway

Combining examples in SDK13

Hello,

I have a problem while combining peripheral examples in SDK13. I am trying to combine twi_sensor and uart but when I do this in uart folder, compiler gives following error:

> Linking target: _build/nrf52832_xxaa.out

> _build/nrf52832_xxaa_main.c.o ...
(more)

234
views
2
votes
1
answer
Last activity 2017-06-20 11:47:24 +0200 by omar

Reading from HMC5883L using I2C

Hi,

I am currently in the process of interfacing the HMC5883L magnetometer with my nrf52 development board. I have verified the connection to be working using a logic analyzer. Furthermore, I have configured the sensor according to another post made ... (more)

79
views
2
votes
1
answer
Last activity 2017-06-20 09:20:31 +0200 by Jørgen Holmefjord flag of Norway

TWI sensor over UART on nrf52832

Hello,

Now, I am merging my UART code with the TWI sensor example (I use SDK 13). Now my error after compiling the code is:

In file included from ../../../../../../components/libraries/util/app_error.h:57:0,
                 from ../../../../../../components/libraries/util ...
(more)

60
views
no
votes
no
answers
Last activity 2017-06-15 18:01:13 +0200 by omar

Problem with implementation of bluetooth code (nRF52832)

When I use the example code 'ble_app_uart_pca10040_s132', I don't kwow why the program is not implemented in the nRF82532. Thank you for your help !

87
views
no
votes
no
answers
Last activity 2017-06-13 21:31:44 +0200 by Justas

twi busy error 17

Hello guys, i randomly get twi error busy 17.

i have #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7 in sdk_config.h and .interrupt_priority = APP_IRQ_PRIORITY_LOW in init function.

This is my code:

void twi_init(void)
{
  if(twi_init_status) return;
  ret_code_t err_code;

  const nrf_drv_twi_config_t twi_mma_7660_config = {
    .scl                = SCL ...
(more)

38
views
no
votes
no
answers
Last activity 2017-06-13 15:15:41 +0200 by Mariano

No TWI event in NRF52 SD132, SDK11 and FREERTOS [closed]

Hi there, I'm porting an app from NRF51 SD130 to NRF52 SD132, both with sdk11. I do the usual stuff, like changing includes, freertos ports libraries, etc, and everything was working... Until TWI.

I'm using twi no DMA ... (more)

Statistics

  • Total users: 23740
  • Latest user: Gretta Fusco
  • Resolved questions: 10097
  • Unanswered questions: 3087
  • Total questions: 24462