Sonsivri

Electronics => AVR, 8051 Family and ARM Area => Topic started by: localcrack on August 08, 2015, 03:13:33 15:13



Title: is this possible to use JTAG pin as digital IO
Post by: localcrack on August 08, 2015, 03:13:33 15:13
Is this possible to use jtag pin as digital i/o
how to wire TCK, TMS, TDO, TDI to external digital i/o so it doesn't conflict with normal jtag operation.


Title: Re: is this possible to use JTAG pin as digital IO
Post by: hate on August 09, 2015, 01:29:28 01:29
Are you planning to use both modes (jtag and io) simultaneously? If yes, usage depends on what you want to attach to those pins and you can't debug those pins during a debug session. Otherwise just disable jtag and they will act as digital io.


Title: Re: is this possible to use JTAG pin as digital IO
Post by: h0nk on August 09, 2015, 04:57:18 16:57

Hello localcrack,

i would recommend a delay loop of approx 1 sec before Your program disable
the JTAG/SWD-functionality of the pins.
This second gives You the chance to regain access to the controller in case
something went wrong.
Some controller and JTAG-adapter support "Connect under Reset".
This should also sufficient to regain access to Your controller.


Best Regards