I replied before you send your second post. I meant product $4C x $4C = $1690. You asked how to get ~$72 from $1690. Answer is multiply it by 5, then divide by 255.
ADcode of 1.5V, having 5V AD reference is sort of this
1.5V
----- * $FF
5V
Similarily ADcode of 1.5V*1.5V=2.25V, with 5V reference is sort of this
1.5V*1.5V
------------- * $FF
5V
What if we replace 1.5V in this expression with reverse expression
$4C
-----*5V ~ 1.5V
$FF
Full expression becomes
$4C * 5V $4C * 5V 1
----------- * ------------ * ------ * $FF
$FF $FF 5V
or
$4C * $4C * 5V
--------------------
$FF
Message Edited by kef on
2008-12-25 01:34 AMMessage Edited by kef on
2008-12-25 01:35 AM