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

ISP pins are tied to ground at startup #23

Open
GoogleCodeExporter opened this issue Jul 20, 2015 · 3 comments
Open

ISP pins are tied to ground at startup #23

GoogleCodeExporter opened this issue Jul 20, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What is the expected output? What do you see instead?

When powering up, ISP pins are tied to ground, this can be problematic when 
doing In Circuit programming.

What version of the product are you using? On what operating system?

October 2010 by Randall Bohn

Please provide any additional information below.

simple to fix, add these lines at the end of the setup() function:

  pinMode(MOSI,INPUT);
  pinMode(RESET,INPUT);
  pinMode(MISO,INPUT);
  pinMode(SCK,INPUT);
  digitalWrite(MOSI,LOW);
  digitalWrite(RESET,LOW);
  digitalWrite(MISO,LOW);
  digitalWrite(SCK,LOW);

Original issue reported on code.google.com by goeb...@gmail.com on 22 Oct 2011 at 11:19

@GoogleCodeExporter
Copy link
Author

Don't they start out as INPUT? I'm not sure this is a problem.

Original comment by rsb...@gmail.com on 19 Nov 2011 at 10:43

@GoogleCodeExporter
Copy link
Author

no they don't, well, these 7 simple lines of code solved my problem anyway.

Original comment by goeb...@gmail.com on 19 Nov 2011 at 10:59

@GoogleCodeExporter
Copy link
Author

> Don't they start out as INPUT?

Yes.

Original comment by arduino....@gmail.com on 4 Jan 2012 at 9:11

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