Posts Tagged ‘Library’

Fast Signal Sampling (Part 10)

Part 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12 PlainADC looks like it is a live product with always room for improvements. Before releasing an other really amazing new version, we may review a few critical things that developers should feel confortable with prior to interfacing the library to […]

PWM (Part 4)

Part 1, 2, 3, 4 Here is a simple sketch which examplifies the use of the PlainPWM library. Be carefully at declaring port and pin properly. The rest is really easy: initialize the PWM object with the port name, pin index, base frequency and default duty cycle ratio. The loop will dim the led up and down endlessly. /* […]

FIR Filters (Part 3)

Part 1, 2, 3 Note: As usual, the code samples are extracted from a standardized library (actually PlainFIR). Please check this page if you are interested in the code.. From the previous readings, we understand that the most complex part of the whole process is the filter design. For sake of simplicity, I decided to program the window […]

RTC Module (Part 6)

Part 1, 2, 3, 4, 5, 6, 7 Here are some pieces of code which has been updated from my previous PlainRTC library. A new specific PlainRTC1394 has been created; this library is also compatible with the fully revamped PlainSPI. Firstly, lets have a look to the header file: /* PlainRTC1394 library, Real Time Clock driver library MAXIM DALLAS DS1394 driver Copyright […]

SD Cards (Part 5)

Other posts on same subject Part 1, 2, 3, 4, 5, 6 Erratum! While building a professional grade application I realized that I made a stupid mistake in the Blocks function from my PlainSDC library. Firstly, here is a nice table showing the content of the CARD SPECIFIC DATA REGISTER: It is taken from the ‘APPLICATION NOTE 3969: SD Media Format Expands […]

Fast Fourier Transform (FFT) (Part 6)

Part 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 PlainFFT is a simple but effective library which contains all the previously described functions for running FFT on vectors of data. Here is the example code from the library files which demonstrates the (pretty easy) use of the FFT. The content of the vectors of interest is printed on completion of each FFT stage […]