I am trying to design a digitally controlled current source but I have doubts regarding whether the driving of the Mosfets in the Blue box is correct or not , I understand that for example when the output of U3 is postive then the P-channel Mosfet will be the one that conducts and need negative Gate Voltage and vise versa so that I didn't add the Voltage on the Emitter to the driving Gate voltage , but I am not sure that is correct and should work .. I I will post the schematic kindlyschematic; it will be helpful if some one tell me whether that part am confused about is correct or not , also if any one have any concern about the functionality should work correct or not kindly tell me.
Edit: TheThe Step size is programmable also not only the value of the current.
Thanks too much in advance
