![]() |
![]() |
4-wire JTAG emulation using Spy-Bi-Wire for LPM5 wakeup of an FRAM device
Definition in file JSBW.c.
Go to the source code of this file.
Functions | |
void | jRelease (void) |
Releases the JSBW logic. More... | |
void | StartJtagJSbw (byte states) |
Start JTAG communication in JSBW mode. More... | |
void | jResetJtagTap (void) |
Reset target JTAG interface and perform fuse-HW check. More... | |
long | jsbw_Shift (word Format, long Data) |
Shift a value into TDI (MSB first) and simultaneously shift out a value from TDO (MSB first). More... | |
long | jsbw_IR_Shift (byte instruction) |
Function for shifting a new instruction into the JTAG instruction register through JSBW (MSB first, but with interchanged MSB - LSB, to simply use the same shifting function Shift()). More... | |
long | jsbw_DR_Shift (long data) |
Function for shifting data into the JTAG data register through JSBW (MSB first, but with interchanged MSB - LSB, to simply use the same shifting function Shift()). More... | |
void | JsbwMagicPattern (void) |
Function for applying the magic pattern via JSBW. More... | |
void | jsbwJtagUnlock (void) |
Function for resetting the JTAG lock via JSBW. More... | |
Variables | |
byte | tdo_bit |
Holds the value of TDO-bit. More... | |
byte | TCLK_saved |
Holds the last value of TCLK before entering a JTAG sequence. More... | |
void jRelease | ( | void | ) |
void jResetJtagTap | ( | void | ) |
long jsbw_DR_Shift | ( | long | data | ) |
Function for shifting data into the JTAG data register through JSBW (MSB first, but with interchanged MSB - LSB, to simply use the same shifting function Shift()).
data |
Definition at line 249 of file JSBW.c.
long jsbw_IR_Shift | ( | byte | instruction | ) |
Function for shifting a new instruction into the JTAG instruction register through JSBW (MSB first, but with interchanged MSB - LSB, to simply use the same shifting function Shift()).
instruction | (8 bit JTAG instruction) |
Definition at line 229 of file JSBW.c.
long jsbw_Shift | ( | word | Format, |
long | Data | ||
) |
Shift a value into TDI (MSB first) and simultaneously shift out a value from TDO (MSB first).
word | Format (number of bits shifted, 8 (F_BYTE), 16 (F_WORD), 20 (F_ADDR) or 32 (F_LONG)) |
long | Data (data to be shifted into TDI) |
void jsbwJtagUnlock | ( | void | ) |
void JsbwMagicPattern | ( | void | ) |
void StartJtagJSbw | ( | byte | states | ) |
byte TCLK_saved |
Holds the last value of TCLK before entering a JTAG sequence.
Definition at line 77 of file LowLevelFunc430Xv2.c.
byte tdo_bit |
Holds the value of TDO-bit.
Definition at line 75 of file LowLevelFunc430Xv2.c.