85 if(states == RSTLOW_SBW || states == RSTLOW_JTAG)
101 if(states == RSTLOW_JTAG || states == RSTHIGH_JTAG)
113 if(states == RSTLOW_SBW || states == RSTHIGH_SBW)
125 if(states == RSTLOW_JTAG)
132 if(states == RSTLOW_SBW || states == RSTHIGH_SBW)
145 if(states == RSTHIGH_JTAG)
158 for (i = 6; i > 0; i--)
176 unsigned long TDOword = 0x00000000;
177 unsigned long MSB = 0x00000000;
182 case F_BYTE: MSB = 0x00000080;
184 case F_WORD: MSB = 0x00008000;
186 case F_ADDR: MSB = 0x00080000;
188 case F_LONG: MSB = 0x80000000;
193 for (i = Format; i > 0; i--)
void usDelay(word microseconds)
Delay function (resolution is ~1 us)
#define ClrTST()
SBW macro: clear TEST pin signal.
#define SBWCLK
JTAG clock pin in SBW mode.
byte tdo_bit
Holds the value of TDO-bit.
#define SetTST()
SBW macro: set TEST pin signal.
#define SBWDATO
JTAG data_out pin in SBW mode -separate pin in MSP430F5437 - common IO translator.
#define IR_JMB_EXCHANGE
Request a JTAG mailbox exchange.
#define RestoreTCLK(x)
JTAG macro: restore TCLK signal on TDI pin (based on input: x)
byte TCLK_saved
Holds the last value of TCLK before entering a JTAG sequence.
void jResetJtagTap(void)
Reset target JTAG interface and perform fuse-HW check.
void jsbwJtagUnlock(void)
Function for resetting the JTAG lock via JSBW.
#define ClrTDI()
JTAG macro: clear TDI signal.
#define SetTCK()
JTAG macro: set TCK signal.
#define ClrRST()
SBW macro: clear RST signal.
#define SetTMS()
JTAG macro: set TMS signal.
#define StoreTCLK()
JTAG macro: return current TCLK signal (on TDI pin)
long jsbw_IR_Shift(byte instruction)
Function for shifting a new instruction into the JTAG instruction register through JSBW (MSB first...
void StartJtagJSbw(byte states)
Start JTAG communication in JSBW mode.
void MsDelay(word milliseconds)
Delay function (resolution is 1 ms)
void jRelease(void)
Releases the JSBW logic.
void JsbwMagicPattern(void)
Function for applying the magic pattern via JSBW.
#define IR_TEST_3V_REG
Instruction for 3 volt test register in 5xx.
#define ClrTCK()
JTAG macro: clear TCK signal.
#define JTAGOUT
JTAG output register.
#define ScanTDO()
JTAG macro: return TDO value (result 0 or TDO (0x40))
#define SetTDI()
JTAG macro: set TDI signal.
Low Level function prototypes, macros, and pin-to-signal assignments regarding to user's hardware...
#define RST
P5.3 Hardware RESET input pin.
long jsbw_DR_Shift(long data)
Function for shifting data into the JTAG data register through JSBW (MSB first, but with interchanged...
#define SetRST()
SBW macro: set RST signal.
JTAG Function Prototypes and Definitions.
long jsbw_Shift(word Format, long Data)
Shift a value into TDI (MSB first) and simultaneously shift out a value from TDO (MSB first)...
#define ClrTMS()
JTAG macro: clear TMS signal.