Hi,
let's imagine you have a cheap mcu (attiny or pic10f) which is probably rated for 20 or 25mA maximum output, and LEDs which should be rated for 20mA, but you only really want 5mA because you need a rather low brightness.
Now image the project should be really tiny (two 0402 LEDs glued on a SOT mcu) and you don't have space to hide the current limiting resistor. And image that the PSU is made of an USB charger (5V) with an in serie LED to have some dropdown voltage.
Of course, that would be a terrible design. Depending on which leds are turned on by the MCU (one is 3.5V blue led, the other one is a 2.5V red led), you probably will get situation where too much current go through the red led. But since you only want low luminosity, the MCU will do some PWM.
Now the question is : if I have a 0402 led (no datasheet, bought on ebay, let's assume 15mA continuous current is safe ?), and you PWM is at a 20% ratio with a 45mA current (hence having an average current of 9mA, will you burn you mcu ? will you burn your led ? Will thing be ok since nothing will overheat ?
Edit : I found this
datasheet form kingbright, and they say macimum pic current is 150mA. Does it mean that a continuous 13%*150mA pwm (20mA average) is ok ? (maybe a bit less than 10% not to exceed the maximum power dissipation, but at least I can hope that 40mA*15% is ok for my chinese no-brand leds ?)
Thank you,
John.