![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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? Any built-in function or sample code? Thanks | |
| |
| | (permalink) |
| If you go to the PICList there is a delay code generator, which will generate assembler code for you simply by specifying the delay required and the clock speed. | |
| |
| | (permalink) | ||
| Quote:
the code will come automatically.. http://www.piclist.com/techref/picli...egen/delay.htm Quote:
Regards, Simran..
__________________ Simran.. 8051 Specialist.. | |||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
Thanks! | ||
| |
| | (permalink) |
| 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..
__________________ Simran.. 8051 Specialist.. | |
| |
| | (permalink) | |
| Quote:
Btw, your favourite actress is Simran? | ||
| |
| | (permalink) |
| You'll also have to mention the value of crystal you are using for the project.. Regards, Simran..
__________________ Simran.. 8051 Specialist.. | |
| |
| | (permalink) | |
| Quote:
Simran Singh.. Regards, Simran..
__________________ Simran.. 8051 Specialist.. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Which motor you are using..? Stepper motor or DC motor.. ? Regards, Simran..
__________________ Simran.. 8051 Specialist.. | |
| |
| | (permalink) | |||
| Quote:
Quote:
Quote:
Or for a 20MHz clock? 'NOP NOP NOP NOP NOP' | ||||
| |
| | (permalink) | |
| Quote:
Thanks ! Last edited by flemmard; 8th September 2007 at 08:31 PM. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
we do have to add nested loops... sometimes three.. if it is 8 bit rom .. hence it is complicated than C language.. atleast for the beginner.. Regards, Simran..
__________________ Simran.. 8051 Specialist.. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Need help with Intel Assembly Language and PIC16F877 | avinsinanan | Micro Controllers | 10 | 4th March 2008 11:02 AM |
| Line Detection Robot using PIC16F877 | helmyshahryl | Micro Controllers | 0 | 28th August 2007 02:54 AM |
| serial features of pic16f877 | jambulov | Micro Controllers | 1 | 4th November 2004 10:08 PM |
| some newbie's questions concerning pic16f877.. | kimhsieh2 | Micro Controllers | 4 | 12th January 2004 11:53 PM |
| Help in programming PIC16F877..... | Azhar Ali chohan | Micro Controllers | 3 | 24th June 2003 12:08 PM |