SAM9263 Atmel Corporation, SAM9263 Datasheet - Page 969

no-image

SAM9263

Manufacturer Part Number
SAM9263
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of SAM9263

Flash (kbytes)
0 Kbytes
Pin Count
324
Max. Operating Frequency
240 MHz
Cpu
ARM926
Hardware Qtouch Acquisition
No
Max I/o Pins
160
Ext Interrupts
160
Usb Transceiver
3
Usb Speed
Full Speed
Usb Interface
Host, Device
Spi
2
Twi (i2c)
1
Uart
4
Can
1
Ssc
2
Ethernet
1
Sd / Emmc
2
Graphic Lcd
Yes
Video Decoder
No
Camera Interface
Yes
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
96
Self Program Memory
NO
External Bus Interface
2
Dram Memory
sdram
Nand Interface
Yes
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8/3.3
Fpu
No
Mpu / Mmu
No / Yes
Timers
3
Output Compare Channels
3
Input Capture Channels
3
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
No
45.4.4
6249I–ATARM–3-Oct-11
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.TDGC_SBXR = startx;
graphics_control.TDGC_SBYR = starty;
graphics_control.TDGC_TEXR = endx;
graphics_control.TDGC_TEYR = endy;
graphics_control.TDGC_LOR = 0x00; // Select logic operation MOV
graphics_control.TDGC_CSR = 0x00; // Colour black
graphics_control.TDGC_LWR = 0x02; // 2 pixels wide
graphics_control.TDGC_LPR = 0x5555; // Patterned line ON, OFF, ON, OFF …
// set clip rectangle boundary (4,2), (8,2), (4,4), (8,4)
graphics_control.TDGC_CXMINR = 4;
graphics_control.TDGC_CXMAXR = 8;
graphics_control.TDGC_CYMINR = 2;
graphics_control.TDGC_CYMAXR = 4;
graphics_control.TDGC_CCR = 1; // Enable clipping
graphics_control.TDGC_GOR = 0xD5; // Line draw, absolute, no update, 1D
pattern
while(graphics_control.TDGC_GSR & 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 TDGC_CQR
chk_for_buffer_empty(add_count);
graphics_control.TDGC_CQR
register address
graphics_control.TDGC_CQR
update
graphics_control.TDGC_CQR
graphics_control.TDGC_CQR
graphics_control.TDGC_CQR
graphics_control.TDGC_CQR
for(i = 0;i < 320; i ++)
{
add_count = 7;
chk_for_buffer_empty(add_cnt);
graphics_control.TDGC_CQR
address
=
=
=
=
=
=
=
0x04;
0x08;
120;
160;
0;
0;
0x14;
// length, number of registers to
// start address, end y register
// start address, start x
// start x
// start y
// end x
// end y
AT91SAM9263
969

Related parts for SAM9263