Pages: [1]   Go Down
Author Topic: ISP pins, dedicated?  (Read 678 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Prototype Limited Edition owner! lol
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Im was wondering if the ISP pins (miso, mosi etc), need to dedicated for ISP programming? Or can the pins be shared with peripherals? For ex. be connected to some LED's or select pins of a multiplexer. Because i really need all the pins i can get... And im using a 644 already smiley-razz
« Last Edit: October 24, 2010, 12:20:14 pm by Intosia » Logged

USA
Offline Offline
Full Member
***
Karma: 2
Posts: 213
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use them all you want. They are need for example for I2C and other things. They only get used as ISP pins when you connect an ISP programmer to them. The ISP programmer puts the processor in RESET and then does it thing.


Mark
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13073
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You can use them all you want
Are you certain?

I have to remove a piezoelectric buzzer from MOSI or programming consistenly fails.  I imagine there are other devices that should not be connected / powered while programming.
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
They only get used as ISP pins when you connect an ISP programmer to them.
Wrong.  They're connected to MISO, MOSI, SCK, (also known as digital pins 11, 12, 13 on the Arduino) RESET, 5V, and GND.

It is possible to use them as long as you either a) never use ICSP, b) are very careful about what is connected so that it's compatible with dual use, or c) unplug everything on those lines before you use ICSP.

-j
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6805
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

They are multi-use pins (except for RESET.)  If you want to use them for BOTH ISP and some other use, you'll have to be somewhat careful about the "other use."
Logged

Pages: [1]   Go Up
Jump to: