1
\$\begingroup\$

I want to get some clarification about output current and output voltage from a PIC12F675. As I read in datasheet, max. current for an output pin is 25 mA.

Page 85 from DataSheet - mention max 25mA

Is it always 25 mA, or will it depend in some settings? (Vdd = 5 V)?

And also, if Vdd is 5 V, the outout voltage will be Vdd - 0.7 V = 5 V - 0.7 V = 4.3 V. Or did I miss something?

enter image description here

Another question is: what does Ioh mean? I saw the sign "-" means current is sourced by a pin.

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

25mA is for absolute maximum rating.

The table you're showing is from "DC Characteristics", which means a normal operating condition. It means when the load is drawing 3.0mA, the pin voltage will be VDD-0.7V. Thus, the voltage drop of P-channel MOSFET of output buffer will be 0.7V, between the VDD line and output pin.

\$\endgroup\$
6
  • \$\begingroup\$ If I will give Vdd=5V, I will get 4.3V on output pin and what current? Sorry, Im new in this things, and cant get the point with current. \$\endgroup\$
    – SkePsis
    Commented Feb 5, 2023 at 15:46
  • \$\begingroup\$ @SkePsis No you read it wrong. It reads right there; you are guaranteed to get at least 3mA before voltage drops by 0.7V drop between VDD and VOUT. The ratings are for typical logic level operation when communicating with other chips, but it does not apply if you are trying to pull lots of current (not available) or don't care about logic level compatibility. \$\endgroup\$
    – Justme
    Commented Feb 5, 2023 at 15:57
  • \$\begingroup\$ @SkePsis Output current varies what resistance load you'll connect between out pin and the ground. That condition in the datasheet means, they connected 1.433kohm resistor between output pin and the ground. If your load is smaller, you'll get bigger output current and the voltage will get a little lower than 4.3V, for example. \$\endgroup\$ Commented Feb 5, 2023 at 16:02
  • \$\begingroup\$ I want to use 2N7000 for PWM, but I don`t know PIN OUPUT ( Current + Voltage) to calculate the series resistor. I understand if Vdd is 5V will be 4.3V on pin output, but what about current? \$\endgroup\$
    – SkePsis
    Commented Feb 5, 2023 at 16:34
  • \$\begingroup\$ A few(tens) uA will be there. 2N7000 is N-channel MOSFET. Its maximum Igss is rated as 100uA at 18V Vgs. You don't need to add any series resistor. For high speed switching, there might need to add some resistor and capacitors around Gate. This means, if you directly connect the Gate to 5V or 4.3V or whatever, its current will be less than 100uA. MOSFTETs have Mohm range resistance for the resistance between G-S. \$\endgroup\$ Commented Feb 6, 2023 at 8:49
1
\$\begingroup\$

If you look at the datasheet, you'll see the "maximum output currents" are in the "Absolute Maximum Ratings" section, and there is a note beneath the table that explain if you exceed these values the part may well suffer permanent damage.

Values in this section aren't therefore what you should be planning to use in normal operation, rather they are what you should avoid exceeding under all operational states.

For current limits, this normally relates to thermal damage due to internal resistances. Operating voltage does not normally significantly change this limit.

In terms of the Voh rating, each output will have drive structures for high and low, and these will have voltage/current relationships that vary according to supply voltage. The datasheets will commonly have graphs showing these relationship at various supply voltages. There will also generally be tables giving minimum, typical and maximum under certain conditions. These ranges allow you to produce designs with the required tolerance for part-to-part variations.

Ioh is the pin current (I) in output mode (o) at in the high (h) state. The equivalent for low output current would be Iol.

The entry you quote says that the high output voltage (Voh) will be a minimum of Vdd-0.7V when the output (Ioh) is supplying 3mA and the supply (Vdd) is 4.5V.

The negative sign is simply convention, with currents being quoted in terms of current flowing into the pin (hence Iol are generally positive, and Ioh negative).

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.