I have a circuit with a solenoid being driven by a inverting mosfet driver.
The problem i have is when the startkit starts and before i run the program from xtime composer, the pin's high impedance state seems to be driving the mosfet/inverting mosfet driver.
Later when the code runs the high low states starts working properly.
How could i avoid this initial tri state problem. I want to have the pin in low state when the startkit starts or atleast not activate the mosfet/inverting mosfet driver.
Pin tri state initial high impedance problem in pwm circuit
-
- Junior Member
- Posts: 5
- Joined: Thu Jan 02, 2014 4:07 pm
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
You should bias the gate so it is always in a defined state when nothing is driving the gate.This can be done using a pull-up or pull-down resistor (for example 100K or 1M).See for example http://i.stack.imgur.com/Ce6Ud.png where a 1M pull-down resistor is used.