i am sorry i had to revive this question once again,
the project i was working on has resumed again and im facing a problem with the getCounter() function;
i am using BL4S110 controller,
-jumper J13 is set to 2-4 (to ground)
-i am using IN1 as counter using the following command:
setCounter(1, BL_UP_COUNT, BL_EDGE_RISE, 0)
- i am reading the value of the counter using the following command: getCounter(1, &speed) (with "speed" defined as word).
i have a sensor connected to IN1 with supply of 12V taken from the BL4S110 itself and the 0VDC taken from the GND pin next to IN1.
the problem i am facing is that at every rising edge the counter is incrementing by 2 instead of 1.
why might this happen?