CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 17 matches
CCS Forum Index
Author Message
  Topic: Problem with hanging I2C bus.
monsun

Replies: 3
Views: 13069

PostForum: General CCS C Discussion   Posted: Wed Apr 07, 2021 6:55 am   Subject: Problem with hanging I2C bus.
Is there any way to distinguish those two states?
"The first is where the slave has missed something, the second is where the slave is holding the clock."
Slave is working as sensor front ...
  Topic: Problem with hanging I2C bus.
monsun

Replies: 3
Views: 13069

PostForum: General CCS C Discussion   Posted: Wed Apr 07, 2021 6:17 am   Subject: Problem with hanging I2C bus.
Hello everyone,
I've two devices slave with PIC24FV16KM202 and master with PIC24FV32KA304

compiler 5.093

master is using crystal 14745600Hz
slave is using internal osc on 8MHz


Line is lon ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2020 5:04 pm   Subject: I2C Slave problem from >5.085
Thank you guys for help with debugging, this is AFE pcb for sensors which in standard works on battery but have also software on PC to make some service adjustments. Working clock have to be pretty fa ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2020 8:15 am   Subject: I2C Slave problem from >5.085
I've moved
void i2c_isr(){
//! UNSIGNED int8 incoming,state;
state=i2c_isr_state(I2C_PORT2);
those variables declaration out of interrupt to global area and now it looks ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2020 8:04 am   Subject: I2C Slave problem from >5.085
OK, i've thought i made mistake with this clock and that's the reason i changed it to 4Mhz, because i assumed it is 4Mhz. I made now test at 8Mhz and it looks everything ok. And the question is why on ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2020 5:58 am   Subject: I2C Slave problem from >5.085
I've made some more test today.
1) I'm using everywhere Stream identifiers and ACK/NCK attribute.
so that's not this
i'm using internal RC oscillator earlier i was using declaration like this:
#us ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Mon Mar 23, 2020 11:02 am   Subject: I2C Slave problem from >5.085
About stream identifiers I've had this problem earlier and i check my code for it, stream identifiers are used everywhere. I also don't use i2c transfer functions, everything is made in classic method ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Mon Mar 23, 2020 7:13 am   Subject: I2C Slave problem from >5.085
I've upgraded it because i it is slightly new project and i saw a lot of improvements in optimization and others and because of earlier problems with moving from .074 i just wanted to use fresh, newer ...
  Topic: I2C Slave problem from >5.085
monsun

Replies: 16
Views: 36349

PostForum: General CCS C Discussion   Posted: Mon Mar 23, 2020 6:37 am   Subject: I2C Slave problem from >5.085
I have a project which is working in the field on dozens of devices for 8 months. Project has uart communication, i2c master on SSP1 and i2c slave on SSP2 and is using CCS RTOS. It was first built on ...
  Topic: LIN Library help
monsun

Replies: 0
Views: 4471

PostForum: General CCS C Discussion   Posted: Thu Oct 01, 2015 2:30 am   Subject: LIN Library help
Have anyone used CCS LIN library with success?
I'm trying to use example slave program with PIC18f25k22 and MCP2021 on uart1 interfacing it with APGLIN Serial Analyzer from Microchip. My compiler is ...
  Topic: driver AD7799.C
monsun

Replies: 8
Views: 28690

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2015 1:58 am   Subject: driver AD7799.C
It doesn't change anything, i tried with parameter and without, i also tried with spi_xfer function. And spi_read(with write parameter).
I've tried with #use spi and with setup_spi() and different ba ...
  Topic: driver AD7799.C
monsun

Replies: 8
Views: 28690

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2015 12:43 am   Subject: driver AD7799.C
Hi, i just asked like that because i thought maybe someone could have similar problem, so more information shouldn't be necessary.

PCW 4.128
PIC18F25k22
AD7798 is connected directly to SPI PORT 1 ...
  Topic: driver AD7799.C
monsun

Replies: 8
Views: 28690

PostForum: General CCS C Discussion   Posted: Tue Sep 15, 2015 7:55 am   Subject: driver AD7799.C
Hi, I've tried to communicate with AD7798, which if very similar to AD7799 but all i can read from SPI, are 0xFF values, i've tried to read from data registers, status registers, id registers and othe ...
  Topic: Strange problem with 24lc1025 eeprom
monsun

Replies: 2
Views: 6475

PostForum: General CCS C Discussion   Posted: Sat Jan 18, 2014 2:01 pm   Subject: Strange problem with 24lc1025 eeprom
I have strange problem with eeprom 24lc1024, i'm using pic18f67k22. Eeprom is sharing i2c line with ds1307. I was using smaller ones 128 512 etc on this board ealier for many years, but i've needed m ...
  Topic: Problem with pointers
monsun

Replies: 3
Views: 5707

PostForum: General CCS C Discussion   Posted: Thu Mar 21, 2013 2:44 am   Subject: Problem with pointers
Ive thought that something_external[i] is equal to *(something_external+i) using pointers??
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group