- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In one of my projects, I am using GPIO pins to drive a ULN2003 Darlington transistor array. The transistor array drives some LED lamps and two relay coils.
When power is first applied to the circuit, all the lamps and the relays come on for about 100mS then go into their initial states (low for all in this case).
Is there any way I can force the GPIO pins to be low even on power up? If it requires a hardware change, I am open to that because I need to do a board spin anyway.
I do not know if the paragraph below is relevent, but...
My digital power supply uses 3.3 volts and the analog system uses 5 volts (along with VDDIO3 and VDDIO0). The relays switch mains voltage so I do not want interment turn on. The power supply for the system uses 3 linear regulators. A 24 volt power transformer feeds a 12 volt regulator. The 12 volt power feeds the LEDs and relay coils which are switched by the ULN2003 chip. The 12 volt regulator feeds a 5 volt and 3.3 volt regulator for the logic digital and analog power supplies. There are two 6800uF capacitors on the power input to allow for delayed power off.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try to use a weak external pulldown (3-10k)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For PSoC5 there is a pins option "reset" which allows for programming an initial state before the pin's drive mode get initialized.
You may select a "Pulled low" option.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
I will give that a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I set the pins to pulled low. All the GPIO pins still remain on at powerup but they remain on for much shorter.
Does this have something to do with using both 5V and 3.3V?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The pins shouldn't be "on", they probably are in "high Z".
There is a small time where the level is not determined from startup until the supply voltage reaches the minimum operating voltage of 1.7V.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue is more of an annoyance in this situation that a show stopping problem. I can see how this can be dangerous in a safety critical system. In my situation, all I need to do is add an RC network on the relay coils to stop the mains voltage from momentarily being switched to my other circuitry. If I do not do this, the life of the relay will be shortened due to the momentary switching arcs. As for the LED lights, it does not matter so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content