Tuesday, 20 November 2018

microcontroller - Driving LED with PIC 5V


I have always been taught to driver an LED using an MCP using the following method (Driving the pin high) as shown in the diagram below: enter image description here


However I have recently seen LED's being driven using the following method as shown in the diagram below. I assume in this method the LED is driven when the digital pin is set to low. Which method is best practice and why? enter image description here




No comments:

Post a Comment