Danke für die Antwort dl8dtl:) ,
Dein Tipp mit dem JTD-Bit hat mir geholfen, mich schnell im Datenblatt
zurechtzufinden. Ich habe folgende Stelle gefunden:
1 | To be able to use the JTAG interface, the JTAGEN Fuse must be
|
2 | programmed. The device is default shipped with the fuse programmed. In
|
3 | addition, the JTD bit in MCUCR must be cleared. Alternatively, if the JTD bit
|
4 | is set, the external reset can be forced low. Then, the JTD bit will be
|
5 | cleared after two chip clocks, and the JTAG pins are available for
|
6 | programming. This provides a means of using the JTAG pins as normal port pins
|
7 | in Running mode while still allowing In-System Programming via the JTAG
|
8 | interface. Note that this technique can not be used when using the JTAG pins
|
9 | for Boundary-scan or On-chip Debug. In these cases the JTAG pins must be
|
10 | dedicated for this purpose.
|
Da ich ja JTAG benutzen will, um damit auch zu debuggen, geht das wohl
nicht. Meine Idee war, dass ich durch Taster von außen die vier PINS
jeweils dem ADC oder JTAG zuweise, indem ich die Register entsprechend
belege. Oder geht das doch irgendwie?
Wenn das nicht geht werde ich wohl einen externen ADC verwenden müssen.
Vielen Dank dl8dtl