Contents
Which is directly driven by the microcontroller?
VG1 is directly driven by the microcontroller (high voltage is on, low voltage is off). R2 is the load circuitry. T1 is a P-channel mosfet and T2 is an N-channel mosfet. R1 is a pull-up resistor to the 24V rail. There might be a simpler way to do it, this was just the first thing I thought of.
When does the microcontroller drive input _ n be low?
When the microcontroller drives INPUT_N to be LOW, VCC pin is at 0V (so device is off). Should circuit below work as intended? No, that won’t work.
What’s the best way to turn off the MOSFET?
A better way would be to put the P-channel mosfet in directly inline with the device closer to the 24V source. This would require the pullup voltage to go up to ~24V (minus the turn on threshold) to turn the mosfet off, so you’ll most likely have to add some other circuitry to the MCU pin so it doesn’t fry.
What’s the mode for programming a PIC microcontroller?
There are two modes for programming a PIC ® Microcontroller, High Voltage (HV) mode, and Low Voltage (LV) mode. The Low-Voltage Programming (LVP) mode allows the PIC Flash MCUs to be programmed using the operating voltage VDD of the device.
How does a RC network work on a microcontroller?
RC network on output side smoothens the ac output and maintains a contant DC voltage on output pin which can be fed into any microcontroller. When you close the switch, you will get an instant HIGH on OUTPUT pin but when you open the switch, it will take a while (300 ms or so) for the OUTPUT pin to go LOW due to the 0.1 uF capacitor.
How does a microcontroller work with a VCC?
It’s voltage is divided which then charges the 10uF cap. When the divided voltage drops below the voltage on the capacitor, the comparator transistor turns on, activating the opto-isolator. The output has an open collector which means you can operate it at any VCC your microcontroller supports. My perfboard circuit looks like this:
Can a p channel MOSFET be turned on?
No, that won’t work. P-channel mosfets require the Gate voltage to be lower than the source voltage by some threshold in order to “turn on”. The Mosfet will still conduct through the body diode so the device will receive a small voltage, not the 0V/24V of an on/off switch.
https://www.youtube.com/watch?v=9z20kZonK_U