User manual

15
Fig. 8: Smoothed PWM output voltage
4 Analogue-Digital Converter
A connection E2 to GND and pushing the reset button will start a small example programme for
the analogue-digital converter (AD-converter). The analogue voltage at the analogue input AD1
is measured and converted to a digital numeric value. Because the TPS controller works with 4-
bit values continually, the result of the analogue-digital conversion is a number from 0 to 15. The
result 0 represents the input voltage 0, the result 15 for a voltage that corresponds to the
operating voltage, i.e. e.g. 4.5 V. The AD-value is output as a binary number at the four LEDs
and additionally handed over to the PWM-output. Connect a voltage divider from a fixed resistor
and a light-dependent sensor resistor (LDR) to the analogue input AD1.