Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi, thank you very much for help, I have a little idea that ADCON1 is used to configurate a pin as A/D input.
with 16F877, If I want to use RA3 to have Vref+ = 1.6V (with voltage divider) and RA0 as Analog input so can I right:
ADCON1 = 0b00000001;
TRISA = 0b00001000; ?
Hi, yes thank you I really understand now how calculation is wrong, but I still don't understand why you choosen only 25 and 40 instead of other values ? I would be grateful if you explain to me this point.
do you mean that temp must be " Float " to get true calculation..?
Hi, (please excuse me for my terrible english!!)
First, I tried your suggestion to my code and it's working!!!! thankyou for help!!!
Concerning ADC 10 bit I am not good at this, the LM35dz (0--->100 degree), Temperature Scale output changes by 10 mV per °C.
1°C-->10mV
100°C--->1V,
Vref=5v, so...
Hi every body, I try to drive a DC Motor depending on temperature, this is my program with MikroC, but always the Motor is working with the same speed (duty), could some one pleaaase help me where is the problem!! thanks..
////////
sbit LCD_RS at RB1_bit;
sbit LCD_EN at RB2_bit;
sbit LCD_D7...
Hi every body, this code with MikroC to drive a DC Motor in 2 directions
void main() {
short duty = 0; //initial value for duty
TRISC = 0x00; //PORTC as output
TRISB = 0x00; //PORTB as output
portb = 0x00; // init
PWM1_Init(5000); //Initialize PWM1
PWM1_Start(); //start PWM1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.