Author Topic: Calculating Output High voltage for a MCU  (Read 1625 times)

0 Members and 1 Guest are viewing this topic.

Offline loudaslifeTopic starter

  • Newbie
  • Posts: 6
Calculating Output High voltage for a MCU
« on: April 10, 2015, 03:44:25 am »
I'd like to drive some LEDs, but I don't know what voltage to expect coming from the MCU. The ATmega328 datasheet lists the expected output high voltage on page 314, but only for 4 sets of conditions. Is there any way I can calculate the expected voltage given an arbitrary current and source voltage? Or would I have to resort to actually getting my hands on one to measure?
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: Calculating Output High voltage for a MCU
« Reply #1 on: April 10, 2015, 04:12:47 am »
The datasheet you linked has plots of typical output pin voltage vs. current.
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Calculating Output High voltage for a MCU
« Reply #2 on: April 10, 2015, 07:52:47 am »
5V in 5V out with no load. 

Worst case with 20mA load you are guaranteed to get more than 4.2V @ 85C.

In reality, at room temp and no other pins loaded, you'll probably get ~4.80V at 20mA load.
« Last Edit: April 10, 2015, 07:56:10 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Calculating Output High voltage for a MCU
« Reply #3 on: April 10, 2015, 12:23:08 pm »
Quote
Is there any way I can calculate the expected voltage given an arbitrary current and source voltage?

35.7 Pin Driver Strength.

Typicall 20-25ohm is a good number and 50ohm is a conservative number.
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf