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: SLAVE I2C Not working
pyroboy123

Replies: 3
Views: 11426

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2004 12:34 pm   Subject: more info
nope all you said I have done already.

I'm using a 16F87 and I have tried doing the FORCE_HW and that doesnt change anything either.

Now I'm using the ICD2 to look at my registers ....

I put ...
  Topic: SLAVE I2C Not working
pyroboy123

Replies: 3
Views: 11426

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2004 10:33 am   Subject: SLAVE I2C Not working
Hey all, this is my code for the slave device:

#fuses MCLR,HS,NOWDT,PUT,NOPROTECT,NOBROWNOUT,NOLVP,NOCPD,NOWRT,NODEBUG
#use delay(clock=20000000, RESTART_WDT)


#use i2c(SLAVE, SDA=PIN_B1, SCL= ...
  Topic: SLEEP ???
pyroboy123

Replies: 3
Views: 12063

PostForum: General CCS C Discussion   Posted: Mon Mar 15, 2004 1:57 pm   Subject: SLEEP ???
Ok Thx I'll look into that...

but its a pain beause I thought I would try to keep the RB6/7 free for programming ....
  Topic: SLEEP ???
pyroboy123

Replies: 3
Views: 12063

PostForum: General CCS C Discussion   Posted: Mon Mar 15, 2004 9:13 am   Subject: SLEEP ???
Hi all,

I have a question for you all.

I am trying desperately to get the SLEEP to work but I think I'm doing something wrong because it doesnt seem to work.
I'm trying to make my PIC do RTC us ...
  Topic: Problems with I2C between two PICS.
pyroboy123

Replies: 4
Views: 11870

PostForum: General CCS C Discussion   Posted: Fri Mar 12, 2004 4:09 pm   Subject: NOPE
I think I solved ONE of the problems.

I had set the pins for the I2C as outputs on my slave PIC.
That is why my master chip froze.

I fixed this problem. But I cant get the Slave chip to do anyt ...
  Topic: Problems with I2C between two PICS.
pyroboy123

Replies: 4
Views: 11870

PostForum: General CCS C Discussion   Posted: Thu Mar 11, 2004 3:05 pm   Subject: Did some tests
Ok, I tried doing some basic testing,

I took the WDT out, meaning I declared it as NOWDT in the fuses.

My test is to just do:

i2c_start();
i2c_write(0xa0);
i2c_stop();

Port_A = 0xFF;
...
  Topic: Problems with I2C between two PICS.
pyroboy123

Replies: 4
Views: 11870

PostForum: General CCS C Discussion   Posted: Thu Mar 11, 2004 11:34 am   Subject: Problems with I2C between two PICS.
Hi everyone,

I need some help please.

I'm trying to get two PICs to communicate, a 16F877A and a 16F87.

I have the 16F877A set up as master and obviously the 87 as a slave.

My first proble ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group