Access from the user program
KL31x2
50
Version: 2.4.0
For lower firmware versions, bits R32.14 and R32.15 are not evaluated.
These terminals always set the error bit
during the calibration and cannot indicate the stability
error!
R33: User scaling - offset
This register contains the offset of the user scaling. The user scaling can be activated in the feature register
through bit
R34: User scaling - gain
This register contains the gain of the user scaling. The user scaling can be activated in the feature register
through bit
8
+ 1. 1
dec
corresponds to 0x0100).
R35: Limit value 1
Limit value 1 is entered in register R35. The limit value can be activated in the feature register through bit
R36: Limit value 2
Limit value 2 is entered in register R36. The limit value can be activated in the feature register through bit
R37: Filter constants of the A/D converter, and configuration bits for the filter
(default value: 35C0
hex
)
The terminal has two low-pass filter stages:
• The first stage consists of a sinc
3
filter, and is always active.
• The second stage consists of a 22nd order FIR filter. This can be deactivated.
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Name
Filter constants SF (SF.11 to SF.0)
Zero Zero SkipFIR Fast
Key
Bit
Name
Description
Default
R37.15
Filter constant SF
(SF.11 - SF.0)
The filter constant
SF
specifies the 3dB limit frequency of the sinc
3
filter. The value ranges from 150 to 2047.
The 3 dB limit frequency F
Limit
and the 64.5 dB stop frequency F
Stop
are calculated as follows: (see following table)
35C
hex
(860
dec
)
...
R37.4
Skip = 0
F
Limit
= 11981 / SF
F
Stop
= 43008 / SF
Skip = 1
F
Limit
= 80486 / SF
Bit
Name
Description
Default
R37.3
Zero
0
bin
See note below
0
bin
R37.2
Zero
0
bin
0
bin
Do not change
Bits R37.2 and R37.3 must always be ZERO, otherwise errors will occur in the A/D converter!