Download PCI-8133 - ADLINK Technology
Transcript
4.6 Control Mode Register This register controls the counter operation modes and the PWM output waveform. Counter3 is only for A/B phase mode. Address: BASE + 0x12h Attribute: write only Data Format: Bit BASE+ 0x0E BASE+ 0x0F 7 PE X 6 PCM X 5 X X 4 FTS1 X 3 FTS0 X 2 C2M1 X 1 C2M0 X 0 C1MS X C1MS: The mode select bit of counter 1. The input signals of counter 1 are from PHA1, /PHA1, PHB1 and /PHB1. C1MS 0 1 (default) Operation Modes of counter 1 Input Signal is (CCW+CW) PHA1: CW (Up count pulse) PHB1: CCW (Down count pulse) Input Signal is A, B phase encoder C2M1, C2M0: The mode control bits of counter 2. The input signals of counter 2 are from PHA2, PHA12, PHB2 and PHB2. There are four operating modes for counter 2. 28 • Registers C2M1 C2M0 0 0 0 1 1 0 1 1 Operation Modes of counter 2 PHA2: OUT (Pulse output) PHB2: DIR (Direction) PHA2: CW (Up count pulse) PHB2: CCW (Down count pulse) A,B phase encoder input (Digital filter not used) A, B phase encoder input (Signals pass through digital filter)