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 19 matches
CCS Forum Index
Author Message
  Topic: Absolute value of a float
boily

Replies: 1
Views: 3617

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2009 1:59 pm   Subject: Absolute value of a float
Hi, I'm trying to get the absolute value of a float variable I have in my program...

Is there any function I can use ?

I want to get a maximum and the maximum can be negative or positive...
...
  Topic: Reading ADXL330 with a 16F877a
boily

Replies: 15
Views: 15866

PostForum: General CCS C Discussion   Posted: Tue Mar 03, 2009 3:23 pm   Subject: Reading ADXL330 with a 16F877a
ok another question:

I convert my adc_readings like PCM Programmer told me... (ADC_READ/102.3)-5.00V !

I understand it well but there is a thing I don't get..., when I move my accelerometer real ...
  Topic: 18f4550 Analog Vref
boily

Replies: 3
Views: 5051

PostForum: General CCS C Discussion   Posted: Tue Feb 17, 2009 8:44 am   Subject: 18f4550 Analog Vref
Answer: setup_adc_ports(AN0|VSS_VREF);
  Topic: 18f4550 Analog Vref
boily

Replies: 3
Views: 5051

PostForum: General CCS C Discussion   Posted: Tue Feb 17, 2009 7:55 am   Subject: 18f4550 Analog Vref
yeah I look into that but can't find how to set the Vref :

//////// Standard Header file for the PIC18F4550


++++++++++++++++
Header File removed.
Reason: Forum Rule #10

10. Don't post t ...
  Topic: 18f4550 Analog Vref
boily

Replies: 3
Views: 5051

PostForum: General CCS C Discussion   Posted: Mon Feb 16, 2009 6:58 pm   Subject: 18f4550 Analog Vref
Hi,

I started a project on a 16f877a and I was using a 3.3V Vref for the analog port.
I could set A0 to A2 as analog input and A3 as a Vref !

How can I right that for the 18f4550 ?
Can I still ...
  Topic: 16f877a ROM problem !
boily

Replies: 2
Views: 5066

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2009 11:49 am   Subject: 16f877a ROM problem !
thats the message I am getting from MPLaB when I compile !

http://i43.tinypic.com/2agkygo.jpg
  Topic: 16f877a ROM problem !
boily

Replies: 2
Views: 5066

PostForum: General CCS C Discussion   Posted: Tue Feb 10, 2009 11:47 am   Subject: 16f877a ROM problem !
Hi,

I am using the 16f877a with MPLAB V8.20 for my project !
Now when I compile, it says that my ROM is full...

I know that the 16f877a have four 2k allocations to store data and I "think& ...
  Topic: SprintF question ...
boily

Replies: 7
Views: 7896

PostForum: General CCS C Discussion   Posted: Wed Feb 04, 2009 5:14 pm   Subject: SprintF question ...
thanks, its working fine now Very Happy
  Topic: SprintF question ...
boily

Replies: 7
Views: 7896

PostForum: General CCS C Discussion   Posted: Wed Feb 04, 2009 9:59 am   Subject: SprintF question ...
how do I print only 3 decimals ??
I did the %3.2F thing but its not working ...
  Topic: Reading ADXL330 with a 16F877a
boily

Replies: 15
Views: 15866

PostForum: General CCS C Discussion   Posted: Wed Feb 04, 2009 7:55 am   Subject: Reading ADXL330 with a 16F877a
Very Happy

http://i43.tinypic.com/212s2z4.jpg
  Topic: SprintF question ...
boily

Replies: 7
Views: 7896

PostForum: General CCS C Discussion   Posted: Wed Feb 04, 2009 7:55 am   Subject: SprintF question ...
thanks guys Smile

http://i43.tinypic.com/212s2z4.jpg
  Topic: Reading ADXL330 with a 16F877a
boily

Replies: 15
Views: 15866

PostForum: General CCS C Discussion   Posted: Tue Feb 03, 2009 2:37 pm   Subject: Reading ADXL330 with a 16F877a
ok never mind, everything is working fine, thanks a million time for your help Very Happy
  Topic: Reading ADXL330 with a 16F877a
boily

Replies: 15
Views: 15866

PostForum: General CCS C Discussion   Posted: Tue Feb 03, 2009 2:20 pm   Subject: Reading ADXL330 with a 16F877a
thanks alot PCM programmer Smile
Yes I'm using the 330mv/g unit !
Instead of using the 1023bits, I'm reading on 255 bits ...
So yeah, I get the idea, thanks once again !
Now my problem is when I try ...
  Topic: SprintF question ...
boily

Replies: 7
Views: 7896

PostForum: General CCS C Discussion   Posted: Tue Feb 03, 2009 1:45 pm   Subject: SprintF question ...
I'm trying to do a sprintf and I'm only getting constent 0.00000 reading from my analog imput....

What am I doing wrong ??
Is there another way to print decimals on my LCD ?

Thanks Smile


int ...
  Topic: Reading ADXL330 with a 16F877a
boily

Replies: 15
Views: 15866

PostForum: General CCS C Discussion   Posted: Tue Feb 03, 2009 7:36 am   Subject: Reading ADXL330 with a 16F877a
yes
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group