- This topic has 3 replies, 2 voices, and was last updated 10 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › pic mosfet interface
i am using mosfet irf640n whose gate has to be controlled by the pic.how can i program,so as to switch on for 150msec and then off it.?
programming is very simple
1) give high (or low) logic on pin to which you have connected gate of mosfet to switch it ON
2) call delay subroutine that gives desire delay
3) give low (or high) logic on pin
thats all.
but the thing that you have to remember is how you will connect PIC pin to gate of mosfet.
just read datasheet of your mosfet.
find out
1) min required gate voltage to turn it on
2) min require gate current to trun it on
just dont connect PIC pin directly to gate input without refering datasheet
i am using mosfet(irf640n) whose gate threshold voltage is 2v to 4v and gate to source is -20v to +20v.can i connect the gate directly to pic18f452 pin 33 directly or i have to give some resistance in series.
what is required gate current?
find out from datasheet.
can your PIC pin source that much current?
if yes then OK otherwise you need current driver in between