Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 22:56 18 Apr 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 : PicoMite Alpha Firmware - a27 onwards - starting on displays

     Page 3 of 14    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3830
Posted: 10:06am 22 Jun 2021
Copy link to clipboard 
Print this post

  thwill said  I now see that there seem to be a dozen variations some with just passive components (like this one) and others with transistors (I think) and/or ICs. I don't suppose anyone can point me at a beginners reference to explain this variety ?


OK, it's not a transistor it's a voltage regulator and the IC is a level converter ... so those ones are for running an SD card from the 5V outputs of an Arduino I guess?

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 10:13am 22 Jun 2021
Copy link to clipboard 
Print this post

Please try a33 for SDcard. I've set it to bitbang SDcard but SPI LCD on the same pins. It automatically changes mode depending on use


PicomiteV5.07.00a33.zip
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5705
Posted: 10:50am 22 Jun 2021
Copy link to clipboard 
Print this post

Wow...
Apparently some of the SanDisk cards are rated for a max of 100mA during write.
It varies with card size, manufacturer, type/model and phase of the moon ...
So yes, Peter, your little filter looks like a good idea. :)

@Tom
The passive component ones look ok. I doubt if the ones with the reg and level shifter will work. I'm using one of the highly luxurious types that Peter originally used, but even cheaper 'cos I missed off the bits of wire, the capacitor and the two outside pins (I just happened to have a bit of pin strip the right length). :)
Mick

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

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1768
Posted: 11:57am 22 Jun 2021
Copy link to clipboard 
Print this post

"I doubt if the ones with the reg. and level shifter will work."
It may be worth a try if you have one, as I am using one on an MX170 and powering it from 3.3V. Using Peters CFunction there are no problems with any of the SD cards I have.

Edit. The reg. wont be regulating but may be acting like Peters 2R2 resistor in conjunction with its input and output caps.
Edited 2021-06-22 22:02 by phil99
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5705
Posted: 12:04pm 22 Jun 2021
Copy link to clipboard 
Print this post

Some SD cards are rated to work down to 2.7v so if the reg is a half decent LDO type they might be ok from 3.3v input. The level shifter is a bit of an unknown. As you say, it's definitely worth trying one if you have it. :)
Mick

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

Joined: 05/03/2018
Location: Netherlands
Posts: 3490
Posted: 12:27pm 22 Jun 2021
Copy link to clipboard 
Print this post

To continue MIXTEL's work....


picomite doc a33.zip
PicomiteVGA PETSCII ROBOTS
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 843
Posted: 12:55pm 22 Jun 2021
Copy link to clipboard 
Print this post

  matherp said  Please try a33 for SDcard. I've set it to bitbang SDcard but SPI LCD on the same pins. It automatically changes mode depending on use

Now works for me. Did not read SDCARD before when LCDPANEL connected.
Latest F4 Latest H7
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 02:44pm 22 Jun 2021
Copy link to clipboard 
Print this post

  matherp said  Please try a33 for SDcard. I've set it to bitbang SDcard but SPI LCD on the same pins. It automatically changes mode depending on use


No change for me with a33.

>PicoMite MMBasic Version 5.07.00a33
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather
>OPTION LIST
OPTION SDCARD GP5, 10
OPTION SYSTEM SPI GP2,GP3,GP4
OPTION LCDPANEL ILI9341, LANDSCAPE, 26, 25, 24
> files
Error : SD Card not found

"files" works reliably when the LCD is not plugged in.

From the pico-datasheet: "If the USB port is the only power source, VSYS and VBUS can be safely shorted together to eliminate the Schottky diode drop (which improves efficiency and reduces ripple on VSYS)."

I tried that. No difference between a32 and a33. Next I'll try the separate power supply with Schottky diode on VSYS.

(But I don't understand why the USB power should be insufficient, since it provides power for this and more with an F4. I have a USB voltage and current display module inline with the USB to the PicoMite. It has a resolution in 10ths of an amp (and who knows what accuracy). Without the LCD it shows zero tenths to 50mA. With the LCD it pretty much pegs at 50mA. With the ESP-01 plugged in (3v3 regulated down from VBUS 5V with LD33) it fluctuates by the second between 50mA, 80mA, and 110mA.)

Removing the ESP-01 makes no difference with respect to "files".

~
Edited 2021-06-23 00:46 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 02:52pm 22 Jun 2021
Copy link to clipboard 
Print this post

a34


PicomiteV5.07.00a34.zip


HUMID becomes BITBANG HUMID
adds

BITBANG BITSTREAM as per CMM2 manual


BITBANG WS2812 type, pin, number _of_leds, data

If number _of_leds is one then the data can be anything that yields a number between 0 and &HFFFFFF. If number _of_leds is > 1 then data should be an integer array

Note minor change from CVMM2 syntax to allow a single LED to be used (e.g.Maker board)

try BITBANG WS2812 B,34,1,rgb(red) on the maker board

  Quote  "files" works reliably when the LCD is not plugged in.


Have you tied touch_cs pin high?
If using the ILI9488 you must leave the MISO pin disconnected as there is a H/W fault on this controller and the MISO pin doesn't tri-state
Edited 2021-06-23 00:54 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5705
Posted: 03:07pm 22 Jun 2021
Copy link to clipboard 
Print this post

Docs update:  
PicoMite docs a34.zip

I'll probably have a go with a display later. Busy making (well, attempting to make) some PCBs.
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 03:48pm 22 Jun 2021
Copy link to clipboard 
Print this post

  matherp said  
  Quote  "files" works reliably when the LCD is not plugged in.


Have you tied touch_cs pin high?


Just tried that with a34. No difference.

  Quote  If using the ILI9488 you must leave the MISO pin disconnected as there is a H/W fault on this controller and the MISO pin doesn't tri-state


What is the characteristic of this fault? It appears to me to work with circles.bas in the same way that the ILI9341 does--over 5,000 iterations--with MISO connected.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 04:27pm 22 Jun 2021
Copy link to clipboard 
Print this post

  Quote  What is the characteristic of this fault? It appears to me to work with circles.bas in the same way that the ILI9341 does--over 5,000 iterations--with MISO connected.


Connecting MISO will kill SDcard and touch
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 05:25pm 22 Jun 2021
Copy link to clipboard 
Print this post

  matherp said  
  Quote  What is the characteristic of this fault? It appears to me to work with circles.bas in the same way that the ILI9341 does--over 5,000 iterations--with MISO connected.


Connecting MISO will kill SDcard and touch


With MISO not connected, "files" works with both ILI9341 and ILI9488, and both LCDs work also. Thanks.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 05:40pm 22 Jun 2021
Copy link to clipboard 
Print this post


> run
[768] Blit read #11,130,130,190,48
Error : 11 is invalid (valid is 1 to 10)
>

Can you increase the number of sprites (BLIT read buffers)? This program I'm trying to run has 12, and another one I'd like to run used numbers up to 28 with some gaps depending on which processor was running it (actual sizes of areas are smallish, but I'll see whether there's enough memory).
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 05:51pm 22 Jun 2021
Copy link to clipboard 
Print this post

  Quote  Can you increase the number of sprites (BLIT read buffers)?

I can but the only display that will support this is the ILI9341 and it must have MISO connected to work. The ILI9341 with MISO should not upset the SDcard or at least it doesn't for me
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 06:09pm 22 Jun 2021
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Can you increase the number of sprites (BLIT read buffers)?

I can but the only display that will support this is the ILI9341 and it must have MISO connected to work. The ILI9341 with MISO should not upset the SDcard or at least it doesn't for me

The ILI9341 with MISO did upset the SDcard for me. I'll try putting in a jumper, but maybe catch-22 for me.

Another BLIT related issue:
For li%=1 To 10:  On error skip: Blit CLOSE li%: Next li%
Error : Unknown command


but no error with this:
for i=1 to 10: on error skip: blit close i: next i


  Quote  the only display that will support this is the ILI9341


That's a shame.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 06:42pm 22 Jun 2021
Copy link to clipboard 
Print this post

  Quote  The ILI9341 with MISO did upset the SDcard for me.


It really shouldn't unless there is a fault on your ILI9341. It is only the ILI9488 which has the silicon problem

BLIT and transparent text can only work if the firmware can read the video memory on the graphics controller. The ILI9481 Raspberry pi modules are wired in a way that makes this impossible. The ILI9488 works but kills everything else on the SPI bus as it doesn't release MISO when CS is not asserted - that leaves the ILI9341.
I may look at the parallel displays like the SSD1963 in the future but they use a minimum of 14 pins to control them
Edited 2021-06-23 04:43 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3830
Posted: 07:47pm 22 Jun 2021
Copy link to clipboard 
Print this post

This is probably a noob question, but here goes ...

All the pictures of the Pico pinout seem to show:

   GP10 - SPI1SCK
   GP11 - SPI1TX
   GP12 - SPI1RX
   GP13 - SPI1CSn
   GP14 - SPI1SCk
   GP15 - SPI1Tx

The Maker Pi Pico SD card appears to be connected:

   CLK - GP10
   MOSI - GP11
   MISO - GP12
   CS - GP15

Shouldn't CS be connected to GP13, or one of the other SPI1CSn lines ?

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3830
Posted: 08:22pm 22 Jun 2021
Copy link to clipboard 
Print this post

Also how does:

   OPTION SYSTEM SPI CLKpin, MOSIpin, MISOpin

Interact with:

   SETPIN pin, SPI{0|1}{SCK|TR|RX}

I'm trying to work out how to drive an M7219 matrix which I was previously doing on a CMM1 and the change in syntax and interaction (or not) with the SD card is leaving me unsure of where to start.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 09:45pm 22 Jun 2021
Copy link to clipboard 
Print this post

  Quote  Also how does:

  OPTION SYSTEM SPI CLKpin, MOSIpin, MISOpin

Interact with:

  SETPIN pin, SPI{0|1}{SCK|TR|RX}


Try it and see  

Option system will lock one of the SPI channels so for other use you have to use the other or bitbang the pins - more than adequate for a M7219

We don't use the H/W CS pins. In all versions of MMbasic CS is driven by firmware. Many devices won't accept the H/W approach (e.g.SDcards)
 
     Page 3 of 14    
Print this page
© JAQ Software 2024