Write non-volatile configurations, Read i/o configurations – Linx Technologies HUM-xxx-DT User Manual

Page 18

Advertising
background image

– –

– –

30

31

Write Non-volatile Configurations - Command Code = 23
This command writes all of the configurations that are stored in the
module’s non-volatile memory.

This command follows the Parameters shown in Figure 24 with the
exception of Parameter 55. That byte is a read-only and is not included in
the Write command.

Once written, the non-volatile configurations can be read out immediately.
A power cycle is required for them to take effect.

The module uses the values in volatile memory during operation. The
module loads the values from non-volatile to volatile memory when it
initializes after power-up, so a power cycle is necessary for the module to
use the new values.

Read I/O Configurations - Command Code = 24
This command reads the configurations of a specific GPIO line from volatile
memory.

Parameter 1 is set to 0x00. Parameter 2 is the GPIO number to be queried,
where 0 corresponds to GPIO_0 and 7 is GPIO_7 and so forth.

The response returns four parameter bytes. Parameter 1 is set to 0x00
and Parameter 2 returns the GPIO number that is being read. Parameter
3 returns the Analog / Digital configuration (digital = 0, analog = 1) and
Parameter 4 returns the Input / Output configuration (input = 0, output = 1).

Parameter 5 indicates if the read command was successful (00) or if there
was an error (01).

Write Non-volatile Configurations Command and Response

Command

Start

Command

Param 1

...

Param 54

End

3C

23

DType

...

Rsv

3E

Response

Start

Response

Param 1

End

3C

23

Status

3E

Figure 27: Write Non-volatile Configurations Command and Response

Figure 28: Read I/O Configurations Command and Response

Read I/O Configurations Command and Response

Command

Start

Command

Param 1

Param 2

End

3C

24

00

GPIO

3E

Response

Start

Response

Param 1

Param 2

Param 3

Param 4

Param 5

End

3C

24

00

GPIO

ADCfg

IOCfg

Status

3E

Advertising