Social
Meta
Meta
Author Archives: Lucio Di Jasio
The Stack… so misunderstood
The stack is such a key element of every C program that too often we take it for granted and we don’t spend enough time to make sure we have it set properly. Most often we resolve to look into … Continue reading
Posted in Tips and Tricks
Comments Off on The Stack… so misunderstood
Watching Expressions
MPLAB has become such a large application, or I should better say “group” of applications, and it keeps evolving so fast that one can hardly keep up with the pace of monthly (when it is not weekly) updates. Typically before … Continue reading
Posted in Tips and Tricks
Comments Off on Watching Expressions
File I/O with Static Allocation
I am sure you won’t be surprised to learn that most (if not all) of the code presented in the book is derived from my past experimentations on the PIC18 and PIC16 over a few years… In particular the FileIO … Continue reading
Posted in Tips and Tricks
Comments Off on File I/O with Static Allocation
The missing (pinout) table
There is one table I have been looking for many times among the PIC24 documentation and could never find… it’s a pin-out table, nothing fancy, but a complete one that would help me figure out quickly how to tell if … Continue reading
Posted in Tips and Tricks
1 Comment
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