5 reading edge capture status registers, 1 reading which channels have captured edges – Sensoray 626 User Manual

Page 14

Advertising
background image

Sensoray Model 626 Instruction Manual

12

9.5 Reading Edge Capture Status Registers

9.5.1 Reading which channels have Captured Edges

Table 9 Reading Captured Edges

Offset

Input Channel Number

(Hex)

Register

Name

Bit 15

Bit 14

Bit 13

Bit 12

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

48 RDCAPFLGA

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

58 RDCAPFLGB 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
68 RDCAPFLGC 47

46

45

44

43

42

41

40

39 38 37 36 35 34 33 32


RDCAPFLGA, B & C are used to determine which, if any, channels have captured edges. A ‘1’ shows
an edge has been captured for the corresponding channel.

9.5.2 Reading the Status of the Interrupt Enable Registers

Table 10 Reading the Status of the Interrupt Enable Registers

Offset

Input Channel Number

(Hex)

Register

Name

Bit 15

Bit 14

Bit 13

Bit 12

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

4A RDINTREGA

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

5A RDINTREGB 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
6A RDINTREGC 47

46

45

44

43

42

41

40

39 38 37 36 35 34 33 32


RDINTREGA, B & C are used to determine which, if any, channels will generate an interrupt on an
edge capture. A ‘1’ shows that the corresponding channel will generate an interrupt on edge capture (if
the channel is enabled).

9.5.3 Reading the Status of the Edge Selection Register

Table 11 Reading the Status of the Edge Selection Registers

Offset

Input Channel Number

(Hex)

Register

Name

Bit 15

Bit 14

Bit 13

Bit 12

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

4C RDEDGREGA

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

5C RDEDGREGB 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
6C RDEDGREGC 47

46

45

44

43

42

41

40

39 38 37 36 35 34 33 32


RDEDGREGA, B & C are used to determine which channels will capture positive edges and which will
capture negative edges(when they are enabled). A transition from 0 to 1 is considered a positive edge.

Advertising