Social
Meta
Meta
Category Archives: Tips and Tricks
Literally Bits
The new version of the MPLAB C32 (v1.05) compiler is out and is filled with new features and a new (as in additional) DSP library designed for compatibility with the dsPIC standard DSP lib. But for me the most exciting … Continue reading
Posted in PIC32, Tips and Tricks
Comments Off on Literally Bits
Using the 32-bit Core Timer
One of the features of the PIC32 that I have so far somewhat left out in my “explorations” is the 32-bit Core Timer. This is in fact a piece of the MIPS M4K core itself and is common to all … Continue reading
Posted in PIC32, Tips and Tricks
Comments Off on Using the 32-bit Core Timer
Testing the PIC32 I/O Speed
In the last several months I have seen a couple of postings on the PIC32 forum about users testing the speed of the PIC32 I/O. It is quite normal and healthy for a community of Embedded Control designers to worry … Continue reading
Posted in PIC32, Tips and Tricks
2 Comments
Merry Christmas and Happy New Year
I guess we all wait for the Christmas holidays to recover from a long year of hard work, enjoy some more time with family and friends and prepare for the new year at the doors. As I am writing this, … Continue reading
Posted in AV16/32, PIC32, Tips and Tricks
Comments Off on Merry Christmas and Happy New Year
Bending the laws of physics
As a reader pointed out today, when preparing one of the pictures in Chapter 3, I did use a little trick, I had almost forgotten… I did reduce the DELAY constants by a factor of 100 to … speed things … Continue reading
Posted in Tips and Tricks
Comments Off on Bending the laws of physics
Inexplicably Working Errata
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 … Continue reading
Posted in PIC24, Tips and Tricks
Comments Off on Inexplicably Working Errata
Modifying and Testing the code for the new GA1 and GB1 families
I have received a lot of request recently from readers, future PIC24 pilots, concerning the possibility to port the code from the book to the the newest families of PIC24 microcontrollers. The differences are not that big, but I have … Continue reading
Posted in PIC24, Tips and Tricks
Comments Off on Modifying and Testing the code for the new GA1 and GB1 families
3D Graphics
Using the new double buffered graphic library (see previous post) we can now create simple animations. In chapter 12 we have already seen how to visualize a 2D function using a grid and a bit of perspective (isometric). The next … Continue reading
Posted in AV16/32, Graphics, Tips and Tricks
1 Comment
Graphic Animation
In the good old times, when studying at the University of Trieste, I particularly enjoyed Rational Mechanics, a required class for any EE Master back then, presented by professor Enzo Tonti. One of the things that were always making his … Continue reading
Posted in AV16/32, Graphics, Tips and Tricks
1 Comment
Optimizing the graphic library
While working on the porting to the PIC32 of the code developed for the original PIC24 book it occurred to me that there were some obvious optimizations I had yet to explore. For a starter, the graphic.c library was using … Continue reading
Posted in Graphics, Tips and Tricks
1 Comment