I am powering a Charlieplexed LED array with this current source as shown in the first picture attached:
One requirement was to be able to control the current so I decided to insert an array of MOSFETS that allowed me to control the current through a PWM signal following the datasheet of the LED driver manufacturer.
As can be seen in the second image the circuit actually works, what I don't understand is why.
Ignoring the current variation given different loads (resistor + LED) my intuition would say that the PMOS would control the voltage level but not the current due to the AL5810 that should keep it constant.
Is that so or are there other variables which I'm not considering?