Category Archives: PIC24

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

Back online, Excuses and the Blues Brothers

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 … Continue reading

Posted in PIC24, PIC32 | Comments Off on Back online, Excuses and the Blues Brothers

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

Chapter 5 Excercises

The exercises assigned in Chapter 5 are actually quite advanced and are mostly meant to give you ideas of the kind of powerful things you can do in C using interrupts (and simple state machines). The following chapters, in particular … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Chapter 5 Excercises

More on Chapter 5 Tips and Tricks and builtin functions

If after yesterday’s posting you though things were getting ugly (I agree), you will be pleased to learn that since the introduction of MPLAB C30 v3.02 things have improved considerably. After all, performing the unlock sequences should not be an … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on More on Chapter 5 Tips and Tricks and builtin functions

Chapter 5 Tips and Tricks

It is in Chapter 5 that we present for the first time the use of inline assembly. As a general rule in the book, this is a compromise accepted only in cases where we need to perform a task otherwise … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Chapter 5 Tips and Tricks

Updating Chapter 5

A lot of work has been done in MPLAB C30 rev 3.02 to perfect the management of interrupts and it affects the examples presented in the book in a number of ways. A) Let’s start with the simplest change, the … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Updating Chapter 5

Updating Chapter 4

There are no changes required to the code in chapter 4 after the upgrade to MPLAB C30 v.3.02. But there are some changes in MPLAB 8.00 behavior that will have you puzzled when looking for the subroutines (library modules) used … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Updating Chapter 4

Updating Chapter 3

Chapter 3 does not require any special consideration after the upgrade to MPLAB C30 v.3.02. So we will take the opportunity to work on the examples proposed: Sensing a button before starting the sequence is a step in the right … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Updating Chapter 3

Updating Chapter 2

Continuing with the review of the code examples for the latest revision of the MPLAB C30 compiler (3.02) it is time to look at Chapter 2. There is a single example used in this chapter and the code needs no … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on Updating Chapter 2