پاسخ : راه اندازی LPC1768+TFTLCD "2.4" +Touch sceen+SDRAM
بله درست می فرمایید برای رم چی bin می ریزیم یا hex? و چرا؟
نوشته اصلی توسط mehdi_nxp
void tftlcd_write_pic_big(const unsigned short *pointer) { int counter; tftlcd_write_index_register(TS_INS_GRAM_ADY); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_START_ADY); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_END_ADY); tftlcd_write_wdr(319); tftlcd_write_index_register(TS_INS_GRAM_ADX); tftlcd_write_wdr(239); tftlcd_write_index_register(TS_INS_START_ADX); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_END_ADX); tftlcd_write_wdr(239); tftlcd_write_index_register(TS_INS_RW_GRAM); for(counter = 0;counter < 76800;counter++) tftlcd_write_wdr(pointer[counter]); }
void tftlcd_write_pic_big(const unsigned short *pointer) { int counter; tftlcd_write_index_register(TS_INS_START_ADX); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_END_ADX); tftlcd_write_wdr(239); tftlcd_write_index_register(TS_INS_GRAM_ADX); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_START_ADY); tftlcd_write_wdr(0); tftlcd_write_index_register(TS_INS_END_ADY); tftlcd_write_wdr(319); tftlcd_write_index_register(TS_INS_GRAM_ADY); tftlcd_write_wdr(319); tftlcd_write_index_register(TS_INS_RW_GRAM); for(counter = 0;counter < 76800;counter++) tftlcd_write_wdr(pointer[counter]); }
tftlcd_write_index_register(TS_INS_GRAM_ADX); tftlcd_write_index_register(TS_INS_GRAM_ADY);
lcd_write_index_register(TS_INS_GRAM_ADX); lcd_write_wdr(0); lcd_write_index_register(TS_INS_START_ADX); lcd_write_wdr(0); lcd_write_index_register(TS_INS_END_ADX); lcd_write_wdr(319); lcd_write_index_register(TS_INS_GRAM_ADY); lcd_write_wdr(0); lcd_write_index_register(TS_INS_START_ADY); lcd_write_wdr(0); lcd_write_index_register(TS_INS_END_ADY); lcd_write_wdr(239);
int main(){ SystemInit(); tftlcd_init(); tftlcd_clear(); tftlcd_write_pic(0,0,car); Delay(); tftlcd_write_pic_big(animal); while(1); }
دیدگاه