User manual
RS232-ADC16/24
REG_OUT_VAL 0x0002
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - Out
7
Out
6
Out
5
Out
4
Out
3
Out
2
Out
1
Out
0
Out
n
sets the pin level of the corresponding pin D
n
. Any changes to input pins
are ignored. The default value of this register is 0x00FF.
REG_IN_VAL 0x0003
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - In
7
In
6
In
5
In
4
In
3
In
2
In
1
In
0
Input levels at pin D
n
appear in bit In
n
if D
n
is programmed as input. Otherwise
the actual output level of D
n
can be read back. Any writes to this register are
ignored.
REG_VERSION 0x0004
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Major version Minor version
Since firmware version 1.11 this register is readonly and holds the device's
version number. Earlier versions contain 0 as long as this register is not
overwritten.
REG_ADC_DEC 0x000D
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ADC cycles
Selects the number of clock
ADC
cycles used to measure the level of an ADC
input. Increasing this value will result in more accurate measurement values,
but will decrease the maximal output frequency of the ADC. Accepted values
are between 5 and 11. Any register setting beyond these limits will result in 11,
which is the default and initial setting of this register.
1
Page 13/22