I am taking the output of a PIC microcontroller to drive a CMOS circuit that is running of 12V.
The CMOS chip is part of a motor drive circuit. There will be almost no load on the circuit.
I am taking the output of a PIC microcontroller to drive a CMOS circuit that is running of 12V.
The CMOS chip is part of a motor drive circuit. There will be almost no load on the circuit.
A simple NPN transistor is all you require, connect the emitter to 0V, the base via a 1K to the I/O pin, and the collector via a load resistor to 12V. A fully switched on transistor drops far less than 0.5V.
You could also use the open-collector output on the PIC (usually RA4), it just requires a pull-up resistor - it's provided for this very purpose!.