Author |
Message |
Topic: i2c_transfer_in() stucks in read out loop |
FloDu
Replies: 9
Views: 2236
|
Forum: General CCS C Discussion Posted: Tue Sep 24, 2024 12:26 am Subject: i2c_transfer_in() stucks in read out loop |
Hi,
of course I'm writing the register before reading data from the device (see my code listing in the first post). However the master should stop the read transaction after the given count of byte ... |
Topic: i2c_transfer_in() stucks in read out loop |
FloDu
Replies: 9
Views: 2236
|
Forum: General CCS C Discussion Posted: Mon Sep 23, 2024 9:39 am Subject: i2c_transfer_in() stucks in read out loop |
Hey Ttelmah,
I double checked this and figured out that the correct registers are accessed. I was confused by the alias, but the BSR is loaded with 2, so the correct registers are accessed.
As I d ... |
Topic: i2c_transfer_in() stucks in read out loop |
FloDu
Replies: 9
Views: 2236
|
Forum: General CCS C Discussion Posted: Mon Sep 23, 2024 6:25 am Subject: i2c_transfer_in() stucks in read out loop |
Hey,
I created a new project which only reads in data over i2c. Using the FORCE_SW it is still working. But if I change to FORCE_HW, I see the same behaviour as in my production project.
The big ... |
Topic: i2c_transfer_in() stucks in read out loop |
FloDu
Replies: 9
Views: 2236
|
Forum: General CCS C Discussion Posted: Wed Sep 18, 2024 8:10 am Subject: i2c_transfer_in() stucks in read out loop |
Hey, thanks for oyu reply. Sorry for the missing information. I use the compiler V5.115.
I tried both variants of length, the payload length + one byte for the address and only the payload length. It ... |
Topic: i2c_transfer_in() stucks in read out loop |
FloDu
Replies: 9
Views: 2236
|
Forum: General CCS C Discussion Posted: Wed Sep 18, 2024 6:24 am Subject: i2c_transfer_in() stucks in read out loop |
Hey guys,
I'm trying to write and read data over I2C FORCE_HW on a PIC18F27Q43 and the CCS 5v115. The code is running perfectly using the FORCE_SW directive with the i2c_start, i2c_write, i2c_read, ... |
|