Hello, I need some help. I am using a pic16f877a with two hall effect sensors each connected to comparator. How can I write a code for the comparator module in mikroc pro for pic so that the comparator give outputs used to control the direction of rotation of a stepper motor. Any help will be highly appreciated.