17.3.19 ITC Math 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 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
 ENDINTFIRST   CMPACCCLR 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 15141312111098 
 LAST  ACCAACCBWMOV   
Access R/WR/WR/WR/W 
Reset 0000 
Bit 76543210 
 WM[1:0]F[1:0]BIN[1:0]AIN[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 23 – END Last Command in Sequence bit

ValueDescription
1

This command is last in the sequence.

0

There is the next command after this command.

Bit 22 – INT Interrupt Request bit

ValueDescription
1 The interrupt is generated by this command.
0 The interrupt is not generated by this command.

Bit 21 – FIRST Zero for First Accumulation Enable bit

ValueDescription
1 The input B is forced to zero when the first accumulation is executed.
0 Normal operation when input B is selected by the BIN[1:0] bits.

Bit 17 – CMP Compare Accumulator A bit

ValueDescription
1

This command compares Accumulator A with thresholds in the ITCLSxCMPLO and ITCLSxCMPHI registers as defined in the CM[2:0] bits of the ITCLSxCON register.

0

The comparison is disabled.

Bit 16 – ACCCLR Accumulator A and B Clear Request bit

ValueDescription
1 The accumulators A and B are cleared by this command.
0 Normal operation for the accumulators A and B.

Bit 15 – LAST Last Accumulation Execution Enable bit

ValueDescription
1 The interrupt and comparison specified by the INT and CMP bits in this command are executed for the last accumulation only.
0 During normal operation, the interrupt and comparison are always executed.

Bit 12 – ACCA Latch Result into Accumulator A bit

ValueDescription
1

This command latches the math result into Accumulator A.

0

Accumulator A is not updated.

Bit 11 – ACCB Latch Result into Accumulator B bit

ValueDescription
1

This command latches the math result into Accumulator B.

0

Accumulator B is not updated.

Bit 10 – WMOV Write Mode Overwrite bit

ValueDescription
1

The Result Write mode is replaced with settings in the WM[1:0] bits of this command word.

0

The Result Write mode is defined by the WM[1:0] bits in the ITCLSxCON register.

Bits 7:6 – WM[1:0] Command Write Mode bits

These bits are used instead of list settings when the WMOV bit is set.
ValueDescription
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

ValueDescription
3

BIN - AIN

2

BIN + AIN

1

BIN

0

AIN

Bits 3:2 – BIN[1:0] Input B Select bits

ValueDescription
3

ADC3 conversion result

2

Reserved

1

Accumulator B

0

ITCRESx result register

Bits 1:0 – AIN[1:0] Input A Select bits

ValueDescription
3

ADC3 conversion result

2

Reserved

1

Accumulator A

0

Zero