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 4 matches
CCS Forum Index
Author Message
  Topic: PIC16f887 i2c to slow
sgtsquatlow

Replies: 5
Views: 10035

PostForum: General CCS C Discussion   Posted: Fri Aug 05, 2011 1:11 pm   Subject: PIC16f887 i2c to slow
You are a genius, thank you. I removed the % operator and switched to a value++; value &= mask; and it worked a lot faster. I reconfigured the SSP ISR and removed my timer2 ISR. Now it works great ...
  Topic: PIC16f887 i2c to slow
sgtsquatlow

Replies: 5
Views: 10035

PostForum: General CCS C Discussion   Posted: Thu Aug 04, 2011 2:00 pm   Subject: PIC16f887 i2c to slow
I have managed to get the I2C a little faster by altering the ISR code, but it still isn't up to 100kHz. My ISR looks like this:


#INT_SSP
void I2C_isr ()
{
state = i2c_isr_sta ...
  Topic: PIC16f887 i2c to slow
sgtsquatlow

Replies: 5
Views: 10035

PostForum: General CCS C Discussion   Posted: Wed Aug 03, 2011 11:23 am   Subject: PIC16f887 i2c to slow
Thanks for the quick reply. I fixed the issue with the clock fuses. I chose the HS since the spec sheet says it should support the 20mhz. My fuses are now:


#include <16F887.h>
#device *=1 ...
  Topic: PIC16f887 i2c to slow
sgtsquatlow

Replies: 5
Views: 10035

PostForum: General CCS C Discussion   Posted: Wed Aug 03, 2011 8:05 am   Subject: PIC16f887 i2c to slow
Hi all,

I have been working with the PIC16f887 to try and get I2c slave to work, but I keep running into a speed problem. I need the slave to keep up with a 100kHz master (I am using the diolan u2c ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group