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.

Varying results of delay() function in PIC

Status
Not open for further replies.

suwaii

Member level 4
Joined
Jan 21, 2006
Messages
68
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,830
pic delay

hi

i use delay(1000) of MikroC in the programming pic18f452 but the problem the PIC wlll not delay correct and i see sometimes if the voltage of PIC between 5v and 6v thePIC will give you correct delay if more or less than this the PIC will give wrong delay.... is this correct how i can get correct delay
 

pic delay function

What oscillator mode are using using and what value components?
 

delay pic 18

last month, i have problem like that. I know to solve the problem. Cristall.
Please check your oscillator with DSO.
 

delay for pic

the crystal= 10mhz

what do you mean by componet value and DSO
 

delay loop pic 18

can the delay function handle more then 256 (unsigned char)?
check the function prototype in the header file.

hock
 

Re: Delay in PIC

hock said:
can the delay function handle more then 256 (unsigned char)?
check the function prototype in the header file.

hock


Definitely! it handles more than 256. In mikroC, it handles upto 10000.
example: delay_ms(10000) will give a delay of 10seconds.
 

Delay in PIC

How much deviation are you seeing? What type of crystal are you using - parallel or series? Do your load capacitors meet the requirements of the crystal?
 

Re: Delay in PIC

the capacitor =22pf, crystal=10 mhz
PIC18f452
i make the dealy will work in the program if the input port pin#36= on
i use MikroC

what i see
if the voltage of PIC and (input port pin #36 on )between 5-7V the delay loop
will delay correctly
if more 7V the PIC will not give you right delay

can any one explain to me why
 

Re: Delay in PIC

can any one explain to me why ??
 

Delay in PIC

this problem happened to me
the reason was the power supply
it wasn't purely regulated
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top