at91sam9263 ATMEL Corporation, at91sam9263 Datasheet - Page 933

no-image

at91sam9263

Manufacturer Part Number
at91sam9263
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91SAM9263
Manufacturer:
AT
Quantity:
1
Part Number:
at91sam9263-CJ
Manufacturer:
ATMEL
Quantity:
181
Part Number:
at91sam9263-CU
Manufacturer:
ATMEL
Quantity:
132
Part Number:
at91sam9263-EK
Manufacturer:
Atmel
Quantity:
135
Part Number:
at91sam9263B-CU
Manufacturer:
IDT
Quantity:
1 043
Part Number:
at91sam9263B-CU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at91sam9263B-CU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at91sam9263B-CU-100
Manufacturer:
ATMEL
Quantity:
1 000
Part Number:
at91sam9263B-CU-100
Manufacturer:
ATMEL
Quantity:
3 060
Part Number:
at91sam9263B-CU-100
Manufacturer:
Atmel
Quantity:
10 000
44.4
44.4.1
44.4.2
6249D–ATARM–20-Dec-07
Examples of Drawing Functions
Line Draw
Block Transfer
This function draws a thick (2 pixels wide) solid black line from start point (startx, starty) to end
point (endx, endy). startx, starty, endx, endy should be in pixel units.
This function OR’s source data (startx, starty) of size (sizex, sizey) with destination data (endx,
endy) and writes it to the destination memory area. sizex, sizey, startx, starty, endx, endy should
be in pixel units.
Void line_draw(unsigned short startx, unsigned short starty,
{
while(graphics_control.2DGC_GSR & 3);
graphics_control.2DGC_SBXR = startx;
graphics_control.2DGC_SBYR = starty;
graphics_control.2DGC_TEXR = endx;
graphics_control.2DGC_TEYR = endy;
graphics_control.2DGC_LOR = 0x00; // Select logic operation MOV
graphics_control.2DGC_CSR = 0x00; // Colour black
graphics_control.2DGC_LWR = 0x02; // 2 pixels wide
graphics_control.2DGC_LPR = 0xFFFF; // Solid line
graphics_control.2DGC_GOR = 0xD5; // Line draw, absolute, no update, 1D
pattern
while(graphics_control.2DGC_GSR & 1);
}
Void block_transfer(unsigned short startx, unsigned short starty, unsigned
short endx,
{
while(graphics_control.2DGC_GSR & 3);
graphics_control.2DGC_2DGC_BTSXR = sizex;
graphics_control.2DGC_2DGC_BTSYR = sizey;
graphics_control.2DGC_SBXR = startx;
graphics_control.2DGC_SBYR = starty;
graphics_control.2DGC_TEXR = endx;
graphics_control.2DGC_TEYR = endy;
graphics_control.2DGC_LOR = 0x01; // Select logic operation OR
graphics_control.2DGC_GOR = 0xB4; // Selects block transfer, absolute, no
update
while(graphics_control.2DGC_GSR & 2);
}
unsigned short endx, unsigned short endy)
unsigned short endy, unsigned short sizex, unsigned short sizey)
AT91SAM9263 Preliminary
933

Related parts for at91sam9263