SLAU320AJ July 2010 – May 2021
To keep descriptions of the JTAG functions in the following sections simple, high-level macros have been used to describe the JTAG access. This document does not detail the basic JTAG functionality; rather, it focuses on the MSP430-specific implementation used for memory access and programming. For the purpose of this document, it is important to show the instructions that must be loaded into the JTAG instruction register, as well as when these instructions are required. Section 2.2.2.1 summarizes the macros used throughout this document and their associated functionality. See the accompanying software for more information.
Macro Name | Function |
---|---|
IR_SHIFT (8-bit instruction) |
Shifts an 8-bit JTAG instruction into the JTAG instruction register. At the same time, the 8-bit value is shifted out through TDO. |
DR_SHIFT16 (16-bit data) |
Shifts a 16-bit data word into a JTAG data register. At the same time, the 16-bit value is shifted out through TDO. |
DR_SHIFT20 (20-bit address) |
Shifts a 20-bit address word into the JTAG Memory Address Bus register. At the same time, the 20-bit value is shifted out through TDO. Only applicable to MSP430X architecture devices. |
MsDelay (time) | Waits for the specified time in milliseconds |
SetTCLK | Sets TCLK to 1 |
ClrTCLK | Sets TCLK to 0 |
TDOvalue | Variable containing the last value shifted out on TDO |