Simulating TFT LCD (ILI9341) With Proteus V8.3

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
soheil_sab
Posts: 12
Joined: 23 Oct 2015 11:37
Location: iran
Contact:

Simulating TFT LCD (ILI9341) With Proteus V8.3

#1 Post by soheil_sab » 14 Dec 2015 17:42

Hi Dears:

I am using Mikrobasic for AVR, and Proteus V8.3 ,So i have wired my circuits as you see in this picture:

Image

I modified it in Proteus with one IC Atmega128 as you see in this picture:

Image

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 if the connections is correct it must show an blue page in Proteus simulator,but it don't work.!!!

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.
Attachments
tft-9341.zip
(1.91 MiB) Downloaded 8728 times

gsabac
Posts: 7
Joined: 04 May 2018 16:33
Location: Bucuresti Romania

Re: Simulating TFT LCD (ILI9341) With Proteus V8.3

#2 Post by gsabac » 23 Dec 2019 10:29

Simulating TFT LCD (ILI9341) With Proteus V8.7 SP3
I remodeled the initial scheme just like in the photo.
The program only accepts and executes fill color, it accepts all of the other commands but it doesn't execute them, for example line, circle, rectangle...

Enjoy!

@gsabac
Attachments
ATmega128 with TFT-ILI9341 fill display.rar
(88.26 KiB) Downloaded 451 times
ATMEGA128-ILI9341.png
ATMEGA128-ILI9341.png (53.6 KiB) Viewed 5479 times

Post Reply

Return to “mikroBasic PRO for AVR General”