I am using Mikrobasic for AVR, and Proteus V8.3 ,So i have wired my circuits as you see in this picture:
I modified it in Proteus with one IC Atmega128 as you see in this picture:
and i used this code in Mikrobasic for AVR :
Code: Select all
program MyProject
'*******************************************************************************
'----- Color LCD CONFIG --------------------------------------------------------
'*******************************************************************************
' TFT display connections
dim TFT_16bit_DataPort_Lo as byte at PORTD
dim TFT_16bit_DataPort_Hi as byte at PORTE
dim TFT_16bit_WR as sbit at PORTA1_bit
dim TFT_16bit_RD as sbit at PORTA2_bit
dim TFT_16bit_CS as sbit at PORTA3_bit
dim TFT_16bit_RS as sbit at PORTA0_bit
dim TFT_16bit_RST as sbit at PORTA4_bit
dim TFT_16bit_DataPort_Lo_Direction as byte at DDRD
dim TFT_16bit_DataPort_Hi_Direction as byte at DDRE
dim TFT_16bit_WR_Direction as sbit at DDA1_bit
dim TFT_16bit_RD_Direction as sbit at DDA2_bit
dim TFT_16bit_CS_Direction as sbit at DDA3_bit
dim TFT_16bit_RS_Direction as sbit at DDA0_bit
dim TFT_16bit_RST_Direction as sbit at DDA4_bit
' End of TFT display connections
' TFT display connections
dim
TFT_16bit_Disp_Rotation as byte
' End of TFT display connections
' Declarations section
main:
TFT_Init_ILI9341_16bit( 240, 320)
TFT_16bit_Dot(50, 50, CL_WHITE_16bit)
TFT_16bit_Fill_Screen(CL_AQUA_16bit)
end.
so you could find the Hex file and Proteus file here:
http://www.mikroe.com/forum/download/fi ... w&id=12099
So i think that i have wrong in Proteus connections for TFT LCD ILI9341.!!! But what is the correct connections?!!!
Thanks a lot.