Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

When programming an Atmel microchip over SPI (ISP), what external clocking do I have to provide to programee? Does it have to match programmer's internal clock frequency, or can be totally different because SPI CLK line will be used? If the latter, then are there any limitations on SPI CLK freq I will use on programmer, or will programee auto sync to whatever goes? Also, do I maybe need to disconnect any possible external clock from programee? Also, do I have to set any freq fuses on programee?

I'm newbie to EE, so I'd be grateful for thorough answers.

(For programmer I intend to try using a Raspberry Pi's SPI interface)

edit: uh, yes, I mean an AVR microcontroller, sorry and thanks.

share|improve this question
    
"ATMEL microchip" is pretty broad, but i assume you refer to some 8-bit AVR controller? –  Rev1.0 Aug 23 '13 at 10:09

1 Answer 1

up vote 1 down vote accepted

Assuming you refer to a Atmel AVR micro controller, the only limitation is, that the controllers main clock frequency must be at least 4x the clock speed of the ISP programming frequency.

share|improve this answer
    
yes, avr, thanks. So I must still provide some external/internal clock on the AVR, and then I can divide this freq by 4 and setup SPI on RasPi to something lower, correct? –  akavel Aug 23 '13 at 10:26
    
@akavel: That is correct. –  Rev1.0 Aug 23 '13 at 10:51
    
Awesome, thanksalot Rev1.0! –  akavel Aug 23 '13 at 13:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.