Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:27 07 Jun 2025 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 : PicoMite/PicoMiteVGA V5.07.03 betas - major update

     Page 3 of 4    
Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2514
Posted: 11:27pm 27 Dec 2021
Copy link to clipboard 
Print this post

Ok, Thanks Peter.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9547
Posted: 12:15am 28 Dec 2021
Copy link to clipboard 
Print this post

  thwill said  Do all the proposed PCB designs use the same pins and expose the GPIO in the same order on the same 40 (?) pin socket, or are you, and Mick, and Grog going to spend 2022 explaining the differences ?


LOL!  

In my case, my layout is going to be specific to my needs, and I WON'T be routing out the 40-pin header idea at all.  All I want, are the two COM ports, the SD card, the keyboard, and the VGA connector.  Somewhat similar to a classic serial terminal device of old, except for the colour VGA and SD card features.

COM1 will be level-corrected to RS232, COM2 will be level-corrected to TTL 5v.
My PCB will be bigger then both Peter's and Mick's ones as I need to allow for a DB9 connector for the RS232, and I also want to use a full-size SD card.

I was not really planning to publish the design as it is going to be custom and specific to what I want to do, but if there is interest, I will publish the gerbers.
I will post an image or two later on once I have done the layout, and see if anyone wants the design files.
Smoke makes things work. When the smoke gets out, it stops!
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 08:51pm 28 Dec 2021
Copy link to clipboard 
Print this post

  Quote  Regarding the MISO. Wasn't there an option the use a resistor in series with the pin to allow it to work?

I'm interested to know why no-one chose to respond to this question.

It is a technique that does work. Connecting a non tri-state device into a tri-state bus via (say) a 1k resistor allows the signals from the tri-state devices to swamp the signal from the non tri-state device effectively taking it out of action while the other device(s) are active. I have used it.

Is there a particular reason why it won't work in this situation? I've not used the display and have not seen the circuit but if that won't work could a tri-state buffer be added to the circuit?

Bill
Keep safe. Live long and prosper.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7685
Posted: 10:19pm 28 Dec 2021
Copy link to clipboard 
Print this post

If you've got one then try it. :)  I don't think anyone is going to buy a known faulty display to try to sort it out. Lizby has suggested using a tristate buffer chip, but no-one appears to have tested that approach - or a resistor for that matter.

The problem is that the onboard controller doesn't tristate MISO when CS is released. You *may* be able to force things on the SPI bus using resistor coupling, but it's taking it out of spec. Get one bit wrong and nothing will work.
Mick

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

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 10:50pm 28 Dec 2021
Copy link to clipboard 
Print this post

Hi Mick,

I don't have one and I don't have a Pico. The display seems to be useful and Peter has written a driver for the MM and MM+ see. It has also been used in some Silicon Chip projects (MISO not used).

In that link he refers to a 680 ohm resistor in series with the MISO pin. I just thought that if someone does have the display and the Pico they may be adventurous enough to try it. What harm can be done? If it works, good! The magic smoke will not escape. As I said I have used the technique in another project successfully.

Bill
Keep safe. Live long and prosper.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2514
Posted: 10:54pm 28 Dec 2021
Copy link to clipboard 
Print this post

Perhaps a 4066 bi-lateral switch in place of the series resistor, if that doesn't work. Controlled by CS pin, may need inverting if active low.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3335
Posted: 01:50am 29 Dec 2021
Copy link to clipboard 
Print this post

  Turbo46 said  I just thought that if someone does have the display and the Pico they may be adventurous enough to try it. What harm can be done? If it works, good! The magic smoke will not escape. As I said I have used the technique in another project successfully.


I don't currently have a Pico and ILI9488 set up, but plan to soon, and I can try a test. What I'm not sure of is that you can test fully with the software as published previously (prior to integration of the PICO source with the VGA code allowing LCD console).

You could test to assure that MISO from the ILI9488 is not corrupting SD reads, but since (if I remember correctly), BLIT READ is not available for the ILI9488, you can't test for correct functioning of the ILI9488. (If there's a way, somebody please let me know.)

Of course, the source is available and could be modified--but I'm not sure I'm ready to take that deep a dive yet.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 02:07am 29 Dec 2021
Copy link to clipboard 
Print this post

  matherp said  Note: as has been discussed many times, there is a H/W bug in the ILI9488 controller chip which means it doesn't release the MISO pin even when it is not chip selected. This means that the SPI bus can't be shared with the touch controller or an SDDcard.

Some people don't connect the display MISO pin in which case touch and the SDcard will work but then you can't read the display framebuffer so BLIT, transparent text and console mode can't work.

I think that means that if you remove the MISO pin then BLIT will work. So if a resistor (or and extra tri-state device) can effectively disable the MISO then you can have the best of both worlds? I hope so.

One for Peter, I guess.

Bill
Keep safe. Live long and prosper.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10135
Posted: 10:17am 29 Dec 2021
Copy link to clipboard 
Print this post

http://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

PicoMite and PicoMite VGA

V5.07.03b4

Minor performance tweaks - gain of c5%
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3335
Posted: 02:59pm 29 Dec 2021
Copy link to clipboard 
Print this post

  Turbo46 said  I think that means that if you remove the MISO pin then BLIT will work.

BLIT READ can't work without MISO and (again, if I remember or interpreted correctly), the BLIT READ command is unavailable when the ILI9488 is configured, so I don't know how to test whether all would work if a 1K resistor is added inline on the ILI9488 MISO signal. It's possible to test to confirm that this doesn't result in corruption of SD card reads.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10135
Posted: 04:29pm 29 Dec 2021
Copy link to clipboard 
Print this post

BLIT READ works perfectly on the ILI9488 with the latest firmware IFF MISO is connected




Edited 2021-12-30 02:34 by matherp
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3335
Posted: 06:54pm 29 Dec 2021
Copy link to clipboard 
Print this post

  matherp said  BLIT READ works perfectly on the ILI9488 with the latest firmware IFF MISO is connected

Yes, and thanks, but if I understand correctly, that's because the SD card and any other SPI devices are on different pins.

I think Turbo46 is talking about whether an inline 1K resistor on the ILI9488 MISO pin would allow it to function on the same MISO, MOSI, & CLK pins as the SD card without corruption.

That's what I'm not sure can be fully tested with either the new or the older firmware.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 300
Posted: 07:02pm 29 Dec 2021
Copy link to clipboard 
Print this post

Getting this error trying to setup the ILI9488.

It doesn't matter which GP Pins I use I always get Invalid Option.

Any idea?

PicoMiteVGA MMBasic Version 5.07.03b4
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather

> option lcdpanel ili9488,landscape,gp10,gp11,gp12
Error : Invalid Option
>
 
mobluse

Newbie

Joined: 10/02/2013
Location: Sweden
Posts: 24
Posted: 07:10pm 29 Dec 2021
Copy link to clipboard 
Print this post

Would it be possible to have PicoMite for composite video (NTSC and PAL)? I have some new flat color composite screens for e.g. cars, but also some old thick b/w, for e.g. Apple II. The newer can handle both NTSC and PAL, so if it easier to just support NTSC that would still be useful.
Edited 2021-12-30 05:11 by mobluse
Maker Pi Pico Rev1.2, DuinoMite-Mini, Raspberry Pi 0-4, iCE40HX8K, Arduino Uno, VM111, STK500, ZX81
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10135
Posted: 07:10pm 29 Dec 2021
Copy link to clipboard 
Print this post

  Quote  That's what I'm not sure can be fully tested with either the new or the older firmware.


Of course it can. Connect it and see it it works with the SDcard on the System SPI

  Quote  It doesn't matter which GP Pins I use I always get Invalid Option.


Have you set up the System SPI? Follow the instructions for the ILI9341 in the manual and just substitute ILI9488
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4020
Posted: 07:21pm 29 Dec 2021
Copy link to clipboard 
Print this post

  cosmic frog said  Getting this error trying to setup the ILI9488.

It doesn't matter which GP Pins I use I always get Invalid Option.

Is
OPTION SYSTEM SPI

needed first?

John
Edited 2021-12-30 05:21 by JohnS
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 300
Posted: 07:53pm 29 Dec 2021
Copy link to clipboard 
Print this post

I'm now having trouble getting the SD Card to work.

It works fine under Version 5.07.01b7

Thanks.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10135
Posted: 10:10pm 29 Dec 2021
Copy link to clipboard 
Print this post

If you are using an ILI9488 and have the MISO pin connected the SDcard can't and won't work, nor will touch. See above
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 300
Posted: 10:31pm 29 Dec 2021
Copy link to clipboard 
Print this post

  Quote  If you are using an ILI9488 and have the MISO pin connected the SDcard can't and won't work, nor will touch.


Just using VGA with OPTION SDCARD GP2,GP3,GP4,GP5.

I've just re-read it and I've got the pins the wrong way around.  

OPTION SDCARD CSpin, CLKpin, MOSIpin, MISOpin.

My fault  

Thanks.
Edited 2021-12-30 08:32 by cosmic frog
 
mobluse

Newbie

Joined: 10/02/2013
Location: Sweden
Posts: 24
Posted: 01:12am 30 Dec 2021
Copy link to clipboard 
Print this post

My SD card works on Maker Pi Pico PCB REV1.2 with PicoMiteVGA MMBasic Version 5.07.03b4 and OPTION SDCARD GP15, GP10, GP11, GP12. I can save and load files and the files command works. The function key F1 should type files and Enter, but that doesn't work using PuTTY serial or LXTerminal with Minicom in Raspberry Pi OS Buster. OPTION F9 "files"+chr$(13) works in both PuTTY and LXTerminal.

GP15 CSn CD/DAT3 CS
GP10 SCK CLK     CLK
GP11 SDI CMD     MOSI
GP12 SDO DAT0    MISO

The second and third column are according to the documentation for Maker Pi Pico:
https://cdn-shop.adafruit.com/product-files/5160/5160_Maker+Pi+Pico+Datasheet.pdf

It seems it is not needed to tell GP13 and GP14 to OPTION SDCARD, since SPI bus mode or One-bit SD bus mode is used for SD card access.

GP13 x   DAT1
GP14 x   DAT2

Edited 2021-12-30 11:20 by mobluse
Maker Pi Pico Rev1.2, DuinoMite-Mini, Raspberry Pi 0-4, iCE40HX8K, Arduino Uno, VM111, STK500, ZX81
 
     Page 3 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025