ST92141 STMicroelectronics, ST92141 Datasheet - Page 153

no-image

ST92141

Manufacturer Part Number
ST92141
Description
8/16-bit Mcu For 3-phase Ac Motor Control
Manufacturer
STMicroelectronics
Datasheet
REGISTER DESCRIPTION (Cont’d)
COMPARE RESULT REGISTER (CRR)
R252 - Read/Write
Register Page: 63
Reset Value: 0000 1111 (0Fh)
The result of the comparison between the current
value of data registers 6 and 7 and the threshold
registers is stored in the 4 most significant bits of
this register.
Bit 7 = C7U: Compare Reg 7 Upper threshold
Set when converted data is greater than or equal
to the threshold value. Not affected otherwise.
Bit 6 = C6U: Compare Reg 6 Upper threshold
Set when converted data is greater than or equal
to the threshold value. Not affected otherwise.
Bit 5 = C7L: Compare Reg 7 Lower threshold
Set when converted data is less than the threshold
value. Not affected otherwise.
Bit 4 = C6L: Compare Reg 6 Lower threshold
Set when converted data is less than the threshold
value. Not affected otherwise.
These bits should be reset at the end of the “Out of
Range” interrupt service routine.
C7U
7
C6U
C7L
C6L
X
PR2
PR1
ST92141 - ANALOG TO DIGITAL CONVERTER (ADC)
PR0
0
Note: Any software reset request of the ICR, will
also cause all the compare status bits to forced by
hardware to zero, in order to prevent possible
overwriting if an interrupt request occurs between
reset and the Interrupt request software reset.
Bit 3 = undefined, return '1' when red.
Bit 2:0 = PR[2:0]: Clock divider bits
These bits enable a frequency division factor de-
pending on the value stored:
Table 30. Frequency Division Factors
Warning: If the prescaler programming value is
changed during a conversion, the user has to re-
start the conversion (i.e. simply rewriting the CLR
register with the same value).
PR[2:0]
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
bits
Freq. Div.
Factor
(FDF)
10
12
14
16
1
4
6
8
Max. con-
(INTCLK)
version
time
1104
1380
1656
1932
2208
138
552
828
pling time
Min. sam-
(INTCLK)
1008
1176
1344
336
504
672
840
153/179
84
9

Related parts for ST92141