Pages: [1]   Go Down
Author Topic: What is the ICSP pins for?  (Read 20695 times)
0 Members and 1 Guest are viewing this topic.
Philippines
Offline Offline
Jr. Member
**
Karma: 4
Posts: 81
Graduating Computer Engineering Student
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Could anyone tell me what are the ICSP pins for? smiley

is this an input pin? for expansion of output pins? thanks!

- Migs
Logged

Don't stop Learning.

Arduino Projects:

SMS-Based LED Matrix Display
http://youtu.be/WVhDr5CNxwE

California
Offline Offline
God Member
*****
Karma: 13
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Mostly ICSP it is a AVRtiny programming header for the Arduino consisting of MOSI, MISO, SCK, RESET, VCC, GND.  It is often refered to as an SPI (Serial Peripheral Interface) which could be considered an "expansion" of the output, but really, you are slaving the output device to the master of the SPI bus.

So, Master Input and Output depends on the master smiley-wink
Logged


Philippines
Offline Offline
Jr. Member
**
Karma: 4
Posts: 81
Graduating Computer Engineering Student
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh. I see. I've read somewhere that it's also used to burn the bootloader to the ATmega Chip. Is this true?

Quote
which could be considered an "expansion" of the output, but really, you are slaving the output device to the master of the SPI bus.

does this mean i can use it to cascade two shields? i'm having problems stacking two shields together (GSM Shield and LED matrix shield) because of pin connections.

- Migs
Logged

Don't stop Learning.

Arduino Projects:

SMS-Based LED Matrix Display
http://youtu.be/WVhDr5CNxwE

More Cowbell
Offline Offline
Edison Member
*
Karma: 11
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

With reference to the AVR chips themselves, they are they way you program the chips in-system.  You connect the programmer to these six pins somehow - usually over a ribbon cable with two 6 pin IDC headers but you can just use some jumpers too.  The programmer can then send the production file (elf file) to the chip.  You can get the production file from the Arduino software or from Atmel Studio.

This guy is going from the 6-pin cable to jumpers to the breadboard.  I would have just used a IDC socket.  But otherwise, this is how you do it.  This bypasses the Arduino for a bare $0.80-$3.00 controller which you can add to any project without having a dangling Arduino, but you have to buy the programmer for $35.

http://allaboutee.com/2011/05/11/how-to-program-an-avr-microcontroller/
Logged

Vexatious Sampler

California
Offline Offline
God Member
*****
Karma: 13
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Oh. I see. I've read somewhere that it's also used to burn the bootloader to the ATmega Chip. Is this true?

Absolutely, Nick Gammon has a slick sketch that takes care of this:
http://www.gammon.com.au/forum/?id=11635

Quote
does this mean i can use it to cascade two shields? i'm having problems stacking two shields together (GSM Shield and LED matrix shield) because of pin connections.

Only if the two shields have micro-controller to slave (unlikely).  With two complicated devices, I would recommend an I2C setup:

http://www.gammon.com.au/forum/?id=10896

If you can get your specifics down, I am pretty sure Nick can help you (He is a moderator here...).
Logged


Philippines
Offline Offline
Jr. Member
**
Karma: 4
Posts: 81
Graduating Computer Engineering Student
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the great tip guys. smiley just new to the Arduino Community. Lots more to it that just straight up prototyping. haha. getting a hang of it though. thanks again. smiley
Logged

Don't stop Learning.

Arduino Projects:

SMS-Based LED Matrix Display
http://youtu.be/WVhDr5CNxwE

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10426
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The clue is in the acronym  - ICSP = In-Circuit Serial Programming
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: