Does jtag able to debug single stepping on timer program?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi all,

Does jtag able to do single stepping on program such as control servo using timer? When i start to debug using avr studio using single stepping the servo seems like turning at all.I'm sure the program is working when i tried to run in normal way.But for single stepping it seems like not working.Can someone help me on this?

thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

another question is when using JTAG for debugging. Since a few pins from PORTC is used for JTAG connection. So can PORTC still be used as an i/p or o/p?

thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When you single step thats exactly what you do 1 instruction at a time so you can't expect anything else that requires the micro to run to actually work.

You can use the other 4 pins on portc like normal pins.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:

You can use the other 4 pins on portc like normal pins.

Is it u mean by PORTC can be use in parallel with JTAG?When i use PORTC for blinking.Will the logic high and low affect the PORT pin at the JTAG module?

thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DebugWire is a specialized version of JTAGICE that uses the single AVR reset pin for its connection. For the most part, this is found on ATtinys, but not always.

The standard JTAGICE uses a 4 wire connection, TDI, TDO, TMS and TCK. No matter what port these 4 JTAG pins are part of, the rest of that port is still usable as regular I/O or alternate functions. However, the 4 pins used for JTAG are only available for JTAG use while JTAG is enabled.

Here is an AVR TV presentation on the JTAGICE MKii which does both DebugWire and standard JTAGICE:
http://www.avrtv.com/2008/09/25/...

Be sure to read up on the "run timers in stopped mode" option found in the AVRStudio tools help.