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 35 matches
CCS Forum Index
Author Message
  Topic: how to set ADC reference voltage
bharatwalia

Replies: 2
Views: 7435

PostForum: General CCS C Discussion   Posted: Sun Jul 01, 2012 10:31 am   Subject: how to set ADC reference voltage
Hi Ttelmah,
Thanks
Smile
  Topic: how to set ADC reference voltage
bharatwalia

Replies: 2
Views: 7435

PostForum: General CCS C Discussion   Posted: Sun Jul 01, 2012 8:59 am   Subject: how to set ADC reference voltage
Hi,
I am using PIC16F886 which has 10-bit ADC resolution.
Currently the PIC's internal Vref is set to 5.0V, which reads 0-5V as 0-1023.

But i need to set Vref to 2.5V so that it reads 0-2.5V as 0 ...
  Topic: buzzer routine
bharatwalia

Replies: 0
Views: 3063

PostForum: General CCS C Discussion   Posted: Sun Jan 09, 2011 2:27 am   Subject: buzzer routine
Hey guys below is my buzzer routine.
I wrote this routine to set "PIN_B1" high every 2 seconds for 300ms
and then set it low again.
But the problem here is that the pattern is not synchr ...
  Topic: ADC not reading value
bharatwalia

Replies: 1
Views: 3195

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 12:44 am   Subject: ADC not reading value
The below code is written to read main voltage through PIC16F876A ADC
and store it in a variable, then it compares the stored voltage with a reference voltage stored in another variable and if the re ...
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Sat Jul 31, 2010 3:08 am   Subject: math.h problem
Hi,
I deleted the math.h file and again copy and pasted it now it compiles.

Thanks
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Sat Jul 31, 2010 2:26 am   Subject: math.h problem
i removed the button.c header file and compiled the program, i even compile the small piece of code proved above but the error remains same with "math.h"

Thanks
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Sat Jul 31, 2010 1:58 am   Subject: math.h problem
I tried compiling this program on my other PC which has version 4.106 but the error is same.

I hope I am making some mistake in the syntax or so.

Thanks
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Sat Jul 31, 2010 1:09 am   Subject: math.h problem
i re-installed the compiler and still getting the same error....
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Sat Jul 31, 2010 12:20 am   Subject: math.h problem
this is my complete program



/*----------------------------------------------------------SUNOXER DIGITAL METER------------------------------------------------------*/
#include <16f876A.h> ...
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Fri Jul 30, 2010 10:30 pm   Subject: math.h problem
compiler version 4.084




#include <16f876A.h>
#device adc=10
#include <math.h>

void calPower(void);

unsigned int32 adc_voltage=751,adc_current=170,res,mode=0;
float ...
  Topic: math.h problem
bharatwalia

Replies: 12
Views: 18318

PostForum: General CCS C Discussion   Posted: Fri Jul 30, 2010 10:48 am   Subject: math.h problem
Hi every time I compile my program it gives this error:

*** Error 112 "simple_meter.c" Line 205(1,1): Function used but not defined: ... ceil SCR=862

I am using ceil() in my program ...
  Topic: how to write data onto program memory
bharatwalia

Replies: 4
Views: 6400

PostForum: General CCS C Discussion   Posted: Mon Jul 19, 2010 12:56 pm   Subject: how to write data onto program memory
Thanks!... Very Happy

I got it working .... Laughing
  Topic: how to write data onto program memory
bharatwalia

Replies: 4
Views: 6400

PostForum: General CCS C Discussion   Posted: Mon Jul 19, 2010 10:53 am   Subject: how to write data onto program memory
Is it possible to write data onto eeprom at compile time?
And then retrieve it during program execution.
  Topic: how to write data onto program memory
bharatwalia

Replies: 4
Views: 6400

PostForum: General CCS C Discussion   Posted: Mon Jul 19, 2010 9:32 am   Subject: how to write data onto program memory
Hi,
I am using PIC16F876A for my project.
I want to write a value into program memory at compile time, then at run time I want to read that value and modify it and then again write it and so on.

...
  Topic: S/W hangs....
bharatwalia

Replies: 7
Views: 7936

PostForum: General CCS C Discussion   Posted: Sun Jul 18, 2010 11:34 pm   Subject: S/W hangs....
Hi,
I figured out the problem. I implemented the watchdog timer and it works great.

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


Powered by phpBB © 2001, 2005 phpBB Group