Posts

Showing posts with the label PIC32

Stereo audio player using the PIC32 MCP4822 microSD card and the MDDFS library

Image
Oscilloscope screen capture of output from the audio player Top - left channel Bottom - right channel Using the PIC32MX250F128B, I decided to make a simple audio player. I wanted to play back good quality audio from a large memory space - a microSD card. So, I made this WAV player that can play back 16-bit 44.1kHz WAV files with 12-bit stereo audio output. Of course that's not all it can play back. It is programmed for automatic period configuration so that the period is set on the fly based on the song sample rate. It can play back both 8-bit and 16-bit mono and stereo audio files and I have tested from 8kHz 8-bit mono to 44.1kHz 16-bit stereo. The player itself does not include an audio amplifier to drive speakers but can drive earphones. I've used an external stereo speaker for testing. The hardware is fairly simple! Using the Microchip Memory Disk Drive File System (MDDFS) library, and my previous work using the MCP4822 dual 12-bit DAC, integrating these components to make ...

PIC32 Development Proto board on verroboard

Image
My PIC32 protoboard in action - Measuring the speed of the internal ADC and displaying it on the 7 Segment Display board It’s been a while since I last posted. My second semester at Cornell has begun and it has been busy. My first semester ended mid December 2016. So I went back home to Dhaka, Bangladesh for winter break. Unfortunately, due to the ongoing political crisis in Bangladesh at the time, I could not spend too much time outside home. Thus I ended up spending a lot of time on electronics. There were two aspects to this over my winter break. One, I spent a lot of time with the PIC32, writing some code, doing tests with the peripherals and making a “proto board”. That, I must admit, was a lot of fun. It was a continuation of my independent study (see: http://www.blogspot.com/2016/09/200000-views-ithaca-arm-and-dmips.htmland http://www.www.blogspot.com/2016/01/a-comparative-study-between-at91sam3x8e.html). The second part was me developing an AC-AC voltage stabilizer (more on ...

PIC32 JTAG Loader ICSP programmer

This past semester, I worked on an independent study/project where I explored the programming of the PIC32. I've provided the details in the following PDF document. The key takeaway I believe is: "This document presents sufficient background information on the project, and implementation specific details. The most important contribution this makes is adding the experiences and a full implementation of the project. For even more detail and a thorough understanding, it is recommended that this report be read along with the reference documents mentioned in Section 4.1." I plan on improving this, as well as exploring the option of programming other PICs this summer. A cursory look made me think that the PIC32 programming standard was more complicated than the PIC16's. I'll find out! All the project code and settings can be found here . This includes the PIC32 project, as well as the MATLAB code for the programmer software https://drive.google.com/open?id=0B4SoPFPRNziH...