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 51 matches
CCS Forum Index
Author Message
  Topic: i2c_start() fail
pyu

Replies: 7
Views: 10926

PostForum: General CCS C Discussion   Posted: Thu Apr 25, 2013 2:24 am   Subject: i2c_start() fail
Hi.

I re-soldered all the wires and resistors, and now it's working Smile

Thanks.
  Topic: i2c_start() fail
pyu

Replies: 7
Views: 10926

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2013 1:06 pm   Subject: i2c_start() fail
I made a test, it crashes on this line:
status = i2c_write(address); // Status = 0 if got an ACK

I replace the battery, same problem :(
  Topic: i2c_start() fail
pyu

Replies: 7
Views: 10926

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2013 6:55 am   Subject: i2c_start() fail
I think this is it:

http://www.ccsinfo.com/forum/viewtopic.php?t=49713&highlight=i2c

Thanks, I will give it a try Smile
  Topic: i2c_start() fail
pyu

Replies: 7
Views: 10926

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2013 6:00 am   Subject: i2c_start() fail
some ideas...
...assuming the pIC will run a '1Hz blinking LED program

1) no battery on the 1307 ?

2) no I2C bus pullups ?

3) download PCM programmer's I2C 'scanner test program' and see wha ...
  Topic: i2c_start() fail
pyu

Replies: 7
Views: 10926

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2013 2:14 am   Subject: i2c_start() fail
Hello.

I have a pickit2 with 16f887 and ds1307.
I used this hardware last time in 2009.
Now, isn't working any more.

void ds1307_init(void)
{
BYTE seconds = 0;

i2c_s ...
  Topic: Error: Previous identifier must be a pointer
pyu

Replies: 9
Views: 20299

PostForum: General CCS C Discussion   Posted: Mon Oct 12, 2009 3:55 am   Subject: Error: Previous identifier must be a pointer
Thanks FvM.
It's working now!
  Topic: Error: Previous identifier must be a pointer
pyu

Replies: 9
Views: 20299

PostForum: General CCS C Discussion   Posted: Fri Oct 09, 2009 3:41 am   Subject: Error: Previous identifier must be a pointer
Error: *** Error 66 "C:\Car_LCD\CarLCD.c" Line 638(6,13): Previous identifier must be a pointer

Line: Temp[numROMs - 1] = result;



main.c:

#include <1 ...
  Topic: Error: Previous identifier must be a pointer
pyu

Replies: 9
Views: 20299

PostForum: General CCS C Discussion   Posted: Fri Oct 09, 2009 2:53 am   Subject: Error: Previous identifier must be a pointer
An array has a zero based index in C
or change the assignment.
Temp
I tried Temp[numROMs - 1] = result; , but no succes.

In previous post, I added a zip with my project.
Here is a sampl ...
  Topic: Error: Previous identifier must be a pointer
pyu

Replies: 9
Views: 20299

PostForum: General CCS C Discussion   Posted: Fri Oct 09, 2009 2:37 am   Subject: Error: Previous identifier must be a pointer
I had corrected the first error.

int8 numROMs;
float result=0;



Here is my entire project, after build, I get that single error (Previous identifier must be a pointer):
http://cid-e0cf39744 ...
  Topic: Error: Previous identifier must be a pointer
pyu

Replies: 9
Views: 20299

PostForum: General CCS C Discussion   Posted: Thu Oct 08, 2009 1:54 pm   Subject: Error: Previous identifier must be a pointer
Hi.

I have declared
signed int16 Temp[4];

Then,
for (numRoms=1;numRoms<=4;numRoms++)
{
if (Send_MatchRom())
 ...
  Topic: DS1307 problem.
pyu

Replies: 2
Views: 4658

PostForum: General CCS C Discussion   Posted: Mon Oct 05, 2009 2:25 pm   Subject: DS1307 problem.
Yes.
Thanks allot for your help, PCM Programmer Wink

I found another small issue (reading day of week instead date)
printf(lcd_putc, "\f\%02d/\%02d/\%02d\n",date,month,yr&# ...
  Topic: DS1307 problem.
pyu

Replies: 2
Views: 4658

PostForum: General CCS C Discussion   Posted: Mon Oct 05, 2009 1:41 pm   Subject: DS1307 problem.
Hi all.
I have a problem with my digital clock (pic16f887 and DS1307).

The schematic, DS1307:
pin 1: Crystal 32.768Khz
pin 2: Crystal 32.768Khz
pin 3: V + bat
pin 4: GND
pin 5: SDA (pic16f887 ...
  Topic: three DS18B20...
pyu

Replies: 31
Views: 37518

PostForum: General CCS C Discussion   Posted: Wed Jul 01, 2009 2:38 pm   Subject: three DS18B20...
The crystal was added 30 minutes before making that pictures.
I used
#fuses XT

I forgot to change this in the magic word (for 20Mhz)
#fuses HS

Now it's working Wink

Thanks all of you g ...
  Topic: three DS18B20...
pyu

Replies: 31
Views: 37518

PostForum: General CCS C Discussion   Posted: Tue Jun 30, 2009 2:53 pm   Subject: three DS18B20...
The PicKit2 is a programmer. What board are you using for your
project ?

I use PICkit 2 Debug Express. ( http://www.microchipdirect.com/productsearch.aspx?Keywords=DV164121 )

http://img229.i ...
  Topic: three DS18B20...
pyu

Replies: 31
Views: 37518

PostForum: General CCS C Discussion   Posted: Tue Jun 30, 2009 2:02 am   Subject: three DS18B20...
Yes, you are right, the current speed is 4Mhz ( so I think ), even I used
#use delay(clock = 20000000)

In this moment, I didn't have an external oscillator.
Could this be the problem?
...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group