Pin tri state initial high impedance problem in pwm circuit

If you have a simple question and just want an answer.
georgel2004
Junior Member
Posts: 5
Joined: Thu Jan 02, 2014 4:07 pm

Pin tri state initial high impedance problem in pwm circuit

Post by georgel2004 »

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.

 

 

 

 



User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

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.