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.

asked Aug 23, 2013 at 10:04
\$\endgroup\$
1
  • \$\begingroup\$ "ATMEL microchip" is pretty broad, but i assume you refer to some 8-bit AVR controller? \$\endgroup\$ 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.

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.