Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCK low ---before--- RESET #22

Open
GoogleCodeExporter opened this issue Jul 20, 2015 · 1 comment
Open

SCK low ---before--- RESET #22

GoogleCodeExporter opened this issue Jul 20, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

The AVR ISP documentation...
http://www.atmel.com/dyn/resources/prod_documents/doc0943.pdf

...states that... "SCK ... Immediately after the Reset goes active, this pin 
will be driven to zero by the programmer."

The opposite is performed in start_pmode...

  // RESET ---not--- active
  pinMode(RESET, OUTPUT);
  digitalWrite(RESET, HIGH);

  // SCK driven low
  pinMode(SCK, OUTPUT);
  digitalWrite(SCK, LOW);

  delay(50);

  // RESET active
  digitalWrite(RESET, LOW);

  delay(50);

If the target is driving SCK high when start_pmode is entered, this code 
creates a short-circuit for 50 ms.  More than enough time to damage both 
processors.

http://code.google.com/p/mega-isp/source/browse/trunk/avrisp/ArduinoISP.pde#241

Original issue reported on code.google.com by arduino....@gmail.com on 15 Jun 2011 at 4:45

@GoogleCodeExporter
Copy link
Author

Original comment by rsb...@gmail.com on 25 Jun 2011 at 3:02

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant