Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi,
I wish to drive the motor clockwise for 5 secs and halt for 5 secs and then continue running in ANTI-clockwise for 5 seconds....the cycle should continue this way.
How do i do the delay in PIC 16f877 of MICROTECH?
simrantogether said:well, very simple.. go to this site.. and enter values..
the code will come automatically..
PIC is by microchip' ...
Regards,
Simran..![]()
simrantogether said:well, very simple.. go to this site.. and enter values..
the code will come automatically..
PIC is by microchip' ...
Regards,
Simran..![]()
simrantogether said:In c, it is definitely much easier..
Find out a function .. or make a function that generate a delay of 1 micro second..
hence if you need a 5000 micro second delay.. then just put the value 5000 in brackets of function call..
The function of delay of one microsecond .. you can have it from Sir Nigel..
or, develop by yourself.. or net.. or book..
or give me some time.. i'll try..
Regards,
Simran..![]()
flemmard said:Btw, your favourite actress is Simran![]()
simrantogether said:You'll also have to mention the value of crystal you are using for the project..
Regards,
Simran..![]()
simrantogether said:In c, it is definitely much easier..
Find out a function .. or make a function that generate a delay of 1 micro second..
hence if you need a 5000 micro second delay.. then just put the value 5000 in brackets of function call..
The function of delay of one microsecond .. you can have it from Sir Nigel..
simrantogether said:Which motor you are using..?
Stepper motor or DC motor.. ?
Regards,
Simran..![]()
simrantogether said:You'll also have to mention the value of crystal you are using for the project..
Regards,
Simran..![]()
Nigel Goodwin said:'NOP' - there you go!![]()
Or for a 20MHz clock?
'NOP
NOP
NOP
NOP
NOP'
flemmard said:I'm using DC motor. Btw, heard stepper motor is much costlier than DC...
Thanks !