You are currently browsing the archives for the PIC24 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 PIC24 Category
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 »
Good old printf() (continued)
30. September 2009 by pilot.
Continuing on the subject of using printf() as the most basic debugging tool, if you are using the MPLAB SIM software simulator to test portions of your code, you might be aware that the PIC simulator offers the possibility to simulate the UART1 module.
Simply open the Debugger menu, select Settings to open the Simulator Settings dialog box and in the UART1 I/O pane check the “Enable UART1 I/O” checkbox. This will give you two options:
· Record anything transmitted by UART1 into a file
· Send the transmitted data directly to the MPLAB Output window but in a separate pane, next to the Build pane, the Find in Files pane and the Debugger Output panes.
Posted in PIC24 | 2 Comments »
Searching for a Pin in a Haystack
24. April 2009 by pilot.
There is one problem I have with the current style used in the PIC24 and PIC32 datasheets, it has to do with the way the pin out of the device is presented. Since so many functions are multiplexed on each pin, I find myself constantly checking for potential conflicts when choosing carefully my GP I/Os. The pin-out table is designed to list alphabetically all the individual options and determine the pin number, but then how do you cross check for other functions with the same number?
As I did before for the PIC24, I have created a convenient Excel spreadsheet and filled it with the PIC32MX3xx pinout table info: PIC32MX3xx pinout
Now you can sort the pins by name, by pin number (in different packages) or by group/peripheral.
As an added bonus it was easy to include the information about the pin usage by the Explore16 board and the various PICTail boards available (including the AV16/32 of course).
I hope you’ll find it useful…
P.S. Should you find any error or omission, please make sure to report it to me…
Posted in PIC32, Configuration, AV16/32, PIC24 | 1 Comment »
Inexplicably Working Errata
1. November 2008 by pilot.
A few days ago, I received an email from a reader who reported a new errata on page 123 (in the “Learning to fly the PIC24″ book) in the write() function, an example of redirecting the “stdout” output stream.
The function receives a pointer to a buffer containing characters that need to be forwarded to the output device of choice and a counter. A loop is performed to print sequentially the required number of characters, but (here is the bug) I apparently omitted to increment the buffer pointer. To the reader’s greatest surprise the code example seems to work anyway! How is this possible?
Posted in MPLAB C30, PIC24 | No Comments »
Back online, Excuses and the Blues Brothers
22. October 2008 by pilot.
It has been almost three full months since my last posting and you might have been wondering what happened … I have only a few excuses, but good ones:
- I moved back to the old continent, I am now writing this from Munich, Germany
- I changed job (a bit), while still working for Microchip, I am now responsible for the marketing of 32-bit microcontrollers in Europe, Middle East and Africa. This of course requires quite a bit of traveling.
- But perhaps the most important one is my new “project”, my son Luca, who is now 10 months old and absorbing ALL that is left of my wake time.
In this last few months I have received tons of email, (I love emails from my readers) and tried to respond to most of them. Some of you have been reporting about typos in the books and/or issues with new versions of the compilers and libraries. Others have brought up interesting ideas and questions that I plan on using in the future postings. Slowly, I will try to cover all the backlog and get back live.
Stay tuned!
P.S.: For those among you who are old enough to remember the Blues Brothers movie, here is Jake’s (Jim Belushi) original list of excuses:
- I ran outta gas.
- I had a flat tire.
- I didn’t have enough money for cab fare.
- My tux didn’t come back from the cleaners.
- An old friend came in from outta town.
- Someone stole my car.
- There was an earthquake,
- … a terrible flood,
- …locust’s.
- It wasn’t my fault!!
Posted in PIC24 | No Comments »