2
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ "ATMEL microchip" is pretty broad, but i assume you refer to some 8-bit AVR controller? \$\endgroup\$
    – Rev
    Commented Aug 23, 2013 at 10:09

1 Answer 1

1
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\begingroup\$ 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? \$\endgroup\$
    – akavel
    Commented Aug 23, 2013 at 10:26
  • \$\begingroup\$ @akavel: That is correct. \$\endgroup\$
    – Rev
    Commented Aug 23, 2013 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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