User manual
292
mikoPascal PRO for PIC32
MikroElektronika
S1D13700_PartialImage
Prototype
procedure S1D13700_PartialImage(x_left, y_top, width, height, picture_
width, picture_height : word; const image : ^byte);
Returns Nothing.
Description Displays a partial area of the image on a desired location.
Parameters:
- x_left: x coordinate of the desired location (upper left coordinate).
- y_top: y coordinate of the desired location (upper left coordinate).
- width: desired image width.
- height: desired image height.
- picture_width: width of the original image.
- picture_height: height of the original image.
- image: image to be displayed. Bitmap array is located in code memory.
Note : Image dimension must match the display dimension.
Requires Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
// Draws a 10x15 part of the image starting from the upper left corner on
the coordinate (10,12). Original image size is 16x32.
S1D13700_PartialImage(10, 12, 10, 15, 16, 32, image);
Flash Memory Library
This library provides routines for accessing microcontroller’s (internal) Flash memory.
The program Flash array for the PIC32MX device is built up of a series of rows. A row contains 128 32-bit instruction
words or 512 bytes. A group of 8 rows compose a page; which, therefore, contains 8 512 = 4096 bytes or 1024
instruction words.
A page of Flash is the smallest unit of memory that can be erased at a single time. The program Flash array can be
programmed in one of two ways:
- Row programming, with 128 instruction words at a time.
- Word programming, with 1 instruction word at a time.
The CPU stalls (waits) until the programming operation is nished. The CPU will not execute any instruction, or respond
to interrupts, during this time. If any interrupts occur during the programming cycle, they remain pending until the cycle
completes.
Library Routines
- Flash_Write_Word
- Flash_Write_Row
- Flash_Erase_Page