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

I2C PIC Slave at 8MHz and PIC Master at 48MHz
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Tue Feb 12, 2008 6:01 pm     Reply with quote

Thanks. I'll try the work-around as 17 does look applicable. I got the 18F4550 on the CCS USB development board. I am using that to debug my I2C master code while I wait on my custom USB, I2C master, Zigbee card. I'm using a 18F2553 on that board. Looks like I need to check the errata on that uC as well! Just for information, this master/slave combo has now been up for 24 hours without an I2C data error since I added the long boot delay to the master.
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Tue Feb 12, 2008 8:18 pm     Reply with quote

No help there. Maybe I didn't get the work around correct. Here is the code I used for the work around:
Code:

   set_tris_b(0xc0);
   LATB0 = 0;
   LATB1 = 0;
   set_tris_b(0xc3);


And this for the LATB register definition:

Code:
#bit LATB0 = 0xF8A.0
#bit LATB1 = 0xF8A.1


Anything obvious?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group