SLAU320AJ July 2010 – May 2021
To use some of the features of the JTAG interface provided by the MSP430, setting of the CPU PC of the target device is required. The following flow is used to accomplish this. Implementations for both the MSP430 and MSP430X architectures are shown.
CPU must be in the instruction-fetch state before the following sequence. | ||
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x3401) : release low byte | ||
IR_SHIFT("IR_DATA_16BIT") | ||
DR_SHIFT16(0x4030) : Instruction to load PC | ||
ClrTCLK | ||
SetTCLK | ||
DR_SHIFT16("PC_Value") : Insert the value for PC | ||
ClrTCLK | ||
SetTCLK | ||
IR_SHIFT("IR_ADDR_CAPTURE") : Disable IR_DATA_16BIT | ||
ClrTCLK : Now PC is set to "PC_Value" | ||
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x2401) : low byte controlled by JTAG | ||
Load PC completed |
CPU must be in the instruction-fetch state before the following sequence. | ||
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x3401) : release low byte | ||
IR_SHIFT("IR_DATA_16BIT") | ||
DR_SHIFT16(0x0X80) : Instruction to load PC, X = PC(19:16) | ||
ClrTCLK | ||
SetTCLK | ||
DR_SHIFT16("PC(15:0)") : Insert the value for PC(15:0) | ||
ClrTCLK | ||
SetTCLK | ||
IR_SHIFT("IR_ADDR_CAPTURE") : Disable IR_DATA_16BIT | ||
ClrTCLK : Now PC is set to "PC_Value" | ||
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x2401) : low byte controlled by JTAG | ||
Load PC completed |