Setting a specific pin to high status when the device powered
#9
(10-07-2016, 06:46 PM)pfeerick Wrote:
(10-06-2016, 09:01 PM)MarkHaysHarris777 Wrote: Use a comparator on the PMIC output pin for DCDC1;  with an open collector, and pullup for 3v3 or 5v.

Set the threshold on the comparator for something reasonable so that the 'off' level ( .3 , whatever ) snaps the output to zero and holds it there. The LM339 is good in this kind of application.  These make great level detectors, operate at a wide voltage range, and have open collector outputs;  pullups are 'required'.

Is there any particular reason a LM311 wouldn't be more suitable - as it results in a smaller package size, unless you want the extra comparators. However, that is beside the point - you're basically agreeing that unless the threshold trigger voltage for the linbus transceiver the OP is wanting to use will accept 0.3v as off if using the 3.3v power pins on the RPi/euler bus, that there is no reliable way to get a pin to go high and stay high immediately from power on, without using external hardware?

I've never actually used the LM311. The LM339 is readily available, inexpensive, and very easily used; also, in my experience if you need one comparator|shifter you need more one (usually).

External hardware is probably required; reason being that the pins are not 'reliable' until the OS has control-- even the GPIO don't really reliably default to inputs until after the pine board is booted up. For instance, if I needed GPIO pins that 'would' be reliable inputs prior to full bootup I would expand the GPIO bus with the MCP23S17;  those pins really are going to default to inputs from power on.

I have found the LM339 ( I've used it many times ) to be reliable, affordable, and easy to use. The main error that folks forget about is using a pullup on the output (it is required). But that is the beauty of open collector circuits because they also double as level shifters (albeit uni-directional).
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply


Messages In This Thread
RE: Setting a specific pin to high status when the device powered - by MarkHaysHarris777 - 10-07-2016, 10:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Portable USB-Powered Monitor mribunal 4 10,495 02-03-2017, 05:28 AM
Last Post: stevenmeza07
  High speed I/O richw42 3 7,183 01-15-2017, 04:08 PM
Last Post: richw42
  Setting up UART2 for Adafruit GPS hat stephen fleming 1 3,803 05-13-2016, 03:20 PM
Last Post: peterz

Forum Jump:


Users browsing this thread: 1 Guest(s)