User manual

gpio.Relais
Holding registers
0x0000 HREG_CTRL 0x1000 reserved
0x0001 HREG_PM 0x1001 HREG_PM
0x0002 HREG_BAUDSEL 0x1002 HREG_BAUDSEL
0x0003 HREG_DBITS 0x1003 HREG_DBITS
0x0004 HREG_PARITY 0x1004 HREG_PARITY
0x0005 HREG_STOP 0x1005 HREG_STOP
0x0006 HREG_SERIAL_MODE 0x1006 HREG_SERIAL_MODE
0x0007 HREG_MODBUS_MODE 0x1007 HREG_MODBUS_MODE
... reserved ... reserved
0x0100 OUT_VAL 0x1012 CNT_CTRL
0x0101 IN_VAL 0x1013 PULSE_WIDTH
0x0102 CNT_CTRL 0x1014 PULSE_CH
0x0103 PULSE_WIDTH
... reserved
0x0104 PULSE_CH
Table 3: Holding registers
HREG_CTRL
15 14 13 12 11 10 9 8
CTRL_ACCESS_KEY (0x8E)
7 6 5 4 3 2 1 0
reserved
CONN_
INIT
USER_
WREN
CFG_
WREN
DEFAULT RESET
CTRL_ACCESS_KEY
Any changes to HREG_CTRL take only effect when the correct access key is
written to the upper eight bits each time HREG_CTRL is accessed. This key
(0x8E) needs to be set every time this register is about to be written to.
CONN_INIT
A logic 1 initialises the serial connection (RS232/RS485) according to the
related holding registers.
USER_WREN
Enables write access to the user EEPROM section.
5/12