Author |
Message |
Topic: Absolute value of a float |
boily
Replies: 1
Views: 3617
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 5:14 pm Subject: SprintF question ... |
thanks, its working fine now |
Topic: SprintF question ... |
boily
Replies: 7
Views: 7896
|
Forum: 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
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 7:55 am Subject: Reading ADXL330 with a 16F877a |
http://i43.tinypic.com/212s2z4.jpg |
Topic: SprintF question ... |
boily
Replies: 7
Views: 7896
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 7:55 am Subject: SprintF question ... |
thanks guys
http://i43.tinypic.com/212s2z4.jpg |
Topic: Reading ADXL330 with a 16F877a |
boily
Replies: 15
Views: 15866
|
Forum: 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 |
Topic: Reading ADXL330 with a 16F877a |
boily
Replies: 15
Views: 15866
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 2:20 pm Subject: Reading ADXL330 with a 16F877a |
thanks alot PCM programmer
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
|
Forum: 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
int ... |
Topic: Reading ADXL330 with a 16F877a |
boily
Replies: 15
Views: 15866
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 7:36 am Subject: Reading ADXL330 with a 16F877a |
yes |
|