Small example to show how to use pointers to return more than one (1) variable from a function in C or C++
Tag: example
I’ve modified the original UART example that comes with the Microchip C32 compiler to easily handle different UART’s along with adding a compare function that compares what is recieved over the UART to a pre-defined set of characters. See the description in the source below for more. Download the source as a text file here: […]
Hi again. Onto the next example, this time on page 295 (figure 8.28). The code for this one is called ‘ledtoggle_nofsm’ and it’s in the chap8 folder. Now that we’ve defined EXPLORER16_100P in the pic24_all.h file, here is a new checklist to use: Double click on the project file for the exercise your wanting to […]
The UART example on page 262 just needs the Explorer16 check list from the last article to make it work and the ASM example I skipped as it’s not needed at this stage of my journey. The file name for the Figure 8.6 example is documented in the book. Well done to the author and […]
Well I’m going to run with the PIC24 for the time being and use the Microcontrollers – From Assembly Language to C Using the PIC24 Family book, but jumping to chapter 8 as the assembly language is not what I want at the moment. It’s learning about C and the PIC24. Anyway, as I’m using […]