ZHCU759 July 2021
The adjustable current source provides up to 4 mA with a full scale accuracy of 1.5%. The circuit is adjusted by utilizing the MSP430FR5969-SP PWM output going into a passive low-pass filter that converts the PWM into a DC voltage. The DC voltage is the input to the LMP7704-SP that is configured as a voltage follower op amp that changes the gain until the voltage on the source of the transistor is equal to the DC voltage created by the low-pass filter.
Figure 2-10 shows the adjustable current source circuit.