Publication No. 500-001184-000 Rev. B.0
Programming 31
Bit 08:
Extend Debounce
- A one (1) sets the Debounce to the time indicated by bits
6 and 7. The original value is latched from onboard jumpers, but this
condition can be changed through the software. Clearing this bit reduces
debounce to 1µs.
Bits 07, 06: Debounce Time
- The original value is latched from onboard jumpers at
reset, but this can be changed later through software. Refer to the list below
for correlating debounce times.
Bit 05:
Channel Enable
- 1= Two channel (A and B) input (Quadrature mode)
0 = One channel input (channel A only, counter mode)
Default is 0
.
Bit 04:
Double Count
- 1 = 2X counting
0 = 1X counting.
Default is 0
.
Bit 03:
CTR_FIFO_FULL
- 1 = Counter FIFO is full.
Bit 02:
CTR_FIFO_EMPTY
- 1 = Counter FIFO is empty.
Bit 01:
MRK_Reset
- 1 = Marker Pulse resets counter.
Bit 00:
Counter Enable
- 1 = Enable the counter
0 = Disable counter
(Default)
3.2.2 CSR2 Bit Definitions
The Offset for the Control and Status Register is $XXXX34.
The term
ʺ
gating
ʺ
means to qualify a signal. For some encoders, the marker pulse
should be gated with the
ʺ
A
ʺ
, or
ʺ
B
ʺ
channel in such a way as to qualify it. The
actual marker signal could be quite long in duration, but it takes
ʺ
A
ʺ
and/or
ʺ
B
ʺ
to
be a certain state before the marker is actually considered valid.
Table 3-4 Correlating Debounce Times
Bit 7
Bit 6
Time
0
0
10
μ
s
0
1
1ms
1
0
5ms
1
1
10ms
Table 3-5 Control and Status Register 2 Bit Map
CSR2: Register Offset $XXXX
34
Bit 31
Bit 30
Bit 29
Bit 28
Bit 27
Bit 26
Bit 25
Bit 24
Reserved
Bit 23
Bit 22
Bit 21
Bit 20
Bit 19
Bit 18
Bit 17
Bit 16
Reserved
Set Debounce Time
Disable AB
Debounce
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 09
Bit 08
Reserved
Quad Counter
Conn Warning
Broken Wire Counter Connectivity
Bit 07
Bit 06
Bit 05
Bit 04
Bit 03
Bit 02
Bit 01
Bit 00
Marker Int Gen Cir Counter
Channel Enable
Marker Qualification
True Ungated
Current Marker
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com