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 7 matches
CCS Forum Index
Author Message
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Wed Apr 25, 2012 7:25 pm   Subject: 16F877A i2c to 16F690
Sorry Ttelmah there was a misunderstanding. You were right, it was indeed one of three problems needing to be solved. With the right equipment I found I have reversed the wiring of the scl and sda, an ...
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Mon Apr 23, 2012 4:41 am   Subject: 16F877A i2c to 16F690
The ADC is outputting fine. i check by changing it to a optimal speed recommended by the data sheet and gave me the same results.

I'll be at the shop today so i know i'll have better test equipmen ...
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Sun Apr 22, 2012 3:16 pm   Subject: 16F877A i2c to 16F690
we have progress!! Very Happy

OK so i'm now pretty sure its the slave side that i'm going to need to fine tune. I know for sure that there is communication and that a values is sent.

the code is ...
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Sun Apr 22, 2012 10:55 am   Subject: 16F877A i2c to 16F690
Here is what i have done so far.

1. changed the Quotes.

2. checked the resistor values to be between 10 k and 6k

3. i looked over the slave ssp isr and found 3 logic errors.

4. removed fas ...
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Sat Apr 21, 2012 5:41 pm   Subject: 16F877A i2c to 16F690
Originally i was using an int in the place of the "a" so that it looked like this



int data;
i2c_start();
i2c_write(0xa0);
i2c_write(0x00);
...
  Topic: I2C - PIC16F887
alique89

Replies: 6
Views: 20544

PostForum: General CCS C Discussion   Posted: Sat Apr 21, 2012 5:32 pm   Subject: I2C - PIC16F887
try changing the place holder and see the result in hex. it might be play with the value. check if the value is not rolling over when you multiply.
  Topic: 16F877A i2c to 16F690
alique89

Replies: 14
Views: 17089

PostForum: General CCS C Discussion   Posted: Sat Apr 21, 2012 4:46 pm   Subject: 16F877A i2c to 16F690
Hello i have been at this for a bit and have not found what might be my problem. I had searched up what others had done and turn out empty there too. i'm using v. 4.120 of the ccs c and real world app ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group