Professional Documents
Culture Documents
Laboratory workbook for Advanced Microprocessors (As per Pune University Syllabus)
____________________________________________________________________________________
Part List:
Educational Practice Board for ARM7
9V Power supply
34 Pin Flat cable
20 Pin Flat cable
USB cable
Eclipse IDE
PC
ASK36
TFT Card
Hardware Connection
Connect USB cable between PL3 connector of EPBARM7 and PC.
Connect ASK36 to TFT Card using 34 pin flat cable.
Connect ARM7 J1 connector and TFT Card using 20 pin flat cable
Included Files:
____________________________________________________________________________________
Edutech Learning Solutions Pvt. Ltd. info@edutechlearning.com
____________________________________________________________________________________
Laboratory workbook for Advanced Microprocessors (As per Pune University Syllabus)
____________________________________________________________________________________
Program Listing:
#include "mario.h"
#include "spi.h"
#include "spi_glcd.h"
#include "pll.h"
int main(void)
{
InitClock();
ConfigGpio(SPI_PORT,SSEL0,Output,GpioFun);
ConfigSpi(Spi0,6,0,Master); // SPI0 clock Freq
= 12Mhz/8 = 1.5MHz where 8 is ClkDiv
// Clock
polarity = 0; Data is sampled on the first clock edge of SCK.
GLCD_Init(); // Initialize GLCD
GLCD_Clear (White);
GLCD_Bitmap (0,0,320,240,image); // Bitmap image at x=0 &
y=0
while(1);
return 0;
}
____________________________________________________________________________________
Edutech Learning Solutions Pvt. Ltd. info@edutechlearning.com
____________________________________________________________________________________
Laboratory workbook for Advanced Microprocessors (As per Pune University Syllabus)
____________________________________________________________________________________
Result:
Image will be displayed on the TFT display.
____________________________________________________________________________________
Edutech Learning Solutions Pvt. Ltd. info@edutechlearning.com