Version 1.0 06/2001 |
i8090_INIT_CARD(CARD1, ENC_QUADRANT, ENC_QUADRANT,
ENC_QUADRANT);
(3)unsigned int i8090_GET_ENCODER(unsigned char cardNo, unsigned char axis)
This command will return the counter value of the selected “axis” and “cardNo”.
cardNo: 0~19, select which card.
axis : select which axis. 1 :
2 :
3 :
return : a 16 bits unsigned integer value.
(4) void i8090_RESET_ENCODER(unsigned char cardNo, unsigned char axis)
This command will reset the counter value of the selected “axis” and “cardNo”.
cardNo: 0~19, select which card.
axis : select which axis. 1 :
2 :
3:
(5)unsigned char i8090_GET_INDEX(unsigned char cardNo)
It will return the “INDEX” register’s value of the selected “cardNo” card. cardNo: 0~19, select which card.
Register | Add. | R/W | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
INDEX | 0x04 | R |
|
|
|
|
| ZI | YI | XI |
The index input C+/C- can read out from this register. These bits are active high.
XI : indicate the index of
YI : indicate the index of
ZI : indicate the index of
http://www.icpdas.com | ICPDAS |