SLAU320AJ July 2010 – May 2021
To use some of the features of the JTAG interface provided by the MSP430Xv2 architecture, setting of the CPU PC of the target device is required. The following flow is used to accomplish this. With the MSP430Xv2 architecture, it is strongly recommended that after setting the PC no additional memory access is performed other than the described quick access methods under Section 2.3.3.3 and Section 2.3.7. After setting the PC, the target device can be either released from JTAG control or continued to be clocked by providing TCLK to execute user program code that was previously stored at the memory location the PC is now pointing to. In any case, before the memory can be accessed again, the CPU must be put again into the Full-Emulation-State as described in Section 2.3.2.2.1.
CPU must be in the Full-Emulation-State before the following sequence. | ||
ClrTCLK | ||
IR_SHIFT("IR_DATA_16BIT") | ||
SetTCLK | ||
DR_SHIFT16("MOVA opcode incl. upper nibble of 20 bit PC value") | ||
clrTCLK | ||
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x1400) : release low byte | ||
IR_SHIFT("IR_DATA_16BIT") | ||
ClrTCLK | ||
SetTCLK | ||
DR_SHIFT16("PC_Value") : Insert the lower 16 bit value for PC | ||
ClrTCLK | ||
SetTCLK | ||
DR_SHIFT16(0x4303) : insert NOP instruction to be pre-fetched by CPU | ||
ClrTCLK : Now PC is set | ||
IR_SHIFT("IR_ADDR_CAPTURE") : Disable IR_DATA_16BIT | ||
DR_SHIFT20(0x00000) | ||
Load PC completed |