17.2.1.19 Acquisition Sequence Commands Word x Register
Legend: r = Reserved Bit; R = Readable Bit; W = Writable Bit; U =
Unimplemented Bit, read as '0'; -n = Value at POR;
'1' = Bit is set; '0' = Bit is cleared; x =
Bit value is unknown
| Name: | SMATHCMDx |
| Offset: | 0x7C3040, 0x7C3044, 0x7C3048, 0x7C304C, 0x7C3050, 0x7C3054, 0x7C3058, 0x7C305C, 0x7C3060, 0x7C3064, 0x7C3068, 0x7C306C, 0x7C3070, 0x7C3074, 0x7C3078, 0x7C307C |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| END | CMP | ||||||||
| Access | R/W | R/W | |||||||
| Reset | 0 | 0 |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| ACCB | ACCA | WMOV | |||||||
| Access | R/W | R/W | R/W | ||||||
| Reset | 0 | 0 | 0 |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| WM[1:0] | F[1:0] | BIN[1:0] | AIN[1:0] | ||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bit 23 – END Last Command in Sequence bit
| Value | Description |
|---|---|
1 |
This command is last in the sequence. |
0 |
There is the next command after this command. |
Bit 17 – CMP Compare Accumulator A bit
| Value | Description |
|---|---|
1 |
This command compares Accumulator A with thresholds in ITCLSxCMPLO and ITCLSxCMPHI registers as defined in CM[2:0] bits of the ITCLSxCON register. |
0 |
The comparison is disabled. |
Bit 12 – ACCB Latch Result into Accumulator B bit
| Value | Description |
|---|---|
1 |
This command latches the math result into Accumulator B. |
0 |
Accumulator B is not updated. |
Bit 11 – ACCA Latch Result into Accumulator A bit
| Value | Description |
|---|---|
1 |
This command latches the math result into Accumulator A. |
0 |
Accumulator A is not updated. |
Bit 10 – WMOV Write Mode Overwrite bit
| Value | Description |
|---|---|
1 |
The Result Write mode is replaced with settings in WM[1:0] bits of this command word. |
0 |
The Result Write mode is defined by WM[1:0] bits in the ITCLSxCON register. |
Bits 7:6 – WM[1:0] Command Write Mode bits
| Value | Description |
|---|---|
3 |
Results are saved when a match does not occur. |
2 |
No results are saved. |
1 |
Results are saved when a match occurs. |
0 |
All result data are always saved. |
Bits 5:4 – F[1:0] Math Operation Select bits
| Value | Description |
|---|---|
3 |
BIN - AIN |
2 |
BIN + AIN |
1 |
BIN |
0 |
AIN |
Bits 3:2 – BIN[1:0] Input B Select bits
| Value | Description |
|---|---|
3 |
ADC5 conversion result |
2 |
Reserved |
1 |
Accumulator B |
0 |
ITCRESx result register |
Bits 1:0 – AIN[1:0] Input A Select bits
| Value | Description |
|---|---|
3 |
ADC5 conversion result |
2 |
Reserved |
1 |
Accumulator A |
0 |
Zero |
