As you would otherwise, with resistors, comparators, adc, etc.
So...a bunch of external components.
A bunch of external components, not necessarily.
Post a schematic...
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16