Hello MR2010,
You were correct! That was my problem, if I change the value of my scaling coefficient to a smaller number like 29 it works. Or I can also change to the "unsigned long int" for the larger number 2932 and that also works as well.
Thanks for your help
Jonathan.
Search found 8 matches
- 15 Nov 2010 16:49
- Forum: mikroC PRO for PIC General
- Topic: PWM for PIC12F683
- Replies: 10
- Views: 9489
- 03 Nov 2010 02:02
- Forum: mikroC PRO for PIC General
- Topic: PWM for PIC12F683
- Replies: 10
- Views: 9489
Re: PWM for PIC12F683
Hello, I was able to get my program to run per Bonca’s advice. I am now writing because I ran into a new problem that has me going around in circles for some time now. My problem is; I cannot get the program to work when I use my math algorithm to determine the temperature in my “if” statements; the...
- 06 Oct 2010 03:10
- Forum: mikroC PRO for PIC General
- Topic: PWM for PIC12F683
- Replies: 10
- Views: 9489
Re: PWM for PIC12F683
Thank you all for taking the time to respond to my post. I have not yet gotten the program to run. I think my main problem is not fully understanding the way in which I need to map the input to the ADC and the output to the CCP. My confusion is mainly between bits and pins on the PIC12F683 MCU. For ...
- 23 Sep 2010 02:00
- Forum: mikroC PRO for PIC General
- Topic: PWM for PIC12F683
- Replies: 10
- Views: 9489
Re: PWM for PIC12F683
Dear Braus, Thank you for your vote of confidence, it is most appreciated. Unfortunately I do not have the PIC12F683 at the moment (I have to order it). I will certainly test it once I receive it. I was just wondering if there were any noticeable issues/syntax errors with the code I wrote. If you or...
- 22 Sep 2010 13:42
- Forum: mikroC PRO for PIC General
- Topic: PWM for PIC12F683
- Replies: 10
- Views: 9489
PWM for PIC12F683
Hello, I wrote the code below using the MikroC Pro compiler to pulse width modulate the speed of a fan. The code is written for the PIC12F683. I am not sure that this code will work and I have not teseted it; it did build sucessfully. I wanted to get some help from you all. What is happening in the ...
- 03 Mar 2010 05:24
- Forum: mikroC PRO for PIC General
- Topic: Inexperienced with micro-controllers and need some help
- Replies: 5
- Views: 2981
Re: Inexperienced with micro-controllers and need some help
Hey Sparky thanks for providing your well detailed advice I appreciate the help.
- 28 Feb 2010 04:28
- Forum: mikroC PRO for PIC General
- Topic: Inexperienced with micro-controllers and need some help
- Replies: 5
- Views: 2981
Re: Inexperienced with micro-controllers and need some help
Hello p.erasmus: I have been trying to configure the example program ADC_on_LDC to convert the voltage reading into a degree Celsius by using a mathematical conversion show in attached figure. The temperature sensor is linear so by using delta m (slope) I can multiply the voltage being read in the A...
- 27 Feb 2010 06:34
- Forum: mikroC PRO for PIC General
- Topic: Inexperienced with micro-controllers and need some help
- Replies: 5
- Views: 2981
Inexperienced with micro-controllers and need some help
Hello, I am trying to integrate the LM35 temperature sensor with the EasyPic3 development board to measure temperature and display it on the 2x16 LCD. The voltage from the temperature sensor is conditioned from 0-5 volts. I am aware that the voltage from the temperature sensor will go to the ADC on ...