Download Lab 2

Transcript
requirement of each instruction.
The Structure of the code as follow:
***********************************************************************
void Lcd_Test(void)
{
/* initial LCD controller here */
/* You can Change the code below in the rectangle! */
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
INT16 i, j;
for(i=1;i<=3; i++)
{
for(j=1;j<=3; j++)
{
/* 1. Use the Lcd_Draw_Box function to draw 3*3 boxes, the size of each
box is 50*50 */
}
}
///
/* 2. write codes to show numbers from 0 to 9 to fill the table.Use function
Lcd_DspAscII8x16 to show values, take care of the order of numbers. */
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
Lcd_Dma_Trans(); // Use the DMA method.
}
Take a picture of the LCD screen and include in your lab report. Include your code in the lab
report.