And what circuit would i req to drive an led from the status pin which according to the datasheet will only handle 5 ma.?
I'm a bit confused what will only handle 5mA. Is it the profet or LED?
Critics will say, my below explanation is pedantic and trivial and yes it is
but it's worth knowing esp for rookies in electronics.
If is an LED and except you're using a specialized type, standard LED (be it the 5mm or 3.5mm in size) operates between 5mA and 25mA, with 15mA being the nominal current value. There is no standard LED resistor as it all depends on the value of the voltage source connected to the LED and the colour of the LED.
E.g If the logic or DC voltage is 5V, then according to voltage divider rule, you'll need 600 ohms (E-series 560 or 680 ohms) resistor to limit the current to 5mA as per the datasheet (assumed red LED with Vf of 2V).
Always bear in mind and although not very critical, different colour of LEDs requires different quiescent voltages (with IR and blue/white LEDs requiring 1.5Vf and 4Vf resp.) and current (which will be indicated in the data sheet) to place then into forward conduction.
Therefore, by using the LED datasheet, the value of the limiting resistor (
though mostly thumb suck) should be calculated based on the logic level or voltage sourced to the LED.
Likewise, if your logic or voltage source to the LED, is outputing 3.3V/5mA, then, you need no limiting resistor if the LED used is green.
Don't be surprised if you replace a red LED with a green LED and it doesn't work. (well, it might not just be dimmed though).