![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
hai Aim doing automatic cleaning system using 89C51 .In that after completion of cleaning cycle The microcontroller should reset and it should be ready for next cycle. How to reset the microcontroller after completion of cycle. Initially aim using power on reset circuit. Thank you Regards chandu | |
| |
| | #2 |
|
I'm not familiar with the 89C51, but you could make a jump to the reset vector and do all the initialising stuff, or use a pin to make a hardware reset.
| |
| |
| | #3 |
|
You can also reset your internal variables and registers to zero and just run the input loop to wait for the start og the next cycle.
| |
| |
| | #4 |
|
If you are capable of writing the loops and timing routines to actually perform the steps of the wash cycle, I don't see how you would even need to ask something like this... if you want your program to go to the beginning, write the code to make it go to the beginning! In assembly or BASIC or similar, this could be as simple as a GOTO instruction, in a higher-level language like C it can be as easy as putting your whole program inside an infinite WHILE loop.
__________________ EEgeek.net | |
| |
| | #5 |
|
BASIC and C are both high level languages aren't they?
__________________ I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong. Please ask on the open forum if you have a question and I'll be happy to help, if I know the answer. | |
| |
| | #6 | |
| Quote:
| ||
| |
| | #7 |
|
I agree, BASIC is generally higher level than C but to be pickey it depends on the dialect. GCC is definately a higher level than BBC BASIC but Visul Basic is more higher level than GCC.
__________________ I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong. Please ask on the open forum if you have a question and I'll be happy to help, if I know the answer. | |
| |
| | #8 |
|
Fair enough, my wording choice was poor - by "a higher-level language" I didn't intend a comparison between BASIC and C, merely to say that C is a somewhat high-level language in the grand scheme of programming languages... perhaps "high-ish-level level language" would have been more appropriate ![]() I was merely associating BASIC and ASM because of the use of GOTO-type statements which are either disallowed or at least frowned upon in languages like C - with the use of a GOTO, it would be very easy to just start from the very beginning of the program again, without having to use loops.
__________________ EEgeek.net | |
| |
|
| Tags |
| reset |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| How to reset SCR used for triggering camera flash | shootfirst | Electronic Projects Design/Ideas/Reviews | 22 | 8th May 2009 09:22 PM |
| 74LS90 power-on auto reset | Torben | Electronic Projects Design/Ideas/Reviews | 17 | 20th December 2006 05:18 AM |
| vx-5r reset problem | tom muleady | General Electronics Chat | 2 | 5th July 2006 07:01 PM |
| uC 'network' reset circuitry | rockin_rick | Electronic Projects Design/Ideas/Reviews | 8 | 30th May 2006 02:03 AM |
| Sleep, Call Stack & Software Reset | Dan East | Micro Controllers | 2 | 4th June 2004 02:13 PM |