PDA

View Full Version : change in the delay in real time



manu123
- 6th April 2007, 14:26
hi,
i adjusted the delay of each bit such that it is 250us.i would out a bit in pin_b7. all the simulations are done in mplab stopwatch and protues. but when i do it in real time. that is when i burn it in pic16f877a then the whole thing changes. i dont kno why.

will it happen because of bad programming or due to tha clock appied. i used 20Mhz clock in simulation and in the practical circuit too..
while burning i set the fuses to HS(high Speed). i use micropic to burn the hex code.

mackrackit
- 6th April 2007, 14:38
Do you have DEFINE OSC X at the beginning of the code?

X is clock speed.

Post some code, might be some thing else.

manu123
- 6th April 2007, 17:06
in C i dont think it is needed.. i will do it and reply u soon

Darrel Taylor
- 6th April 2007, 19:11
Hello,

I'm really curious here.

We've been getting a bunch of people come to this forum requesting help with their C code, but this is a PicBasic Pro forum.

Was there a link somewhere that you followed to get to this forum?
Maybe someone recommended this place for help with C code?

.