OK but why does diodes.com bother having two comparators if only one will do?
Alec_t......thanks for the sim, i enjoyed that, I had not previously known how to do stepped comparisons like that...im storing that one away where I can find it again, very useful.
Though Alec_t,i used your sim sometimes with just one led,and sometimes with three, and with the 10 to 30v input range, and got an overall 10% max difference. Remember that these buck converter led driversa re likely to appear in multiples in a singleproduct, andbe supplied by an upstream offline power supply.....if every buck is supplying 10% more than it should, then the offline psu is going to overheat, or need its components to be too high rated, ie, higher rated thannecessary.
Diodes.com have done the zxld1366 like it is for a reason.
Ive forgotten how I did the logic in my sim, it was more try and see, keep changing it till it worked,and eventually it did, but I feel there must be a cleaner way to do it with the two comparators?