I'm using a TMS320F2812 and want to drive LEDs of some of the pins. I couldn't figure out what the safe levels of current were which could go in or come out of the IO pins from the datasheet. What is the safe range or how could I find out? What are normal values for these levels? Thanks.
If you google TMS320F2812, the 2nd link is to a PDF file tms320f2812.pdf; if you look in this document at table 6.2, "Recommended Operating Conditions", you can find the numbers you need.
If you plan to connect the LED from the pin to ground (through a resistor, of course), so that a '1' output lights the LED, the number you want is Ioh, high-level output source current. Whereas if you plan to connect the LED instead to your +V supply, so '0' lights the LED, check Iol, low-level output sink current.
Looking at the numbers, you can see values from 4mA to 8mA, but you should also take note that these are in the 'MAX' column, which means these are values you should not exceed. Now, 4mA is not very much current, typical current to light an LED can be 10 or 20mA, to establish useful brightness. Were it me, I would employ some kind of driver between the '2812 and the LEDs, and try to keep the current in/out of the '2812 I/O pins well under 2mA.
See page 90 of the data sheet. It's 4 mA for some pins, 8 mA for others. You could drive high-brightness LEDs from them, but you might be better off using drivers.