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 6 matches
CCS Forum Index
Author Message
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Tue Sep 01, 2020 3:07 pm   Subject: I2C connection problem
Hello dear "Ttelmah".
Thanks a lot for your quick response.
I tested your INT_ssp codes. But it was wrong and data transmission completely disabled.
My code in INT_SSP was correct.
...
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Mon Aug 31, 2020 5:50 pm   Subject: I2C connection problem
Slave #1 address is 0x10
For writing to it address is 0x10
For reading from it address is 0x11

Slave #3 address is 0x40
For writing to it address is 0x40
For reading from it address is 0x41 ...
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Mon Aug 31, 2020 9:59 am   Subject: I2C connection problem
Slave code:

#include <18F25K80.h>
#DEVICE ADC=12
#use delay(oscillator=16M)
#fuses hsh
#fuses nowdt
#use i2c(slave,sda=PIN_C4,scl=PIN_C3,address=0x40,force_hw)

int8 st ...
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Mon Aug 31, 2020 9:55 am   Subject: I2C connection problem
Bus long is nearly 40 Cm
This slave is last device
Voltage is 5 volts
Master pic18f45k80
Slaves are pic18f25k80
Pull up resistors are 1.5K
Pull down caps 100pF
Bus speed is slow

MASTER C ...
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Mon Aug 31, 2020 12:34 am   Subject: I2C connection problem
Hello dude
Thanks for your quick response.
My 3 slaves are different in PCB. But i2c slave program (lNT_SSP) is
similar. This problem is happening just for one of the slaves. Other slaves work w ...
  Topic: I2C connection problem
Mojtaba-s

Replies: 9
Views: 21522

PostForum: General CCS C Discussion   Posted: Sun Aug 30, 2020 1:28 pm   Subject: I2C connection problem
Hello guys !
I have an I2C network containing one master and 3 slaves by pic18f25K80. They work correctly but sometimes one of slaves pulled down SDA pin. So master hang or reset regularly by WDT. T ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group