Sensoray 2600 User Manual

Page 59

Advertising
background image

2600 Family Instruction Manual

54

Chapter 9 : Model 2620 Counter Module

9.4.4 GetStatus

Function

Returns a counter channel’s status information.

Opcode

0x02 + Chan * 16

Command

none

Response

(Status<15:8>),(Status<7:0>)

Figure 49: Counter Status MSB

Figure 50: Counter Status LSB

QDE: Quadrature decoder error. This bit is automatically reset
by this GetStatus action.

LAT: Counter core was latched. This bit is automatically reset
by a ReadLatch action.

GO: Counter was enabled by a trigger.

LOD: Counter was pre-loaded. This bit is automatically reset
by this GetStatus action.

EXT: Counter extension bit 32.

UF: Counter underflowed. This bit is automatically reset by
this GetStatus action.

OF: Counter overflowed. This bit is automatically reset by
this GetStatus action.

ZER: Counter value is now zero.

All other bits are reserved for future use.

9.4.5 SetPreload0

Function

Programs a counter channel’s Preload0 register to
the specified value.

Opcode

0x03 + Chan * 16

Command

(Counts[0]),(Counts[1]),

(Counts[2]),(Counts[3])

Response

none

Notes

The preload register is loaded immediately when
this action executes. The counter core is not
affected; it will continue to operate in its
programmed mode.

9.4.6 SetPreload1

Function

Programs a counter channel’s Preload1 register to
the specified value.

Opcode

0x04 + Chan * 16

Command (Counts[0]),(Counts[1]),

(Counts[2]),(Counts[3])

Response

none

Notes

The preload register is loaded immediately when
this action executes. The counter core is not
affected; it will continue to operate in its
programmed mode.

9.4.7 GetCounts

Function

Returns a channel’s count value.

Opcode

0x05 + Chan * 16

Command none

Response

(Counts[0]),(Counts[1]),

(Counts[2]),(Counts[3])

Notes

Counting is not interrupted by this action.

9.4.8 GetCountsTs

Function

Returns a channel’s count value and time stamp.

Opcode

0x06 + Chan * 16

Command none

Parameter

Function

Counts

The 32-bit value that is to be stored in
the counter channel’s preload register.
Bytes are ordered least-significant byte
first.

15

0

14

0

13

0

12

0

11

0

10

0

9

0

8

0

7

QDE

6

LAT

5

GO

4

LOD

3

EXT

2

UF

1

OF

0

ZER

Parameter

Function

Counts

The 32-bit value that is to be stored in
the counter channel’s preload register.
Bytes are ordered least-significant byte
first.

Parameter

Function

Counts

Byte array containing the 32-bit value
that is contained in the counter’s output
latch when the action executes. Bytes
are ordered least-significant byte first.

Advertising