PIC32 (MIPS M4K)

Getting Started with PIC32 Microcontrollers

This tutorial uses MPLAB v8.56.

Step-1: Open MPLAB IDE and enter into Project->Project Wizard

Getting started with PIC32

Step-2: Select the device, in this case PIC32MX360F512L

Getting started with PIC32

Step-3: Check the Tools chain. C32 is automatically installed with the MPLAB IDE,  however, if you don’t find them in the wizard (see red crosses), click the browse button and locate them into the MPLAB install directory. (continue reading…)

Share

Writing Better Embedded Firmware

Co-operative multitasking I think this is the most simple, organized and suitable way to write code for real-time embedded systems. This is simple state machine based model which responds well in real-time. In this case I am using PIC32MX340F512L MCU, you can adopt this code for your favorite microcontroller.

First we write a simple main function where other functions will be called:

// main.c file
// add pic32 lib
#include
 
// prototype the functions
void blinky_init(void);
void blinky(void);
void button_init(void);
void button(void);
 
int main (void)
{
	// initialize the apps
	blinky_init();
	button_init();
	// ....
 
	// run the app(s)
	while (1)
	{
		blinky();
		button();
		// ....
	}
}

In above code snippet we have added processor related libraries, declared the prototypes of the functions which we are going to use and then started the main function. In the main function, we have first initialized the peripherals which we are going to use. In this case only two types, an LED and a push button. The main operations of the peripherals are handled in the blinky(); and button(); functions. Now we look at these functions: (continue reading…)

Share

PIC32MX2 Breakout Board

The PIC32MX2 series has at least one advantage over PIC32MX1 series that it has built-in USB. This makes it perfect for small DAQ projects and peripheral interfaces to the standard PC. The breakout board is similar to the previous PIC32MX1 Breakout Board and Stellaris LM3S811 Breakout Board. Gerbers and complete design (CAD) files are available for download.

PIC32MX2 Breakout Board

         

               PIC32MX2 Breakout Board

 

Download Files:

Share

PIC32MX1 Breakout Board

PIC32MX1 Breakout Board

PIC32MX1 and PIC32MX2 are the families of microcontrollers recently introduced by Microchip. These are the cropped down members of PIC32MX3/4/5/6/7 MCUs with lesser power (40MIPS) and lower number of pins. The chips host the same M4K core but with smaller program and data memories.
This all free, open source, very small (1.5″x2.0″) and simple board is an attempt to introduce a ready to use board for easy prototyping. It has a small SOIC-28 PIC32MX1 MCU. SOIC-28 is chosen because it’s easier to solder. The breakout pins can be soldered with standard 0.1″ male/female header to be easily used with veroboard or breadboard. Diptrace source files, a schematic in PDF format and Gerbers are there to download.

PIC32MX1 Breakout Board          PIC32MX1 Breakout Board

Download Files:

 

Share

  • Follow

  • Just a Moment Please

    About You
    What defines you the best...
  • Disclaimer

    The information on this website is based on my personal views which may differ from my employer(s). The free material here to download is the work I have done in my free time and, though may seem resembling, does not belong to my current or previous employer(s). It is solely my own intellectual property.
  • Copyright © Electrodesigns.net 2011-12
    iDream theme by Templates Next | Powered by WordPress