Hi@all,
I'm having some problems in implementing a voltage/current source that maybe some analog guru can give me a hint on where to start

. Searching the net for current/voltage supplies is pointless, you will mostly find LED drivers

We're currently designing a power supply for IEC62386 DALI lighting bus. The bus normally operates at a voltage of 16V and can supply connected devices up to 250mA directly. Communication on the bus is done by shorting the bus lines. In this case, the power supply needs to operate in constant current mode and supply 250mA.
The specification requires the switch between constant current and constant voltage mode to happen in the region of 10us.
I've started designing my circuit based on this one:
https://www.mikrocontroller.net/topic/378103#4414174 (power supply part). This essentially is a standard LM317 power supply with added constant current control loop. The loop works by taking advantage of the transistor base threshold voltage.
I've modified this circuit to use an LT3088 instead of the LM317 as this can operate down to 0V output voltage, so I can reduce current shunt resistance. The LT3088 is also specified to work stable without output capacitance.

This works more or less well inside simulation (see attachment). However, in the real circuit I can't get the current control loop to work reliable:
- in some cases oscillates at 2MHz in constant voltage mode (so much for stable...)
- starts oscillating at ~1MHz in constant current mode
- current value depends heavily on transistor
- current value changes with temperature
I've played around with the circuit for some time, but I can't find a way for this to work properly. The LT3088 datasheet gives some hints, but those either don't change anything or slow down regulation. I also can't change the transistor part (feedback) as this will change the control loop behavior.
Do you have a hint or keywords on where to start looking? I'm open to any approach.
Thanks for your help!
regards,
Martin
Edit: 2nd try on schematic.