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.
No No.. i am getting in proteus.. The same hex file , if i load in my board , its making the prob which i told before. I use a 20Mhz oscillator on my board with a pickit3 debugger. My adres value changes for values from 000 to 1FF when i change the pot dynamically. But remains at 1FF after 2.5v.....
The same zip file which you would be able to see some two threads before. I use the alike adc as of there module there. Anyway I have zipped it here too. I am using a 50k pot.
Regards
ram
I got the output for the applied dc. But I do have an other problem . When I vary the pot , the digital output gets varies only for upto 2.5v of the applied input. After that , it remains as a constant at 1FF(corresponding value for 2.5v).Should I have to provide any external Vref to the...
Find attachment.
It must actually be FF on portd. I find it to be FE. Its not a matter.
Actually what was the mistake I made. I see no much difference in changes yu have made.. just a change in timer and its value. But what was the mistake I was making??
I will check it with my kit and will...
Yes , The MCLR is pulled up with a resistor with Vcc.
- - - Updated - - -
Am new to programming controllers.. How to check that?? I just know that when the interrupt comes,it goes to the routine,but how to find out the duration of the interrupt?I will try what waseem has said.. Will come with...
Are you coming to say that It is not only enough to see whether the ADIF has gone high? Should I check the DONE bit instead of the ADIF bit? so the code must probably be like
while(DONE);...Right? By default , my value 9:3 should reside in the ADRESH and 2:0 in the ADRESL. Why should I do the...
My input is always going to be a sinewave. Any input coming inside, it is going to make the conversion right?,let it be 0 0r 255 or any value. and moreover i cannot give two interrupts at the same time here right?? I need the timer because my conversion should take place only at specified time...
I am not using adc interrupt. The adif is polled inside the timer generated interrupt.If I am not using adc interrupt also , this adif flag is going to be set once the conversion is done.. So I am just polling that. Anyway this polling is going to take hardly 11 to 12 clock cycles only. Just...
adcon0 tells that i have selected channel 0 and and the last bit in adcon0 is the ADON.
adcon1 , i have configured all ports as digital except AN0 where I am providing the input.
adcon2 ,the Acquisition Time is 20*Tad and the Conversion Clock is ADCS2:ADCS0=110 ( FOSC/64).
My oscillator...
I am using pickit3 debugger. I think it is enough if I can view the ADRES register in the watch window in mplab.
after this line "while(ADIF == 0)" i am seeing in Watch window,ADRES register.
I have a 20Mhz oscillator.
I have given the code again with some changes in the sampling...
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.