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 25 matches
CCS Forum Index
Author Message
  Topic: one wire memory loop?
Scottl

Replies: 1
Views: 3710

PostForum: General CCS C Discussion   Posted: Thu Mar 20, 2008 9:00 pm   Subject: one wire memory loop?
I have a DS1921G IButton kicking my A**! I have everything working fine but I cannot find a good method for retreiving all the logs.

The logs start at 1000h! I read the mission samples counter wh ...
  Topic: Pic12F683 Rebooting over and over Please Help!
Scottl

Replies: 8
Views: 8203

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 3:57 pm   Subject: Pic12F683 Rebooting over and over Please Help!
The user will request data from either ibutton or equipment on 232 port two. The handhelds should never connect to both at the same time!

Well I will have to take that back if it can be done it ...
  Topic: Pic12F683 Rebooting over and over Please Help!
Scottl

Replies: 8
Views: 8203

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 8:46 am   Subject: Pic12F683 Rebooting over and over Please Help!
I have tried your method and tested the following and it works! That is without the second port.


while(1) {

fgets(string_a, COM_A);
command = string_a[1];

if ...
  Topic: Pic12F683 Rebooting over and over Please Help!
Scottl

Replies: 8
Views: 8203

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 1:54 am   Subject: Pic12F683 Rebooting over and over Please Help!
No Luck!
  Topic: Pic12F683 Rebooting over and over Please Help!
Scottl

Replies: 8
Views: 8203

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 1:49 am   Subject: Pic12F683 Rebooting over and over Please Help!
PCWH Compiler
IDE 3.43
PCB 3.205
PCM 3.205
PCH 3.205

char string_a[20];
char string_b[40];

Let me see if this works

Thanks,

Scott
  Topic: Pic12F683 Rebooting over and over Please Help!
Scottl

Replies: 8
Views: 8203

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 12:57 am   Subject: Pic12F683 Rebooting over and over Please Help!
Everything seems to be working fine but after receiving data then sending the response back out the PIC seems to reboot again and again! Worked fine for days on my breadboard!

Can anyone look at m ...
  Topic: fgets() with hex problem
Scottl

Replies: 3
Views: 5582

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2007 9:12 pm   Subject: fgets() with hex problem
Hi Wayne,

Been out traveling this week! The customer has change the message to ASCII "EDC1" which in hex is 0x450x11. When I get the string can I compare as is or still need converting ...
  Topic: fgets() with hex problem
Scottl

Replies: 3
Views: 5582

PostForum: General CCS C Discussion   Posted: Sun Nov 04, 2007 7:47 pm   Subject: fgets() with hex problem
I am trying to receive values from a serial port of a pc and the format is as follows:

0x450x110x0D

The decimal format is 691713

I am using fgets(data,COM_A)! Should I use fgetc instead?

...
  Topic: Using fputs
Scottl

Replies: 8
Views: 7985

PostForum: General CCS C Discussion   Posted: Mon Oct 29, 2007 7:35 am   Subject: Using fputs
Got it!

Thanks for all your help!
  Topic: Using fputs
Scottl

Replies: 8
Views: 7985

PostForum: General CCS C Discussion   Posted: Sun Oct 28, 2007 5:43 pm   Subject: Using fputs
Could I not use the following:

static char thermo[] = "EDC1";

then

if(strcmp(string_a, thermo)==0){
etc....................

or would strcpy be the best approach?

Scott
  Topic: Using fputs
Scottl

Replies: 8
Views: 7985

PostForum: General CCS C Discussion   Posted: Fri Oct 26, 2007 8:07 pm   Subject: Using fputs
Hi Wayne_,

I have tried to use the following but get an error in bold:

if(strcmp(string_a, "EDC1") == 0) {

error: Bad expression syntax

I am using IDE version 3.43
PCB Version ...
  Topic: Using fputs
Scottl

Replies: 8
Views: 7985

PostForum: General CCS C Discussion   Posted: Thu Oct 25, 2007 5:10 pm   Subject: Using fputs
OK here is all my code!

I am not getting this! Either I have a hardware issue or it is not going to work.

Can anyone tell me why the following is not going to work? I am pulling my hair out wh ...
  Topic: Using fputs
Scottl

Replies: 8
Views: 7985

PostForum: General CCS C Discussion   Posted: Wed Oct 24, 2007 6:35 pm   Subject: Using fputs
I am trying to send a string using fputs. Can someone tell me if I have this right? Or will it work?



sprintf(b,"%s","0x450x110x0D");
fputs(b,COM_B ...
  Topic: fgets ?
Scottl

Replies: 6
Views: 10687

PostForum: General CCS C Discussion   Posted: Tue Oct 23, 2007 7:44 am   Subject: fgets ?
Thanks Ttelmah!

This gets me everytime! Everything seems to be working fine.
  Topic: fgets ?
Scottl

Replies: 6
Views: 10687

PostForum: General CCS C Discussion   Posted: Mon Oct 22, 2007 6:25 pm   Subject: fgets ?
I have setup a test and everything works fine! All data sent comes back exact!



fgets (c, COM_A);
fprintf(COM_A, "%s", c);



All data is sent back perfectly!

...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group