This content has been marked as final.
Show 3 replies
-
1. Re: How to use Filter Polling method for channel A and channel B?
user_1377889 May 20, 2016 1:42 AM (in response to user_504416177)Do not use "while", this can skip a result in the other channel. Use if(Filter_IsInterruptChannelA() )
Do not forget to remove/disable your interrupt component.
Bob
-
2. Re: How to use Filter Polling method for channel A and channel B?
user_504416177 May 20, 2016 1:51 AM (in response to user_1377889)Thankyou for your reply.
Yes i used "if command".
Also for channel B: Filter_INT_CTRL_REG |= (2 << Filter_CHANNEL_B); is this command is correct? I didnt find enough explanation about this command.
Awais
-
3. Re: How to use Filter Polling method for channel A and channel B?
user_1377889 May 20, 2016 7:31 AM (in response to user_504416177)No, do a Filter_INT_CTRL_REG |= 0x03 to enable channel A and B.
Filter_INT_CTRL_REG |= (1 << Filter_CHANNEL_B); might work, but "ich hab keine Lust nachzusehen, mach Du das" ;-)
Bob