attachment #2, the modified schematic which works...
simple replaced the TCPWM instance with the UDB instance, change the name of the readcounter() method and recompiled...
new testbench, doesn't require a rotary encoder...
I have used to clocks to create some activity on A/B inputs of the quadrature encoders,
so the decoder is now slowly counting up.
in software it's now a very small routine to test results over uart.
sprintf(uart_tx_buffer, "%d", (uint16) QuadDec_1_ReadCounter());
sprintf(uart_tx_buffer, "%d", (uint16) QuadDec_2_GetCounter());
results from uart terminal:
thanks for the link odissey1, helpful.
but it does not solve why the QD (TCPWM) is not counting and the QD (UDB) just seems to work,
latest test bench is even without any rotary encoder, so the input signals are glitch-free ;-)
still hoping somebody tries to make it work, currently I just don't understand what i'm doing wrong...