View Single Post
  #289 (permalink)  
Old 19th Sep 2009, 2:04 pm
AleMaxx AleMaxx is offline
Member
Keen on MPx players
 
Join Date: Sep 2007
Posts: 68
Default

Okay, I dont have anymore ideas but to actually confirm that the initialization is okay you could try changing the fill color in the last part of the init to something else then black possibly adding a "delay_nops" after or inside the loop. Btw, there is some more code in the lcd init procedure that gets executed afterwards and prevents access to the screen via mcu_xxx routines. If you out comment these lines:
Code:
/*
	clr_regbits32(BUFF_CTRL, b_MCU_BYPASS);
	write_reg32(LINE0_YADDR, 0x7fe | b_ALPHA_EN);
	write_reg32(LINE1_YADDR, (XSize - 2) | b_ALPHA_EN);
	write_reg32(LINE0_UVADDR, 0x7ff);
	write_reg32(LINE1_UVADDR, (XSize - 1));
	write_reg32(LINE2_YADDR, (2*XSize - 2) | b_ALPHA_EN);
	write_reg32(LINE3_YADDR, (3*XSize - 2) | b_ALPHA_EN);
	write_reg32(LINE2_UVADDR, (2*XSize - 1));
	write_reg32(LINE3_UVADDR, (3*XSize - 1));
	write_reg32(DELTA_X, 0x200);
	write_reg32(DELTA_Y, 0x200);
	write_reg32(ALPHA_ALX, XSize - 16);
	write_reg32(ALPHA_ATY, 0x0);
	write_reg32(ALPHA_ARX, XSize - 1);
	write_reg32(ALPHA_ABY, YSize);
//	write_reg32(INTR_MASK, b_INTR_PERLINE | b_VERT_INTR);
*/
	// Lcdctrl_Display(ON);
	clr_regbits32(LCDC_CTRL, b_LCDC_STOP);
//	set_regbits32(BUFF_CTRL, b_RS_HIGH | b_BUFF_WRITE | b_BUFF_START);
	// Screen_Configure->Intr_Disable(INTC_LCDC);
(I slightly renamed the function names) mcu_xxx comands will still allow you to access the screen (maybe useful if you want to output messages to the lcd). I have some font code that works this way, I could upload it if you think it may be useful.
Reply With Quote