hinata46243 / mega-isp

Automatically exported from code.google.com/p/mega-isp
0 stars 0 forks source link

ISP pins are tied to ground at startup #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
> Don't they start out as INPUT?

Yes.

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