Continue to Site

Welcome to EDAboard.com

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.

PIC AD conversion timing error

Status
Not open for further replies.

ghattas.akkad

Member level 1
Joined
Apr 30, 2013
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,555
hello
i am having trouble with the AD conversion timing i have set the ADCON2 register to use the RC oscillator
PIC18f4520
Code:
ADCON2 = 0b10001011;

but i keep having the following error on proteus simulator
(shown in the picture)
 

Attachments

  • proterr.png
    proterr.png
    34.3 KB · Views: 78

refer the datasheet for ur pic in which in ADC section they mention the given A/D Acquisition Requirements where u will get ur answer and on that basis use the time
 


thank you i fixed it for the current speed 4MHz

- - - Updated - - -

refer the datasheet for ur pic in which in ADC section they mention the given A/D Acquisition Requirements where u will get ur answer and on that basis use the time

yes i did that and fixed it for the current speed
but on 48Mhz i used the F/16 to get 3MHz then the T=0.33 and i used taq*6 to get 2us
but the error is still shown
 

try out with maximum time
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top