You are currently browsing the archives for the PIC32 category.
- 1. March 2010: Solve this!
- 29. January 2010: PIC32 Starter Kits Software v2.0
- 27. January 2010: Animation on the MikroE PIC32MX4 Multimedia Board
- 26. December 2009: Merry Christmas and Happy New Year
- 18. November 2009: MikroE MX4 Multimedia Board
- 30. September 2009: Good old printf() (continued)
- 26. August 2009: Changing habits... and dreaming a bit
- 24. July 2009: Where is my RAM?
- 15. July 2009: Olimex PIC-P32MX board
- 28. June 2009: A Great New Board from mikroElektronika
Archive for the PIC32 Category
Solve this!
1. March 2010 by pilot.
So I am still investigating the animation capabilities of the PIC32 and the MikroElektronika multimedia board… and having a lot of fun.
Do you remember how to solve the Rubik’s cube? Enjoy!
Posted in MikroE MMB, PIC32 | No Comments »
PIC32 Starter Kits Software v2.0
29. January 2010 by pilot.
Software v2.0 for PIC32 Starter Kits has been released, and can be downloaded at (link)
This software replaces all 1.x versions of Starter Kit Software, and is inclusive for all 3 PIC32 Starter Kits.
Posted in PIC32, Tools | No Comments »
Animation on the MikroE PIC32MX4 Multimedia Board
27. January 2010 by pilot.
I must admit, the MikroElektronika PIC32MX4 Multimedia Board has recently stolen the little that was left of my free time. I found myself toying around until late at night with it, and I have resurrected a number of old projects. The little QVGA display is so attractive, and I could not resist but try to port some of my favorite graphics programs to it.
Basically, if you have seen the MikroE web site, you have already seen a screenshot of the Mandelbrot project ported to the PIC32MMB. But if you have tried any of the advanced projects I posted on the PIC32 explorer web site, then you already know what I did next.
Graphics animation is more fun! It is different from basic graphics GUI design and support, because you have to add a real time element to it. To provide fluid motion you have to use double buffering techniques, and if there is 3D, linear algebra needs to be mixed in.
While this is all still very much a big work in progress, I would like to share with you a couple of previews of the kind of things you can do with the PIC32MMB.
This is the basic wireframe 3D cube animation (link)
There are four more videos for you to explore:
A more complex 3D wireframe (link)
More objects animated in 3D (link)
Using the onboard accelerometer to move around objects (link)
And finally a Solid (filled faces) rotating cube with hidden face removal (link)
Now things are getting real entertaining… any ideas?
Posted in MikroE MMB, Graphics, PIC32 | 3 Comments »
Merry Christmas and Happy New Year
26. December 2009 by pilot.
It is Christmas, again, not sure how this happened …
Of all my ambitious plans for 2009 only a few got done, but looking back I am pretty sure somebody must have stolen a couple of months from this years’ calendar. I will be more careful next year, won’t let it happen again.
I have been reading more about RTOSes recently, and specifically FreeRTOS:


My new year resolution: Learn to use (Free)RTOS to give better structure to my projects and practice the art of programming as the real pros!
Happy Holidays !!!
Posted in Books, PIC32, PIC24 | No Comments »
MikroE MX4 Multimedia Board
18. November 2009 by pilot.
It’s out! They did it!
The new PIC32 multimedia board from MikroElektronika has been officially announced today! http://www.mikroe.com/en/tools/pic32mx4-multimedia-board/
MikroE is world reknown for its well designed, documented and fully featured demo boards and development tools for all Microchip microcontroller families. But if you liked their Big Boards… you are going to love this “small” one.
For less than $150 you get a board that can truly put the PIC32MX460F512 chip to work, allowing you to exercise all its peripherals, including:
- Drive a TFT QVGA (320×240) display with a fast 16-bit parallel interface
- Read Touch screen input or Joystick inputs
- Play and record sound interfacing to WM8731 16-bit audio codec (including headphone amplified stereo outputs)
- Access files on SD/MMC cards
- Access files on USB memory sticks (USB Host)
- Connect to a PC (USB device) using HID, CDC or MSD classes
- Connect to a Mouse, Keyboard or printer (USB Host)
- Connect with a IEEE802.15.4 (MiWi/Zigbee) wireless network
- Access additional 1Mbyte of serial flash memory
- Access 1Kbit of serial EEPROM
- Exercise the Real Time Clock and Calendar with a 32kHz external crystal
- Interface to an MCP9700 temperature sensor
- RS232 port selectable (UART1/2)
- Interface to a 3 axes accelerometer (ADXL345)
- Use an ICD2/3, Real ICE or even a simple PICKit2/3 to program and debug
- Further expand the board using standard 100mils spaced side connectors
Also you can take full advantage of the entire set of Microchip Application libraries to create complex applications fast! In fact the board is designed to be compatible with the following Microchip (free of charge) libraries:
- Advanced Graphics Libraries
- USB Framework (Host/Device)
- MDD File System (FAT16 and FAT32)
- MiWi / Zigbee
- 32-bit Audio library
- Peripheral library (I2C, SPI, UART, RTCC, PWM…)
I want one!… CORRECTION.., I need one!… CORRECTION I need a bunch of them!
Posted in MikroE MMB, Graphics, PIC32, Tools | 1 Comment »
Where is my RAM?
24. July 2009 by pilot.
I know there are gobbles of RAM in a PIC32 (more than the entire FLASH bank in most other PIC16/18… ) but RAM is one of those things in life you can never have enough of!
Plus, I am an 8-bitter by education, as I have already acknowledged before, and having spent most of my professional life working on microcontrollers with very limited resources, I am very sensitive to waste and waste of RAM in particular.
If you check the memory gauges in MPLAB, even an empty PIC32 program with no function calls and practically no code at all in the main(), will give you a minimum memory usage of 1.5K bytes of RAM. To me that’s huge! I need to know where all this RAM is going and how I can control it should I need it all!
The mystery is easily solved, if you look at the .map file, it shows that 1k byte of that RAM is just the default amount “reserved” for the stack. As we have seen before (the stack so misunderstood…) the way MPLAB manages the stack memory allocation is a bit tricky. By the way, that memory is not literally allocated, nor the SP register is affected directly, but this number is used at compile time, only once, to check if , after allocating all the global variables and the heap (if there is one), there is still room for the requested amount of stack. So it shows in the memory gauges, but it is not representing by any means the “real” amount of RAM that will be used by your application stack, nor the maximum amount available. In fact the stack will take all the memory left and some… if it needs to.
But where is the other 1/2k byte of RAM gone?
Posted in PIC32, Tips and Tricks | No Comments »
Olimex PIC-P32MX board
15. July 2009 by pilot.
And the PIC32 demo boards saga cannot be complete until we mention the Olimex PIC-P32MX
This board is interesting and unique for a couple of good reasons:
- It offers a traditional serial port instead of the USB interface
- It ’s the most convenient for a quick wire wrap job
- Offers both ICD and JTAG connectors
- It’s most probably the cheapest of them all at Euro 19.95!
Posted in PIC32, Tools | 1 Comment »
A Great New Board from mikroElektronika
28. June 2009 by pilot.
The guys at mikroElektronika are very well known in the embedded and educational world for their large but inexpensive and well laid out boards for all PIC products. So I had been waiting quite anxiously for their first PIC32 specific board, and here it is!
Posted in PIC32, Tools | No Comments »
A new PIC32 Stick
15. June 2009 by pilot.
There is a new third party tool available for the PIC32 … it’s a stick!
I love sticks because they are easy to handle, expand, connect. They fit on good old breadboards and wire wrap (perforated) boards.
The guys at eFlightWorks have done a good job of fitting a PIC32MX440F256 in a 56 pin DIL package, exposing the USB port and providing all the basic necessities.
The promise is to port a simple BASIC interpreter and OS (known as StickOS) to the PIC32 so that code development, programming and debugging will be possible without need to use any external (in circuit) debugger/programmer …
I am waiting anxiously for the first release to give it a try… I will let you know…
Posted in PIC32, Tools | No Comments »
Loosing your Head(er)
20. May 2009 by pilot.
Contrary to what most MPLAB users believe, the “Headers” folder in MPLAB Project window is not affecting the compiler selection and access to .h files. It is there merely to let you access them quickly and open them in the editor window.
If you want to make sure that the compiler finds the .h files you are using you have to make sure to do one of two things:
A) Put the .h files (or copies) in the main project directory and use:
#include “xxx.h” (note the use of quotes).
or
B) Make sure to add the directory(-ies) where the .h files are to the “include search path” list in the Build Options for Project Dialog Box. Now you can use #include <xx.h> (note the angled brackets used as quotes)
Method A) is used for simplicity in the first half of the book.
Method B) is used in the second half of the book as we start building more advanced modules/libraries. The steps to add the include directory path to the Build Options for Project Dialog box are described in Chapter 10 (Day 10) page 238 and following…
Don’t loose your head(er)…
Posted in PIC32, MPLAB | No Comments »