Friday, March 06, 2009

    MPLAB C Compiler for PIC32 MCUs v1.05 Released

    New Features in v1.05

    Student Edition renamed Evaluation Version -- The student edition has been renamed the valuation version. This release also introduces a new academic version.

    Improved 16- and 32-bit FFT functions in the DSP Library -- The FFT functions have been significantly improved and optimized for the PIC32 instruction set. See the 32-bit Language Tools Libraries document (DS51685) for more information. Please visit Microchip's website for the revision C of this document (DS51685C).

    Binary Constants -- A sequence of binary digits preceded by 0b or 0B (the numeral '0' followed by the letter 'b' or 'B') is taken to be a binary integer. The binary digits consist of the numerals '0' and '1'. Note that this binary-constant syntax may not be accepted by other C compilers.

    Linker Memory-Usage Report -- This optional, informational report allows you to easily determine the program- and data-memory usage of your application. It allows you to see how much space is used by the project being linked and how much space is available on the target device. The memory-usage report appears on stdout and in the optional map file.

    • Using this feature with MPLAB IDE 8.20 and earlier -- On the linker's tab of the project build options, select to Use Alternate Settings. Add the --report-mem option to the Alternate Settings field. The memory-usage report will appear in the output window after a project build. (This option will appear as a checkbox in later MPLAB IDE releases.)
    • Using this feature on the command prompt -- Add the --report-mem option to the linker's command line. If you are calling the linker via the compilation driver, use the driver's -Wl option to pass the --report-mem option to the linker. The memory-usage report will appear on stdout.

    Improved malloc implementation -- This release contains a new malloc/free/realloc implementation based on the implementation written by Doug Lea and released to the public domain.

    • This is not the fastest, most space-conserving, most portable, or most tunable malloc ever written. However it is among the fastest while also being among the most space-conserving, portable and tunable. Consistent balance across these factors results in a good general-purpose allocator.
    • For a high-level description, see http://g.oswego.edu/dl/html/malloc.html
    • This implementation is also provided with the Newlib C Library.

    Instruction Macros -- The p32xxxx.h include file now contains a Nop() macro that issues a superscalar SSNOP instruction.

    gettimeofday() weak stub -- The time.h clock() and time() functions require a user-provided gettimeofday() helper function. The compiler's library now provides a weak stub implementation that allows the project link to complete without error, but you should provide your own implementation appropriate for your application.

    Microchip DSP Compatibility Wrapper functions -- This release provides new DSP wrapper functions intended to ease the migration from the Microchip DSP library for dsPIC DSCs to the general DSP library for PIC32 MCUs. See the 32-Bit Language Tools Libraries (DS51685C) document for more information on these new wrapper functions.

    Updated peripheral-library documentation -- The 32-bit peripheral library document is now distributed as a compiled help file (*.chm) rather than a PDF file.

    Support for PWP configuration bits -- The config pragma now supports enabling the Program Write Protect bits. See the PIC32MX Config Settings help file for information on the setting name and available values for each device.

    Visit http://www.microchip.com/c32

    Wednesday, March 04, 2009

    New AnalogTalk.com Blog


    The Microchip Technology Analog Products group is just getting started with their new blog. Check it out and give them some support. I hear that they are looking for topics to write about and I'm sure they would be happy to hear your suggestions. :-) Visit their blog here.

    Tuesday, March 03, 2009

    PIC32 Prefetch Cache Module Webinar

    Watch this 6-minute introduction to the PIC32 Prefetch Cache Module. The Prefetch Cache module plays a key role in the performance of PIC32 at higher frequencies. Learn how the Prefetch Cache module enables PIC32 to keep up its high performance. You will also learn about the construction and operation of Prefetch Cache module.

    Microchip Introduces PIC18F87J90 8-bit LCD Microcontrollers


    Microchip Technology today announced the PIC18F87J90 8-bit direct LCD-drive microcontrollers (MCUs) with nanoWatt Technology. The 64- and 80-pin devices extend the memory reach and peripheral set of Microchip’s LCD MCU portfolio. They feature 64 – 128 KB Flash and 4 KB RAM, and are the industry’s first 8-bit MCUs to include a Real-Time Clock and Calendar (RTCC), and Charge Time Measurement Unit (CTMU) peripheral for capacitive touch sensing or precise time measurement. The PIC18F87J90 devices are pin compatible with Microchip’s PIC18F85J90 devices, providing an easy migration path across Microchip’s entire LCD-drive MCU family and simplified application upgrades.

    Read the full press release.
    Learn more about this new microcontroller at www.microchip.com/lcd

    Sunday, March 01, 2009

    PIC32 Development on Mac OS X using UBW32


    Phillip Burgess posted a great article describing how to use Brian Schmalz's UBW32 and Microchip's USB Bootloader to create a low-cost PIC32 development kit for Mac OS X. Visit his www.PaintYourDragon.com website for all of the details.

    Programming 32-bit Microcontrollers in C: Exploring the PIC32


    Looking for a good book to get you started programming in C for the 32-bit PIC32 MCU? Take a look at Lucio Di Jasio's Programming 32-bit Microcontrollers in C: Exploring the PIC32. The book describes the PIC32 microcontroller and has many useful examples in C. Keep in mind that this is not an introductory C language book; It expects you to be familiar with C programming already.