i have an integrated system and one of the functions of my microcontroller(Atmega32A) is to apply the avr910 protocol(ISP) and program an other microcontroller. Now i want my main microcontroller(atmega32A) to know the value of the pins of the microcontroller i programmed. Which method is better?Like Jtag or debugWire protocol?And where i can find a code which just apply this protocol and read the port registers of the other microcontroller?I dont want set breakpoints and other functions..just read the port register of the microcontroller.
Or to find the inteface and the commands bettween my main microcontroller and the microcontroller which i want to read the port registers.
Thank you.Sorry for my english.