Ingavr and acetronics thanks for replying!Have you any idea how to make it working to count simultaneously the 2 channels?
Mister_e thanks for replying.If i use a pull-up resistor of 2.7K is that ok?Should i turn the internal pull-ups off?
Ingavr and acetronics thanks for replying!Have you any idea how to make it working to count simultaneously the 2 channels?
Mister_e thanks for replying.If i use a pull-up resistor of 2.7K is that ok?Should i turn the internal pull-ups off?
Hi Hawk,
another thread is still open on this subject ... SEARCH function !!!
11 results ... no less !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
COUNT is not design to count on 2 pin at the time. You can use Interrupt on PORTB change. Once in the interrupt routine, read the whole PORTB, keep only the upper bit and see wich is LOW, increment a counter variable and TADA.Ingavr and acetronics thanks for replying!Have you any idea how to make it working to count simultaneously the 2 channels?
OR without interrupt routine, poll the interrupt flag and do the same as above.
HTH
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks