beautypg.com

Sensoray 526 User Manual

Page 23

background image

23

Digital I/O Control Register
0x0A

Bits

Type

Default

Description

[15]

WO

0

DIO(3) interrupt condition:

0 – interrupt on a rising edge;
1 – interrupt on a falling edge.

[14]

WO

0

DIO(2) interrupt condition:

0 – interrupt on a rising edge;
1 – interrupt on a falling edge.

[13]

WO

0

DIO(1) interrupt condition:

0 – interrupt on a rising edge;
1 – interrupt on a falling edge.

[12]

WO

0

DIO(0) interrupt condition:

0 – interrupt on a rising edge;
1 – interrupt on a falling edge.

[11]

WO

0

DIO group 2 mode:

0 – input;
1 – output.

[10]

WO

0

DIO group 1 mode:

0 – input;
1 – output.

[9]

UU

X

Reserved.

[8]

WO

0

DIO group 2 interrupt condition:

0 – interrupt on a rising edge;
1 – interrupt on a falling edge.

[7:0]

RW

0x00

Write operations set the bits configured as outputs, do not
affect the bits configured as inputs. Read operations return the
current values of the bits configured as inputs and last written
value of the bits configured as outputs. (Note 1).


Notes:
1.

Enabling an interrupt on a DIO bit configured as output will result in the interrupt when the
interrupt condition is met: for example, if a DIO bit is configured as output, has an interrupt
configured on a rising edge and enabled, and its current state is 0, writing a 1 to this bit will
generate an interrupt.