Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:41 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 : RP2350 firmware

     Page 9 of 20    
Author Message
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 10:30am 02 Sep 2024
Copy link to clipboard 
Print this post

Personally, I would be in favor of the compromise, as I always expect the editor to have the right colors. But I can also live with the current state after the explanation (perhaps this should then be explained in the new manual).

Can you say something about the XMODEM problem?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 10:53am 02 Sep 2024
Copy link to clipboard 
Print this post

You don't say which version. Just transferred a 74Kbyte file on HDMI with no issues
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 12:08pm 02 Sep 2024
Copy link to clipboard 
Print this post

  matherp said  You don't say which version. Just transferred a 74Kbyte file on HDMI with no issues


> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
> xmodem send
> xmodem receive "test_1.bas"
Error : Cancelled by remote
>


 
stanleyella

Guru

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

This is how I think of DVI.  https://en.wikipedia.org/wiki/Digital_Visual_Interface#:~:text=Digital%20Visual%20Interface%20(DVI)%20is,such%20as%20a%20computer%20monitor.

I only got 2 HP monitors that have a DVI socket, all the rest just vga.
I have no tv's with dvi sockets just hdmi, some vga and scart.
This pc I'm using has dvi from the graphics card to HP monitor. I got a dvi to hdmi adaptor and it's fine on a tv with hdmi but no audio.
I also got vga to hdmi with audio 3.5 socket and usb to to power it.
https://www.ebay.co.uk/itm/155695274526

I seem to remember the first time I used mmbasic there were only 8 colours.
vga 640x480 8 colours would be fine for me.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 02:25pm 02 Sep 2024
Copy link to clipboard 
Print this post

Homa

Please test it receiving to an sdcard rather than flash and also to memory - both should work. I think I know the problem but it may be non-soluble
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 04:11pm 02 Sep 2024
Copy link to clipboard 
Print this post

you are right. sdcard works:


0 directories, 5 files
> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
OPTION SDCARD GP5, GP6, GP7, GP4
> xmodem receive "test_1.bas"
> files
B:/
18:35 09-04-2022       1854  Level1.mid
00:55 01-01-2000       6503  midi_1.bas
19:22 10-04-2022        176  mymidi.mid
18:39 09-04-2022       8242  smb.mid
00:01 01-01-2000        768  test_1.bas
22:41 09-04-2022        273  testsong.mid
0 directories, 6 files
>


and memory too!

but i wanted to transfer an image, hence the flash.
Edited 2024-09-03 02:13 by homa
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 04:16pm 02 Sep 2024
Copy link to clipboard 
Print this post


> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
OPTION SDCARD GP5, GP6, GP7, GP4
> option sdcard
Error : Syntax
> option sdcard disable
> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
> option spi gp6, gp7, gp4
Error : Invalid Option
> option system spi gp6, gp7, gp4
Error : Invalid Option
>


but i can only get the sd-card to work with option sdcard. with option system spi i always get an error
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 04:24pm 02 Sep 2024
Copy link to clipboard 
Print this post

VGA versions don't have (and have never had) a SYSTEM SPI option because there is nothing to share the SPI bus with unlike non-VGA versions where touch and the TFT share the SPI channel. The firmware automatically uses H/W SPI IFF you specify SPI pins otherwise it bitbangs
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 04:39pm 02 Sep 2024
Copy link to clipboard 
Print this post

Okay, I'm learning and learning. Most of the time I use the WebMite manual, so I must have missed this.

For the 2350, I would appreciate a manual with just the differences in commands or just the limitations! Studying in three different manuals is very cumbersome.

But that is just a wish or a hope. I also live with different manuals. Thanks here to you heroes for this great project!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 05:18pm 02 Sep 2024
Copy link to clipboard 
Print this post

Homa

I've had a brainwave  - please try this (HDMIUSB)


PicoMiteHDMIUSB.zip
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2122
Posted: 05:31pm 02 Sep 2024
Copy link to clipboard 
Print this post

  matherp said  Homa

I've had a brainwave  - please try this (HDMIUSB)


PicoMiteHDMIUSB.zip

what is it?
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 08:23pm 02 Sep 2024
Copy link to clipboard 
Print this post

  matherp said  Homa

I've had a brainwave  - please try this (HDMIUSB)


PicoMiteHDMIUSB.zip


The version number is the same?

> option list
PicoMiteVGA MMBasic USB Edition  6.00.00b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
OPTION SDCARD GP5, GP6, GP7, GP4
>





Unfortunately no improvement, rather a deterioration, as the abort is not recognized by the Pico2. This was the case before, see above.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2122
Posted: 09:54pm 02 Sep 2024
Copy link to clipboard 
Print this post

you supposed to use mmedit control centre or teraterm to tranfer win file to say mmbasic a: loads of fun
stick sd card in win and copy then stick sd card in pico sd card reader then read file from there. works 4 me  not other xmodem stuff or I'd use it but interfaces are needing mindreading abilities to use.
Edited 2024-09-03 08:02 by stanleyella
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 09:55pm 02 Sep 2024
Copy link to clipboard 
Print this post

Definitely now works for me W11/Teraterm and didn't before
I've re-coded XMODEM so is polls the UART rather than using interrupts.
Still b3.
Please ensure you are updating to the below which I have just loaded and verified


PicoMiteHDMIUSB.zip
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2122
Posted: 10:16pm 02 Sep 2024
Copy link to clipboard 
Print this post

https://www.thebackshed.com/forum/uploads/matherp/2024-09-03_075312_PicoMiteHDMIUSB.zip
ok extracted it but what is picomitehdmiusb?? serious, what is it, picomite   hdmi   usb
is it for picmit glcd. vga, usb glcd and vga but hdmi
cmon, starter for 10, we asked 100 people what he's on about and top answer was not a clue. second answer was I don't have physic mind reading abilities.3rd answer was I don't have a pico2 so don't give a sh*t
Edited 2024-09-03 08:55 by stanleyella
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 362
Posted: 10:37pm 02 Sep 2024
Copy link to clipboard 
Print this post

This is curious.  When I run this small program in mode 5, I see a brownish bar in the 4th Red Position, and no Dark green bar in the second Green position.  But when I save the image, It looks like the image is correct in Memory.  At first I thought it might be my monitor settings, but it looks the same on multiple monitors.  

The saved image below looks like the correct mapping to RGB(332), but doesn't match the image on any of my HMDI monitors.  Could this be a bug in the translation from memory to the HSTX peripheral?  

It's also interesting to run this program in the other modes to see how the RGB colors are mapped in each mode.

PicoMiteHDMI MMBasic Version 6.00.00b3
OPTION FLASH SIZE 16777216
OPTION KEYBOARD US
OPTION PICO OFF
OPTION CPUSPEED (KHz) 315000
OPTION DISPLAY 30, 53


MODE 5

CLS

For X = 0 To 255
 For Y = 0 To 80
   Pixel X,Y,RGB(X,0,0)
 Next Y
Next X

For X = 0 To 255
 For Y = 81 To 160
   Pixel X,Y,RGB(0,X,0)
 Next Y
Next X

For X = 0 To 255
 For Y = 161 To 240
   Pixel X,Y,RGB(0,0,X)
 Next Y
Next X

Save Image "ColorBars.bmp"




-Carl
 
stanleyella

Guru

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

  Mixtel90 said  Forget that about the WS2812B. A proper one is working fine. The problem is with these oddball ones. It doesn't matter as long as you know what the problem with them is. :)

Stan:
I have to admit that board is confusing. The silkscreen doesn't tie in with the list of connections that they give you!

There are 8 connections plus ground.
The connections are in pairs: D0+ and D0-, D1+ and D1-, D2+ and D2-, CK+ and CK-.
Each D pair carries a digital stream for a colour. The CK pair carry the clock signal.
They are in pairs because they run at high speed so simple red, green and blue couldn't handle it. There's a lot more information than you have with VGA.

From this point of view it's no worse to connect up than VGA - just a couple of extra pins.

All the signals have a current limiting resistor of around 220R-270R. The breakout modules almost all have them mounted on the module so you don't need to bother about them.

It looks like this to me:
GP12 - 0+
GP13 - 0-
GP14 - TXC+
GP15 - TC-
GP16 - TX2+
GP17 - TX2-
GP18 - 1+
GP19 - 1-
Then the GND pins (you'll probably get away with just one)
Pimorini site has a breadboard pic


worth getting? https://www.ebay.co.uk/itm/196337014929
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 362
Posted: 03:18am 03 Sep 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  There are 8 connections plus ground.
The connections are in pairs: D0+ and D0-, D1+ and D1-, D2+ and D2-, CK+ and CK-.
Each D pair carries a digital stream for a colour. The CK pair carry the clock signal.
They are in pairs because they run at high speed so simple red, green and blue couldn't handle it. There's a lot more information than you have with VGA.

From this point of view it's no worse to connect up than VGA - just a couple of extra pins.

All the signals have a current limiting resistor of around 220R-270R. The breakout modules almost all have them mounted on the module so you don't need to bother about them.

It looks like this to me:
GP12 - 0+
GP13 - 0-
GP14 - TXC+
GP15 - TC-
GP16 - TX2+
GP17 - TX2-
GP18 - 1+
GP19 - 1-
Then the GND pins (you'll probably get away with just one)


Note that NONE of my HDMI TVs will recognize the signal without +5V connected to the Adafruit HDMI breakout.  +3.3V also seems to work OK but I haven't done as much testing.
-Carl
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6783
Posted: 06:45am 03 Sep 2024
Copy link to clipboard 
Print this post

Thanks Carl. That's something for me to look at on my Beta and Gamma designs. My monitor is working perfectly with only the connections listed above.
Mick

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

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6783
Posted: 06:49am 03 Sep 2024
Copy link to clipboard 
Print this post

Stan:
No. That's the bit that plugs into a monitor or a Pico 2 socket. It's of use if you are designing a board with a HDMI socket on it and you want to check connections to the socket, I suppose, or if you wanted to make a special HDMI lead. That's all.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 9 of 20    
Print this page
© JAQ Software 2024