I have a project which uses a 5V microcontroller to produce a PWM control signal with a frequency of around 400Hz. The PWM output level however needs to be 8V. The whole thing is fed by 12V so both 5V and 8V supplies are easy to make (7805 / 7808 regs for example).
What do you think would be the best way to achieve the 8V output level? Here are a few solutions I've come up with:
1. Single npn / logic level n-Fet + pullup resistor to 8V
-Extremely simple and probably good enough for the low frequency. I expect the load to be fairly high-impedance (control input for car AC fan).
2. Mosfet driver IC connected to 8V
-Seems like a great idea since they go rail to rail. Is it OK to use the driver without any significant load on its output?
3. Rail to rail single supply opamp
-Could be fed directly from 12V but I would prefer not to since I don't want under any circumstances / failure mode to have over 8V on the output, which could damage the PWM input.
4. A different type of IC, level converter, logic gate, PWM controller or something?
-Any ideas?
What do you think would be the best way to achieve the 8V output level? Here are a few solutions I've come up with:
1. Single npn / logic level n-Fet + pullup resistor to 8V
-Extremely simple and probably good enough for the low frequency. I expect the load to be fairly high-impedance (control input for car AC fan).
2. Mosfet driver IC connected to 8V
-Seems like a great idea since they go rail to rail. Is it OK to use the driver without any significant load on its output?
3. Rail to rail single supply opamp
-Could be fed directly from 12V but I would prefer not to since I don't want under any circumstances / failure mode to have over 8V on the output, which could damage the PWM input.
4. A different type of IC, level converter, logic gate, PWM controller or something?
-Any ideas?