Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
leonel said:HI.
I would like to know if i can put RA4 pin as output in PIC16F872 to turn on a relay?
leonel said:So, what you're saying is that i have to do sometnhig like that (see image)
putting RA4=1 my relay will turn on
putting RA4=0 my relay will turn off
leonel said:Yes, my relay current it's+-20mA.
I think i cannot put 24V on RA4 pin, because in datasheet says
"Voltage on RA4 with respect to Vss 0 to +8.5V"