|
|
|
| Ref.: |
|
| |
|
|
| SpaceWire Router |
| UserManual |
| |
|
|
| Issue: | 3.4 |
|
| |
|
|
| User Manual |
|
| ||
|
|
| Date: | 11th July 2008 |
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
Mask | 4 bytes for the mask to modify a |
|
|
|
| ||
Length |
|
|
|
|
|
| |
|
|
|
| ||||
Header | The header CRC used to detect errors in the header part of the command | 1 |
| ||||
CRC | packet. |
|
|
|
| ||
|
|
|
| ||||
Data and | The data and mask values to write to the SpaceWire router. The data is | 8 |
| ||||
Mask | written dependent on the mask as shown in Figure |
|
|
|
| ||
|
|
|
|
| |||
Data and | The data and mask CRC used to detect errors in the data part of the |
| 1 |
| |||
Mask CRC | command packet. |
|
|
|
| ||
|
|
|
|
|
|
|
|
A
Register Value = (Mask AND Command Data) OR (NOT Mask AND Register Data)
An example is shown below, the highlighted bits are set or reset by the command.
31 |
|
|
|
|
|
|
| 23 |
|
|
|
|
|
|
| 15 |
|
|
|
|
|
|
|
| 7 |
|
|
|
|
|
| 0 |
| |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Command Data | |
31 |
|
|
|
|
|
|
| 23 |
|
|
|
|
|
|
| 15 |
|
|
|
|
|
|
|
| 7 |
|
|
|
|
|
| 0 |
| |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Command Mask | |
31 |
|
|
|
|
|
|
| 23 |
|
|
|
|
|
|
| 15 |
|
|
|
|
|
|
|
| 7 |
|
|
|
|
|
| 0 |
| |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | Register Data | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Returned to source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
|
|
|
|
|
|
|
| (Mask AND Command Data) OR (NOT Mask and Register Data) |
|
|
|
|
|
|
|
|
|
|
31 |
|
|
|
|
|
|
| 23 |
|
|
|
|
|
|
| 15 |
|
|
|
|
|
|
| 7 |
|
|
|
|
|
| 0 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
Data Written to Register
Figure 7-8 Read-Modify-Write example operation
Preliminary | 68 |