Motorola MSC8101 ADS User's Guide Page 243

  • Download
  • Add to my manuals
  • Print
  • Page
    / 346
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 242
Writing EOnCE Registers Through JTAG
EOnCE/JTAG 12-11
12.1.3.4 CORE_CMD Example 4
Instruction:
move.l #$c0ffee,d8
Opcode:
0x3820 A000 30E0 3FEE 80C0
CORE_CMD:
0x0301 DFF0 70CB
12.2 Writing EOnCE Registers Through JTAG
This section presents an example of how the host writes to the SC140 core 32-bit Event
Counter Value Register (ECNT_VAL) via JTAG. This example shows how an EOnCE
register can be written via JTAG. This general procedure applies to writing all the writable
EOnCE registers:
1. Select-IR: CHOOSE_EONCE instruction to select EOnCE device.
2. Select-DR: ‘1’ since the MSC8101 has only one EOnCE device.
3. Select-IR: ENABLE_EONCE instruction to allow you to perform system debug
functions.
4. Select-DR: Write 0x0041 into the ECR to perform the following operation:
ECR[R/W] = 0 to perform a write access.
ECR[GO] = 0 to remain inactive.
ECR[REGSEL] = 1000001 to select the ECNT_VAL register.
5. Select-DR: Write the 32-bit ECNT_VAL data on
TDI.
ImmA ImmB Opcode Prefix1 Length
0x80C0 0x3FEE 0x30E0 0x3820 3 words
ImmA[15–0]
1000 0000 1100 0000
ImmB[15–0]
0011 1111 1110 1110
Opcode[15–0]
0011 0000 1110 0000
Prefix1[5]
1
Prefix1[7]
0
ImmA[0–13]
0000 0011 0000 00
ImmB[0–13]
0111 0111 1111 11
Opcode[0–15]
0000 0111 0000 1100
Prefix1[5, [7]
10 11
Note: The 48-bit CORE_CMD register is the concatenation of the bits in boldface.
Page view 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 345 346

Comments to this Manuals

No comments