| ??? 12/03/07 12:20 Read: times |
#147778 - The usual way? Responding to: ???'s previous message |
That doesn't actually "pause" the microcontroller, does it?
It just forces the microcontroller to get "stuck" in a tight loop in an ISR. This will work is some situations, but would not be useful in general (eg, if you have other interrupts that still need to be handled while "paused"). More generally, there will probably be only certain points in the program at which it is meaningful to "pause" the operation - so you'd use the "normal" approach of having the ISR set/clear a 'pause' flag, and the main code which work from that... To really pause the operation of the microcontroller itself, you'd probably put it into a low-power standby mode... |
| Topic | Author | Date |
| Pause MCU | 01/01/70 00:00 | |
| The usual way? | 01/01/70 00:00 | |
| standby mode ? | 01/01/70 00:00 | |
| Standby | 01/01/70 00:00 | |
| I am working on AT89C51. | 01/01/70 00:00 | |
| But what are you actually trying to achieve? | 01/01/70 00:00 | |
| Light focus adjustment | 01/01/70 00:00 | |
| Pause | 01/01/70 00:00 | |
| you will get a 'cleaner' pause if you | 01/01/70 00:00 | |
RE:you will get a 'cleaner' pause if you | 01/01/70 00:00 | |
| all your code will do is stay in the ISR ... | 01/01/70 00:00 | |
| I did post the cause..? | 01/01/70 00:00 | |
| look at the 2 post times :) | 01/01/70 00:00 |



