Creating music with Assembly - Part 8 Microcontroller Basics (PIC10F200)

Creating music with Assembly - Part 8 Microcontroller Basics (PIC10F200)

14.241 Lượt nghe
Creating music with Assembly - Part 8 Microcontroller Basics (PIC10F200)
We've turned on LEDs, made them blink, and even have been able to do cool patterns using charlieplexing. But now... now we create music! Using a speaker and some basic PWM modulation, we create a circuit and the firmware to play "Für Elise". So, not only do you have the opportunity to learn greater precision and timing with delays and PWMs, you get to learn some very, very basic music theory. This is a fun one and a departure from the typical basic embedded system projects, so enjoy! To get the code and read Sergey's written tutorial that this is based on, go to the CircuitBread website - https://www.circuitbread.com/tutorials/musical-microcontroller-part-8-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 Introduction to the basics of music theory 1:30 The frequencies for the different notes that Sergey has provided 2:50 Using magnetic versus piezoelectric speakers and the circuit diagram 3:55 The Assembly code used to create music 5:50 SLEEP command in Assembly 6:45 XORWF bitwise operation to compare the F and Working register 8:26 The music in action 8:50 Homework assignment - make your own music! 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