
Version 1.0 06/2001 |
CW |
|
|
|
|
|
|
|
|
|
|
|
|
CCW |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
| |||
counter 1 | 2 | 3 2 | 1 |
|
| |||||||
X2=0 | CW/CCW Counting Mode |
|
| |||||||||
Fig(3) CW/CCW counting mode
10 : Pulse/Direction counting mode
Pulse
Direction
counter | 1 | 2 | 3 | 2 | 1 |
X2=0 Pulse/Direction Counting Mode
Fig(4) Pulse/Direction counting mode
Example: assign counting mode x_mode=y_mode=z_mode=0x00; card[cardNo].ctrl1 = 0x07 x_mode; card[cardNo].ctrl2 = 0x07 y_mode; card[cardNo].ctrl3 = 0x07 z_mode; outportb(card[cardNo].base + WR1, card[cardNo].ctrl1); outportb(card[cardNo].base + WR2, card[cardNo].ctrl2); outportb(card[cardNo].base + WR3, card[cardNo].ctrl3);
Example: read
http://www.icpdas.com | ICPDAS |