asmallri
Joined: 12 Aug 2004 Posts: 1630 Location: Perth, Australia
|
|
Posted: Mon Sep 17, 2018 2:21 pm |
|
|
blowtorch wrote: | .. Sadly there is no graph giving the relationship between current sourced from a pin and the resultant voltage. |
I would expect this to be a linear relationship as the main culprit is source resistance of the PIC's output drivers however it is also limited by the total current available to drive I/O so if you were doing this on all I/O pins it would not end well.
If you drive the output using only TRIS to swap between high and floating it should work fine however, if it was me, I would code this in assembler to ensure the two instructions run consecutively. If your application uses interrupts, then I would disable them before you change the TRIS settings. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|