As promised, here it comes the debug... So, the only bug I discover was that in my calculation I have used 10-bit ADC resolution, but in reality the XE164 has 12-bit resolution (from 0 to 4095), so the only modification I did was to shift the value as:
uiTmp = ( ADC1_RESRA0 >> 2 ); // Get latest Manettino valueMoreover I have added a piece of code to show on display the TC settings, the meaning is: At the end the weeling electronics in its little box is:
No comments:
Post a Comment