ICSP, Atmega128 Question...

Discussion in 'Embedded Systems and Microcontrollers' started by midnitrcr, Oct 16, 2006.

  1. midnitrcr

    Thread Starter New Member

    Oct 16, 2006
    I'm working on a project that interfaces a SD/MMC card to an Atmega128 via the SPI interface (MISO, MOSI, etc... pins) and just found out that the ICSP header uses the same ports.

    What is the easiest way of including both in my circuit? I'm assuming both cannot be used simultaneously...
  2. hgmjr

    Retired Moderator

    Jan 28, 2005
    Greetings midnitrcr,

    There are several techniques that can be used to provide your target ATMEGA128 with the ability to connect to either the ISP programmer or to your SPI communication bus.

    The AVR Application note AVR910 (See figure 3) on the ATMEL website shows one of the simpliest ISP implementations.