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

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...