Author Topic: showing a pic output up to 15V via high resistance  (Read 4998 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
showing a pic output up to 15V via high resistance
« on: February 25, 2011, 06:57:40 pm »
I'm building a project where it would be advantageous for me to be able to let 15V be seen on the PWM output of the PIC via a 100+ Kohm resistor. Will I do any damage ?
 

Offline jimmc

  • Frequent Contributor
  • **
  • Posts: 304
  • Country: gb
Re: showing a pic output up to 15V via high resistance
« Reply #1 on: February 25, 2011, 07:53:33 pm »
Simple answer is... no damage.
Of course the PIC pin will never rise to more than approximately Vdd + 0.7v (even if Tri-stated or configured as an input).

Looking at the data-sheet for the 16F628 (as an example) Section 17.0 - Electrical specifications - Absolute Maximum ratings
The output clamp current for Vo < 0 or Vo > Vdd is + 20mA .
Similarly the input clamp current for Vi < 0 or Vi > Vdd is + 20mA so your 100uA max. is safe with a 2000% margin. ((15v-5v)/100k)

(There is an overall limit of 300mA for Vss and 250mA for Vdd, so not all I/O pins can take the maximum current simultaneously.)

Jim
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: showing a pic output up to 15V via high resistance
« Reply #2 on: February 25, 2011, 07:57:39 pm »
Thanks, I thought there was some sort of protection circuitry but not sure if it was just there as extreme last resort
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: showing a pic output up to 15V via high resistance
« Reply #3 on: February 25, 2011, 08:35:17 pm »
Yes, thre's no chance of it doing any harm. The PIC has built-in protection diodes and the current will be a mere 100µA. There's even an application note by Microchip which involves connecting the mains to an I/O pin via a 1M resistor.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf