Saturday, May 10, 2014

PIC MCU Open-Drain Output Solution

Many people specially the beginners always have some problems with the RA4 in PORTA for some PIC microcontroller as 16F84A  when they make it as an output. This pin is an open drain. To avoid this problem just add a pull up resistor of about 10K or less as shown.


But I advice for the beginners to set this port as an input.
Good-luck.