I agree. It's simplier to implement this than two-stage method.
I've compared my code with AN2173. Seems like my vT and vY coefficients swaped and T calculation is comletely wrong.
Comparing with CircleOS 3.8:
1) In appnote X is LEFT, Y is TOP, T BOTTOM
2) In Primer itself X is LEFT(dma 2), Y is BOTTOM (dma 3), T is TOP (dma 4)
So this is where this bug is coming from. I guess a real fix should look like:
About Y coefficient: the calculated value for my unit was 7951, but in practice i had to increase this value. It seams that calibration is useful after all.
P.S. We probably need some kind of RFI (request for implementation) for next CircleOS. There is a lot of small things need to be fixed or implemented.
Last edited by ntrf.zns (2010-02-02 21:11:28)