O'Reilly logo

Programming 32-bit Microcontrollers in C by Lucio Di Jasio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Day 16 Musica, Maestro!

The Plan

Gone is the time when music was an analog thing and the home stereo took up an entire rack of expensive electronics. Starting with music CDs almost 20 years ago and continuing today with iPods and MP3 players, music is now stored and consumed in digital form. For consumer and embedded applications, audio is an available and inexpensive option to delight but also to communicate with the user.

In this lesson we will explore the possibility to produce audio signals using the Output Compare modules of the PIC32. In Pulse Width Modulation (PWM) mode, and in combination with a more or less sophisticated low-pass filters, the Output Compare modules can be used effectively as DACs to produce an analog output signal. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required