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 pic16f877a has 10 bit adc channel.u can select ADCON0,ADCON1 for operate adc result store location registers ADRESL and ADRESH.
use this
data=ADRESH;
data=data<<8; //shift to left for 8 bit
data=data|ADRESL; //10 bit result from ADC
hope this helpful
with regards
hi to all
in my project i'm using pic16f873a with hitech c compiler.i need my project to take a signal from ignition coil and to control a relay on/off using micro controller.any one help me for write coding in my project.
thanks in advance
hi what a pblm occured in your coding?
what type of sensor you r using?
and cgheck ur coding
if (sensor1=FALSE) is an assignment statement
write if (sensor1==FALSE) and compile.
with regards
in my project ineed to store a value in eeprom.
i,m trying but the value not stored.
my cooding:
EEPROM_WRITE(oxoo,count);
EEPROM_READ(0x00);
h=EEDATA;
is this correct in hitech c?
help me,
thanks in advance
hi thanks to u
but i can't unterstaand theese lines
(result=result<<8; //shift to left for 8 bit
result=result|ADRESL; //10 bit result from ADC).pls explain
and how to use another one adc channel in this program.?
pls explain me.
thanks in advance
void adc_init()//initialize adc
{
ADCON0=0X01;
ADCON1=0X2E;
}
void adc_read()//read's adc value
{
GODONE=1;
while(ADGO==1);
data=ADRESH;
}
what i do a mistake
its correct lcd read write pin takes low means write data to lcd.high means read data.your circuit connected to low signal.so lcd write data continiously.when the pin is set to high means its display ur codings data.
hi to all
in my project im using pic16f873a,hi-tech c compiler.im reading adc value data=ADRESH;.and
i
but the
adc i/p value 2v means 2000 mv/4.88mv=adc value is 409.
im use the 409 value means im not get o/p.
if(data>=409)
{
led=0;
led1=1;
}
again i divide 4
409/4=102 this value used...
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.