Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:26 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ILI9341 MISO Pin

Author Message
asknik2022
Regular Member

Joined: 26/03/2022
Location: United Kingdom
Posts: 92
Posted: 02:16pm 11 Jul 2024
Copy link to clipboard 
Print this post

I have been told in the past that not all ILI9341 displays have the MISO Pin connected properly and that you need this Pin to use BLIT Commands in MMBasic

Is this true and if so how do I know which Displays actually have the MISO pin wired correctly.

Is there some tst code to check etc or a list of recommended manufacturers etc
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2122
Posted: 04:02pm 11 Jul 2024
Copy link to clipboard 
Print this post

some give spec. https://www.aliexpress.com/item/1005003943508410.html?
if it has the touch chip then miso probably wired.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6783
Posted: 04:22pm 11 Jul 2024
Copy link to clipboard 
Print this post

AFAIK the ILI9341 is the one that works ok with everything.
The ILI9488 is the one that has problems with MISO.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2122
Posted: 04:48pm 11 Jul 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  AFAIK the ILI9341 is the one that works ok with everything.
The ILI9488 is the one that has problems with MISO.

I got four ili9341, different physical size but all 320x240 and miso is wired on all ie read screen pixel works.
one board did not have the touch chip.
the ili9488 needs the Schottky diode and resistor fix then works ok, screen read, touch, sd card.
 
asknik2022
Regular Member

Joined: 26/03/2022
Location: United Kingdom
Posts: 92
Posted: 07:17am 12 Jul 2024
Copy link to clipboard 
Print this post

Is there a test program?
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 08:35am 12 Jul 2024
Copy link to clipboard 
Print this post

This will test MISO by reading a pixel from the LCD screen. Copy and paste the two lines to the console.
'A 2 line colour counter.
> clear : option base 0 : dim string s(2)=(" blues"," greens"," reds") : dim integer a, b, c, d
> for a=0to 2:b=0:for c=0to 255:d=c<<a*8:pixel 9,9,d:if d=pixel(9,9)then:inc b:endif:next:?b;s(a):next
64 blues
64 greens
64 reds
>

If MISO is working properly the output is:-
ILI9488   64, 64, 64
ILI9341   32, 64, 32
PicoMiteVGA  2, 4, 2
OPTION LCDPANEL VIRTUAL_C  2, 4, 2

If you get those results Blit and Save Image will also be ok.

In program form:-
'A display colour counter
Clear : Option Base 0
Dim String S$(2) = (" Blues", " Greens", " Reds")
Dim Integer a, b, c, d
For a = 0 to 2 'cycle through blue , green and red
 b = 0        'initialize colour count
 For c = 0 to 255 'set the brightness
  d = c << (a * 8) 'make a 24bit colour
  Pixel 9, 9, d    'send it to a pixel
  If d = Pixel(9, 9) Then  'read that pixel back from the screen
   Inc b  'if the colour is the same as the one sent count it
  EndIf
 next
 Print b; S$(a) 'show  counted colours
next
End


More info here.https://www.thebackshed.com/forum/ViewTopic.php?TID=16834&P=10#223571
Edited 2024-07-13 12:06 by phil99
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024