at91sam9263 ATMEL Corporation, at91sam9263 Datasheet - Page 935

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.5
6249D–ATARM–20-Dec-07
Drawing Using Command Queue
This function draws a series of lines. All commands are written into the FIFO which is automati-
cally converted to drawing commands. startx, starty, endx and endy should be in pixel units.
graphics_control.2DGC_FCR = vertex_count << 1;
graphics_control.2DGC_LOR = 0x00; // Select logic operation MOV
graphics_control.2DGC_CSR = 0x00; // Colour black
graphics_control.2DGC_LWR = 0x01; // 1 pixels wide line
graphics_control.2DGC_LPR = 0xAAAA; // Patterned line OFF, ON, OFF, ON …
graphics_control.2DGC_GOR = 0xF5; // Polygon fill,absolute,no update,1D
pattern
while(!(graphics_control.2DGC_FCR & 1));
}
void command_queue_draw(unsigned short startx, unsigned short starty,
unsigned short endx)
{
int add_count=6;
int i;
add_count = 6; // number of writes to 2DGC_CQR
chk_for_buffer_empty(add_count);
graphics_control.2DGC_CQR
register address
graphics_control.2DGC_CQR
update
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
for(i = 0;i < 320; i ++)
{
add_count = 7;
chk_for_buffer_empty(add_cnt);
graphics_control.2DGC_CQR
address
graphics_control.2DGC_CQR
update
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
graphics_control.2DGC_CQR
}
}
=
=
=
=
=
=
=
=
=
=
=
=
=
0x04;
0x08;
120;
160;
0;
0;
0x14;
0x05;
i;
0xFFFF;
0x04;
0x00;
0xD4;
AT91SAM9263 Preliminary
// line pattern
// length, number of registers to
// start address, end y register
// operation, line draw
// start address, start x
// length,# of registers to
// colour select
// logic operation, MOV
// start x
// start y
// end x
// end y
// end y
935

Related parts for at91sam9263