Freescale Semiconductor, Inc.
Result Data:
Always returns 32 bits of data, regardless of the size of the register being read. If the
register is less than 32 bits, the result is returned zero extended.
Register Field:
The system control register is specified by the register field (see Table 5-24).
Table 5-24. Register Field for RSREG and WSREG
System Register
Return Program Counter (RPC)
Select Code
0000
Current Instruction Program Counter (PCC)
Status Register (SR)
0001
1011
User Stack Pointer (USP)
1100
Supervisor Stack Pointer (SSP)
Source Function Code Register (SFC)
Destination Function Code Register (DFC)
Temporary Register A (ATEMP)
Fault Address Register (FAR)
Vector Base Register (VBR)
1101
1110
1111
1000
1001
1010
5.6.2.8.7 Write System Register (WSREG). Operand data is written into the specified
system control register. All registers that can be written in supervisor mode can be written
in BDM. Several internal temporary registers are also accessible.
Command Format:
15
0
14
0
13
1
12
0
11
0
10
1
9
0
8
0
7
1
6
0
5
0
4
0
3
0
REGISTER
Command Sequence:
WSREG
???
MS DATA
"NOT READY"
LS DATA
"NOT READY"
NEXT CMD
"CMD COMPLETE"
XXX
NEXT CMD
"ILLEGAL"
"NOT READY"
Operand Data:
The data to be written into the register is always supplied as a 32-bit long word. If the
register is less than 32 bits, the least significant word is used.
Result Data:
“Command complete” status is returned when register write is complete.
5- 78
MC68340 USER’S MANUAL
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com