Using buttons with your microcontroller in Assembly - Part 9 Microcontroller Basics (PIC10F200)
Buttons! We've learned a lot of things over the last tutorials but we are going to bust open the amount of potential projects you can do with this one. In this tutorial, we cover how to scan for button inputs using a polling routine in assembly. The code we go over introduces some new commands and uses the delay routines we developed (and have used many times!) in the past. One of the nice things about this code is that it is modular and can be used over and over in other applications. Get the code and check out Sergey's written tutorial on the CircuitBread website - https://www.circuitbread.com/tutorials/button-inputs-part-9-microcontroller-basics-pic10f200 If you find this interesting, subscribe to CircuitBread for more videos on microcontrollers and other beginner and intermediate electronics! Table of Contents 0:00 Introduction 0:22 Overview of what we're going to do with the buttons 1:30 Starting the code and reviewing the "pipe" or "|" or "OR" bitwise operation 2:20 Overview of "polling" 3:29 Our first new command "BTFSC" and how we actually scan, or poll, the buttons 5:12 Overview of why we need a "debounce" with a button push and how we can eliminate bouncing in hardware or software 9:27 Discussing issues with the PICKit while showing the demo 12:08 Sergey's recommended homework assignment For electronics tools, tutorials, equations and more check out our site: https://www.circuitbread.com And check out our Friends of CircuitBread, who offer special discounts, product samples, resources and more to our users: https://www.circuitbread.com/friends CircuitBread is joining the fight to help people more easily learn about and use electronics. With an ever-growing array of equations, tools, and tutorials, we're striving for the best ways to make electronics and electrical engineering topics more accessible to everyone. Connect with CircuitBread: Instagram ➤ http://instagram.com/circuitbread Facebook ➤ https://www.facebook.com/circuitbread Twitter ➤ http://twitter.com/circuitbread
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.