11
Application Notes
11.1
Quadrature Decoder
Connecting a quadrature output incremental optical shaft encoder to the counter/timer input.
Wiring:
Phase A
CT_GATE1
J13.4
Phase B
CT_CLK1
J13.2
Common
GND
J13.14
Power
+5V
J13.15
Counter/Timer
Setup Resister:
CT_GATE1 inverted True
CT_CLK1 inverted False
CT_CLK1 source CT_IN1
CT_GATE0 inverted True
CT_GATE0 source CT_GATE1
CT_CLK0 inverted True
CT_CLK0 source CT_IN1
Base_A 12 <= 0000 1001
Base_A 13 <= 1?01 1???
where ‘?’ is the configuration for Counter/Timer #2.
Software setup:
base_address = 0x300;
Counter/Timer Setup Register = 0x0000
CT0: Clock: Inverted=False, Source=CT_IN0
Gate: Inverter=False, Source=CT_GATE1
CT1: Clock: Inverted=False, Source=CT_IN1
Gate: Inverter=False, Source=CT_GATE1
CT2: Clock: Inverted=False, Source=CT_IN2
Gate: Inverter=False, Source=CT_GATE2
Tracer Reference Manual
11.1 Quadrature Decoder
32
Friday, June 08, 2018
11
Summary of Contents for Tracer
Page 1: ......
Page 8: ...3 2 Photo Tracer Reference Manual 3 3 Tracer Block Diagram 4 Friday June 08 2018 3 ...
Page 38: ......