I try to read counter register. I'm sure thatTimer_24 works.
in main loop
but LCD shows me only 0000, I couldyn't find why.
The f() you use does not have any parameters, but it returns what
mov [wCount], X ; MSB returned in X
mov [wCount+1], A ; LSB returned in A
So you should have something like -
readTimer = Timer24_ReadTimerSaveCV( );
it's right for 16bit timers, but for 24bits timers datasheet says
void Timer24_ReadTimerSaveCV(DWORD * pdwCount);
There is a note in datasheet that alludes to an issue with Capture,
but is not "complete" in its warning, or so I think -
This parameter is selected from one of the available sources. A rising edge on this input causes the Count register to be transferred to the Compare register. The software capture mechanism will not operate correctly if this parameter is set to a value of one or is held high externally.