kunal5959
Junior Member level 3
I am trying to connect my ATMEGA128 board with ADC128s102 for my prj. The board is already functioning with programming interface ISP AVR MKII. AS shown in the diag the MISO and MOSI are connected as shown . Since the ADC uses SPI i have connected the MISO MOSI and SCK to corresponding pins on uC. Now since the SCK here is common for both Programmer and ADC i am not able to proogram my uC board because the "AVR studio shows not able to enter programming mode error". As shown in the data sheet while connecting multiple devices to SPI we just have to divide the SCk MISO and MOSI. Or may be i have misunderstood.
Can anyone suggest what is the best possible way to establish a error free communication between uC and AVRMK2 & uC and ADC using the SPI interface on the uC??
Can anyone suggest what is the best possible way to establish a error free communication between uC and AVRMK2 & uC and ADC using the SPI interface on the uC??