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 17 matches
CCS Forum Index
Author Message
  Topic: Problem with LCD
davey

Replies: 1
Views: 3932

PostForum: General CCS C Discussion   Posted: Tue Jun 06, 2006 12:06 pm   Subject: Problem with LCD
Hi!

I don�t know if this is a common problem with LCD-displays, but mine is dead Laughing . On startup It only shows one line with black squares and then nothing happens. I�ve tried my code on a LAB- ...
  Topic: Can�t get 20MHz crystal to work!!!
davey

Replies: 13
Views: 14782

PostForum: General CCS C Discussion   Posted: Mon May 29, 2006 12:35 pm   Subject: ok...here it goes...
HARDWARE:
Nothing special, just a PIC16F877A with four (five with reset) user-buttons attached to B0,B1,B2 & B4. I also have an i2c-connection with another PIC...but that shouldn�t have anything ...
  Topic: Can�t get 20MHz crystal to work!!!
davey

Replies: 13
Views: 14782

PostForum: General CCS C Discussion   Posted: Mon May 29, 2006 11:02 am   Subject: ...ok, but I�ve already tried setting the HS-fuse...
...and it doesn�t make any difference.
Please continue to share your thoughts!

Cheers!
/David
  Topic: Can�t get 20MHz crystal to work!!!
davey

Replies: 13
Views: 14782

PostForum: General CCS C Discussion   Posted: Mon May 29, 2006 10:34 am   Subject: ...
Yes I have a parallel resonant crystal.
I tried setting the HS-fuse but it doesn�t help.
All components are placed on a contact-deck and connected to each other with cables.
The PIC is capable of r ...
  Topic: Can�t get 20MHz crystal to work!!!
davey

Replies: 13
Views: 14782

PostForum: General CCS C Discussion   Posted: Mon May 29, 2006 9:34 am   Subject: Can�t get 20MHz crystal to work!!!
Hi there!

I trying to connect a 20 MHz crystal (http://www.elfa.se/elfa-bin/dyndok.pl?lang=se&vat=0&dok=2013473.htm) to a PIC16F877A-processor, but I can�t get it to start. Both the process ...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 10:56 am   Subject: well....
...I managed to get an acknowledge for the address-byte. I don�t know why, but it started working when I juggled with the cable that�s connected to the ICP-programmer. I suspect that there�s something ...
  Topic: i2c-com freezes
davey

Replies: 0
Views: 3503

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 10:49 am   Subject: i2c-com freezes
Hi!

Below you can see the source-code for a i2c-test-program. I�m sending two bytes of data from one master to a slave. My problem is that I don�t get an acknowledge for the first data-byte that I� ...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 8:24 am   Subject: I know the while(1); statment is missing in the slave-code..
...I inserted it after I posted the message on this forum. But the problem still remained....
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 6:53 am   Subject: 0=ACK
...so once again you�ve made a pretty good point. Since the SLAVE does�t ACK the address-write (which is the same as the test-write), the i2c_write()-function returns TRUE=1 and sends the two data-byt ...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 4:39 am   Subject: ok...
...but as I said, right now I�m using the address 0x6C. This seems like a quite "normal" address, right? And the GCEN-bit is cleared right now...

If I�ve understood everything, the hardware will au ...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 3:43 am   Subject: but....
ok, good point......but still, the fact remains that the slave-PIC doesn�t even enter the ISR.... I tried putting the i2c_read()-function in the enternal while-loop in the main-program, but that did ...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Wed May 10, 2006 3:21 am   Subject: ...still not working
Hi again!

Changed to address 0x6C and the slave still doesn�t pull down to data-connection (ACK)....and yes, I�ve modeled the slave code after the "ex_slave.c" code-example...

/David
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Tue May 09, 2006 3:08 pm   Subject: and...
...I forgot the endless loop. But it doesn�t make any difference. There�s still no ack from the slave...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Tue May 09, 2006 3:06 pm   Subject: wrong...
The adress that I send is not 0x51, but 0x00. 0x51 is the first byte that I�m sending...
  Topic: No ACK from slave when sending data with I2C
davey

Replies: 17
Views: 27342

PostForum: General CCS C Discussion   Posted: Tue May 09, 2006 12:49 pm   Subject: No ACK from slave when sending data with I2C
Hi!

I�m using the code below to send two bytes of data from one master-PIC to a slave-PIC. As you might have guessed...it doesn�t work. When I measure the signal with an oscilloscope I can see that ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group