Microchip Technology AC164127-7 Data Sheet

Page of 34
 2011 Microchip Technology Inc.
DS01368A-page 27
AN1368
14. USE_BITMAP_FLASH: Supports bit map
images stored in the internal Flash of the
microcontroller to be used in the application.
15. USE_BITMAP_EXTERNAL: Supports bit map
images stored in the external memory (serial or
parallel Flash) to be used in the application. The
application needs to implement a function, WORD
ExternalMemoryCallback (EXTDATA
*memory, LONG offset, WORD nCount,
void *buffer)
, to get data from the external
memory.
HardwareProfile.h
This file is used to configure hardware for an application
and is similar to the usage as in other Microchip software
libraries. If a HardwareProfile.h already exists in the
application, the following definitions can be added to it,
and if not, a new file with the following definitions must
be created. This file mainly contains the following
sections:
1.
GetSystemClock():
 
This macro must return
the frequency of the system clock in Hertz.
2.
GetPeripheralClock():
 This macro must
return the frequency of the peripheral clock in
Hertz. In PIC24 microcontrollers, this is half of
the system clock. For more information on
PIC32 devices, refer to the respective device
data sheet.
3.
GetInstructionClock():
 This macro must
return the frequency of the instruction clock in
Hertz. In PIC24 microcontrollers, this is half of
the system clock, and in PIC32 microcontrollers,
this is the same as the system clock.
4.
Display Related Settings:
 These settings
contain a set of #defines which defines the
various display related parameters, such as the
type of the display (TFT or CSTN or MSTN),
resolution of the screen, color depth, display
clock speed, various display timing parameters,
address of the draw buffer and frame buffer
among others. 
5.
I/O Ports for Keys: Provide definitions of the I/O
pins used in the application. These can be used
as inputs for switches or outputs to turn on LEDs,
or application controlled pins to enable specific
hardware.
6.
External Memory Definitions:
 These
#defines
 provide the definitions of port pins
and/or module initialization, such as for SPI,
I
2
C™ or PMP to interface to the microcontroller
with the external memory (EEPROM, Flash or
SD Card).
7.
Touch Screen Definitions:
 These #defines
provide the definitions and setup information of
ADC channels used for sensing a touch in touch
screen-enabled applications.
8.
RTCC Definitions:
 These #defines provide
setup information for the RTCC module if an
internal Real-Time Clock (RTC) is used in the
application.
9.
Communication Definitions:
 These
#defines
 provide the definitions and setup
information of communication modules, such as
UART/USB channels used for communication
proposes in the application.
10. Application-Specific Definitions: Any other
application-specific hardware definitions can be
included here.
Refer to any graphics demo distributed with the
Microchip Graphics Library for specific details or for
use as an example.
OTHER GRAPHICS LIBRARIES FOR 
PIC MICROCONTROLLER
Apart from Microchip, there are various third parties
that provide a graphics library for PIC MCUs. For
example:
• Segger’s emWin Graphics Library
• Micrium’s  µC/GUI
CONCLUSION
Support for embedded graphics is becoming important
in recent user interface applications. Microchip
supports their customers in multiple ways by providing
development tools, graphic libraries, graphic-enabled
microcontrollers (PIC24FJ256DA210) with extensive
documentation, demo codes and support. Microchip’s
graphics solutions can be successfully used for many
embedded graphics applications resulting in less time
to market and lower cost.
Note:
Refer to the Microchip Graphics Library
Help file for the latest set of configuration
options.
Note:
Refer to the Microchip Graphics Library
Help file for the latest set of configuration
definitions.