gokulrred
Joined: 22 Nov 2011 Posts: 32 Location: puducherry
|
Problem in setup_qei() |
Posted: Thu Feb 02, 2012 12:17 am |
|
|
Previously I was using older versions of CCS.
I was working with Quadrature Encoder Interface...
in that while I was using qei, the setup was like this:
Code: | setup_qei(QEI_RESET_WHEN_MAXCOUNT,QEI_FILTER_DIV_2,QEI_ERROR );
|
Now updated to the latest one...
When i tried to compile its showing error in the setup.
When I saw the syntax, it is like this:
Code: | setup_qei(QEI_MODE_X2|QEI_RESET_WHEN_MAXCOUNT, QEI_FILTER_ENABLE_QEA|QEI_FILTER_DIV_2,0x1000);
|
I tried by replacing the old one with the new one.
But its still in error.
Is there anything I need to do extra ?
I am using PIC 18F4431. |
|