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: eeprom never returns an ack
hate

Replies: 11
Views: 13441

PostForum: General CCS C Discussion   Posted: Tue Feb 13, 2007 4:01 pm   Subject: eeprom never returns an ack
Here is where I added 'i2c_stop();':

void write_ext_eeprom(long int address, BYTE data)
{
short int status;
i2c_start();
i2c_write(0xa0);
i2c_write( ...
  Topic: eeprom never returns an ack
hate

Replies: 11
Views: 13441

PostForum: General CCS C Discussion   Posted: Fri Feb 09, 2007 7:18 am   Subject: eeprom never returns an ack
Hi;

I had tried SLo's suggestion but it hadn't worked. But Ttelmah's solution works, I added the' i2c_stop();' and everything works in hardware mode. Thnx all for your time!

Regards...
  Topic: eeprom never returns an ack
hate

Replies: 11
Views: 13441

PostForum: General CCS C Discussion   Posted: Fri Feb 09, 2007 2:54 am   Subject: eeprom never returns an ack
That's allready the driver I'm using with only a minor change with the while loop:


i2c_start();
status=i2c_write(0xa0);
while(status==1)
{
i2c_s ...
  Topic: eeprom never returns an ack
hate

Replies: 11
Views: 13441

PostForum: General CCS C Discussion   Posted: Thu Feb 08, 2007 4:48 pm   Subject: eeprom never returns an ack
Hi;

My problem is the 24c512 eeprom chip I'm using, never returns an ack! I can read and even write the chip but cannot get an ack! So the pic16f877 I'm using stays forever in the 'while' loop belo ...
  Topic: need help on external interrupt for PIC16C63A
hate

Replies: 5
Views: 6542

PostForum: General CCS C Discussion   Posted: Mon Sep 25, 2006 2:59 pm   Subject: need help on external interrupt for PIC16C63A
Hi Humberto;

I think you have to check the code again to see the if() statement in the main loop will repeatedly check for "B0 pin" to get low(0) and then make the "A1 pin" high ...
  Topic: need help on external interrupt for PIC16C63A
hate

Replies: 5
Views: 6542

PostForum: General CCS C Discussion   Posted: Sat Sep 23, 2006 4:41 pm   Subject: need help on external interrupt for PIC16C63A
How did you get the idea that the interrupt isn't triggered? By checking the Pin A1? In the ext_ISR you make the A1 pin go low but in the main function you make it high when the B0 pin goes low. Your ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group