Monthly Archives: January 2008

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

Flying along the Salt River

Probably most of you will think of Arizona as one flat desert place, but that is quite a mistake. Actually 70% or Arizona surface is covered by mountainous terrain. It is true though that 90% of the population do live … Continue reading

Posted in Flying | Tagged | 2 Comments

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

About main() and Advanced Warnings

The main() function is … a function and as such it is expected to either have a return value of a declared type (int, char …) or no return value at all in which case it should be declared using … Continue reading

Posted in PIC24, Tips and Tricks | 1 Comment

Setting the configuration bits

Speaking of configuration bits, in the book I have made clear from the beginning that I would expect the reader to set them always in a specific configuration chosen for debugging with the Explorer16 board. In fact the checklists titled … Continue reading

Posted in PIC24, Tips and Tricks | 2 Comments

MPLAB C30 v 3.02

Part of the challenge of writing a book based on new tools and products is to make sure that the content remains valid and relevant as they tend to evolve quickly in the months and years after the book release. … Continue reading

Posted in PIC24, Tips and Tricks | Comments Off on MPLAB C30 v 3.02