Pages: 1 [2]   Go Down
Author Topic: Is it possible to jump out of the loop function?  (Read 4361 times)
0 Members and 1 Guest are viewing this topic.
North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The 'infinite' loop of while(1) is broken if you have interrupts...  :-?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25713
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you disconnect the clock, the processor will halt.
I imagine blasting caps strapped to crystals are frowned upon in most jurisdictions?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

San Pedro, CA.
Offline Offline
Full Member
***
Karma: 3
Posts: 155
My head HURTS!!!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Suicide is never the solution.
Quote
Or have the latch drive a servo attached to the chip that then yanks the processor out of it's socket?

Quote
The servo should have a big capacitor to finish I guess

Quote
I imagine blasting caps strapped to crystals are frowned upon in most jurisdictions?

This has to be one of the funniest posts I've read here yet. Had me laughing pretty hard. ;D ;D ;D

Thanks,
DJ
Logged

DigitalJohnson

São Paulo/SP/Brazil
Offline Offline
Sr. Member
****
Karma: 2
Posts: 305
Brazilian Arduino Team
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

+1 funniest ever post
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
void dropHammer(){

EDIT:

Quote
The 'infinite' loop of while(1) is broken if you have interrupts...  

Code:
void shutdown() {
  for (i=0; i<18, i++){
    detatchInterrupt(i);
  }
  while (1){}
}
   
« Last Edit: January 09, 2011, 03:59:49 pm by WizenedEE » Logged

Pages: 1 [2]   Go Up
Jump to: