Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:34 01 Aug 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 : CMM2: V5.05.05b14 experimental - please try and report

     Page 1 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 12:33pm 20 Aug 2020
Copy link to clipboard 
Print this post

Please try the attached and let me know your results.


CMM2V5.05.05b14exp.zip


Compared to version 5.05.04 this version has 4 new modes

mode 6 = 256x240 (NES compatibility)
mode 7 = 320x240
mode 8 = 640x480
mode 9 = 1024x768

12-bit colour depth is not available in mode 9 but 16-bit is available. JPGs work in 1024x768x16.

In addition there is a new OPTION

OPTION DEFAULT MODE n
n can be 1 = 800x600, 8=640x480, 9=1024x768

This sets the resolution of the screen at the command prompt and in the filemanager and editor

The default font for mode 8 is no. 1 (8x12). The default font for mode 9 is no. 4 (10x16)

On a 400 or 480MHz processor with an oscillator I am seeing a completely stable image in mode 9 with 16-bit colour (130Mbytes per second video read rate) but I see some shimmer on a 400MHz cpu with a crystal

640x480 shouldn't be an issue with any CPU
Edited 2020-08-20 23:10 by matherp
 
realmnm

Newbie

Joined: 07/07/2020
Location: Australia
Posts: 34
Posted: 01:14pm 20 Aug 2020
Copy link to clipboard 
Print this post

Entering mode 9 goes to 1024x768 as expected.  Type files and it drops to mode 1. Press the esc and it stays in mode 1, but the font is now 16x10.

That’s all I’ve seen so far. I have tried to make it the default mode yet.
This signature intentionally left blank.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 01:33pm 20 Aug 2020
Copy link to clipboard 
Print this post

  Quote  Press the esc and it stays in mode 1, but the font is now 16x10.


Staying in mode 1 is correct - this is what happens in 5.05.04 but the ESC should reset the font. I'll fix that in the next version
Edited 2020-08-20 23:33 by matherp
 
realmnm

Newbie

Joined: 07/07/2020
Location: Australia
Posts: 34
Posted: 01:43pm 20 Aug 2020
Copy link to clipboard 
Print this post

Setting it as the default option seems to work ok. I like the larger screen for editing.

Gotcha for me was where I had moved all my constants before the code started, I had read the screen resolution from mm.hres and mm.vres before I had set the mode. Oooops!
This signature intentionally left blank.
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 02:15pm 20 Aug 2020
Copy link to clipboard 
Print this post

All options reset when flashed with 5.05.05b14


400MHz Waveshare module with crystal resonator - some minor timing issues (shimmer?) in mode 9 video but good enough to use! My second Waveshare module seems a little worse. Time to order some oscillators    

Also: in mode 9, Load JPG ignoring x,y coordinates and loading image at 0,0
Update: Load JPG loading at 0,0 in other modes too.
Edited 2020-08-21 00:19 by Sasquatch
-Carl
 
JoOngle
Regular Member

Joined: 25/07/2020
Location: Sweden
Posts: 82
Posted: 03:29pm 20 Aug 2020
Copy link to clipboard 
Print this post

Works flawlessly for me.

I'm using the www.micromite.org pre-assembled board (no waveshare module), but 400 MHz processor with a crystal oscillator.

Mode 9 - fixed the diagonal noise pattern issue I have in the standard mode 1, now the video signal looks entirely crisp and clean in 1024 x 768.

(Note, I'm using an cheap 10$ VGA to HDMI adapter) on a Samsung RU7105 SmartTV.

The timing is a bit off, but I suspect that's the cheap VGA adapter, which means the last set of characters of the CMM2 screen is half out in the void, while the left side of the CMM2 screen has an half empty character row. Is this user settable in MMBasic somehow? Because the smarttv has no timing options, neither do the cheapo HDMI adapter.



Also - the black isn't really black, but very grey, just look at the really black side-bars from the TV itself, any way to adjust that?
Edited 2020-08-21 01:39 by JoOngle
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 03:45pm 20 Aug 2020
Copy link to clipboard 
Print this post

Looking good!

Is there any chance of a mode that supports a 16:9 monitor edge-to-edge? For instance, 1024 x 576.
 
SWA-Guy
Newbie

Joined: 01/02/2019
Location: Germany
Posts: 24
Posted: 05:41pm 20 Aug 2020
Copy link to clipboard 
Print this post

Hi,

all modes works correctly, only in mode 9  I see also some shimmer on a 400MHz cpu with a crystal.

I attached TassyJim Testprogramm with the extension of the new modes.

Good luck.


colourBars.zip
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 06:34pm 20 Aug 2020
Copy link to clipboard 
Print this post

  SWA-Guy said  Hi,

all modes works correctly, only in mode 9  I see also some shimmer on a 400MHz cpu with a crystal.

I attached TassyJim Testprogramm with the extension of the new modes.

Good luck.


You forgot Mode 9,16  Interestingly I see less shimmer in 9,16 than 9,8  In mode 9,8 I get a lot of shimmer across the center of the screen where the B/W vertical bars are.
Edited 2020-08-21 04:35 by Sasquatch
-Carl
 
darthvader
Regular Member

Joined: 31/01/2020
Location: France
Posts: 87
Posted: 07:11pm 20 Aug 2020
Copy link to clipboard 
Print this post

Just tested all modes ,
everything seems to be ok  

480Mhz , oscillator setup.
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 07:15pm 20 Aug 2020
Copy link to clipboard 
Print this post

Some strange things in b14:

In Mode 9,8 scrolling text down to the bottom of the screen using Print command causes some strange artifacts, try the following program in Mode 9,8 with Option Default Mode 9 enabled:


DO
 Print "Hello World"
 Pause(100)
Loop


See what happens when the text reaches the bottom line of the screen.
Then <Ctrl_C> and type Edit

Mode 9,16 does not seem to have the same problem


I have also had the Editor freeze up the system a few times now with Option Default Mode 9 enabled.  Not sure what is happening and I haven't figured out how to reproduce the problem.  Posting here in case it jogs a memory.  I will post additional info if I can figure out how to reproduce the issue reliably.
Edited 2020-08-21 05:21 by Sasquatch
-Carl
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 490
Posted: 08:09pm 20 Aug 2020
Copy link to clipboard 
Print this post

  JoOngle said  Works flawlessly for me.

I'm using the www.micromite.org pre-assembled board (no waveshare module), but 400 MHz processor with a crystal oscillator.

Mode 9 - fixed the diagonal noise pattern issue I have in the standard mode 1, now the video signal looks entirely crisp and clean in 1024 x 768.

(Note, I'm using an cheap 10$ VGA to HDMI adapter) on a Samsung RU7105 SmartTV.

The timing is a bit off, but I suspect that's the cheap VGA adapter, which means the last set of characters of the CMM2 screen is half out in the void, while the left side of the CMM2 screen has an half empty character row. Is this user settable in MMBasic somehow? Because the smarttv has no timing options, neither do the cheapo HDMI adapter.



Also - the black isn't really black, but very grey, just look at the really black side-bars from the TV itself, any way to adjust that?


I have tired 7 VGA to HDMI addapters and allllll of them cut it off to one side or top or bottom a bit.  NOT ONE of them show every dot on the screen.  I kept the ebay one that just clips a little of the last few columns of pixels. I just move a VGA monitor in and use that.
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 10:29pm 20 Aug 2020
Copy link to clipboard 
Print this post

I tested here. Gauntlet in 320x240x8 is in a 4:3 fullscreen glory.

I´m using the 1.4v board with crystal and 400Mhz Waveshare.

Some small noise on the image, but is the same as in 320x200, then I´m not worried about this.

There is no speed downgrade in this screen mode, at least in Gauntlet.
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 11:40pm 20 Aug 2020
Copy link to clipboard 
Print this post

Ran the icosahedron demo in modes 6,7,8 & 9 in 8 & 16 bit color, no artifacts noted. By eyeball, speed in mode 9 seemed respectable. Prebuilt 400MHZ version (Rictech). Text modes seemed not much different on my 19", 10-ish year old VGA monitor from previous versions, different modes aren't all perfectly centered/fitted...nothing terrible.

Steve
 
Pilot352
Newbie

Joined: 12/08/2020
Location: United States
Posts: 34
Posted: 11:51pm 20 Aug 2020
Copy link to clipboard 
Print this post

Have you ever thought about a true text mode (perhaps a MODE (0) ) where the arrangement for text character only takes 2 bytes? One byte for the ASCII character and one byte for the color attribute.  maybe 4 bits for foreground and four bits for background. This is how the text mode works in the original EGA/VGA spec. The advantages are more program memory and better attribute control in text modes. There are plenty of "non-game/graphics" apps that can be written for the Maximite in this mode.

Mode (1) could still be as it is where text and graphics can be combined..
Just curious if it's ever been considered.
 
Pilot352
Newbie

Joined: 12/08/2020
Location: United States
Posts: 34
Posted: 12:29am 21 Aug 2020
Copy link to clipboard 
Print this post

I just noticed a possible bug...

From the files list, select a 800x600 JPG image. It views fine but doesn't clear the memory up returning to the prompt.

FYI
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 01:34am 21 Aug 2020
Copy link to clipboard 
Print this post

  Pilot352 said  Have you ever thought about a true text mode (perhaps a MODE (0) ) where the arrangement for text character only takes 2 bytes? One byte for the ASCII character and one byte for the color attribute.

There is no "text mode", the Colour Maximite 2 is always in graphics mode.  If you output text to the VGA monitor (eg, PRINT "Hello World") the firmware will convert each character to its graphic representation by looking up its bitmap and copying this into the graphics memory.  The on-chip hardware does the rest by repeatedly copying the graphics memory to the VGA output.

Geoff
Geoff Graham - http://geoffg.net
 
JoOngle
Regular Member

Joined: 25/07/2020
Location: Sweden
Posts: 82
Posted: 02:13am 21 Aug 2020
Copy link to clipboard 
Print this post

  mclout999 said  

I have tired 7 VGA to HDMI addapters and allllll of them cut it off to one side or top or bottom a bit.  NOT ONE of them show every dot on the screen.  I kept the ebay one that just clips a little of the last few columns of pixels. I just move a VGA monitor in and use that.


Well that's interesting feedback, that means it can't be only the vga to HDMI adapters fault, there must be something with timing we can do with the CMM2.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 03:20am 21 Aug 2020
Copy link to clipboard 
Print this post

  JoOngle said  
  mclout999 said  

I have tired 7 VGA to HDMI addapters and allllll of them cut it off to one side or top or bottom a bit.  NOT ONE of them show every dot on the screen.  I kept the ebay one that just clips a little of the last few columns of pixels. I just move a VGA monitor in and use that.


Well that's interesting feedback, that means it can't be only the vga to HDMI adapters fault, there must be something with timing we can do with the CMM2.


Back in 'the good old days', TV sets used overscan where the edges of the visible display were deliberately sized so that they were bigger than the screen. This was done so viewers didn't see the annoying edges which tended to flicker.
I do have a Sony professional studio monitor than has the ability to turn overscan off so the full image can be seen.
I expect that the newer TV/HDMI displays do something similar to overscan and this makes fitting the full display on very difficult.

The CMM2 does output the correct frequencies and pixel clocks etc according to the VESA standards so there is little the CMM2 can do.

Jim
VK7JH
MMedit
 
capsikin
Guru

Joined: 30/06/2020
Location: Australia
Posts: 341
Posted: 03:30am 21 Aug 2020
Copy link to clipboard 
Print this post

  JoOngle said  
  mclout999 said  

I have tired 7 VGA to HDMI addapters and allllll of them cut it off to one side or top or bottom a bit.  NOT ONE of them show every dot on the screen.  I kept the ebay one that just clips a little of the last few columns of pixels. I just move a VGA monitor in and use that.


Well that's interesting feedback, that means it can't be only the vga to HDMI adapters fault, there must be something with timing we can do with the CMM2.


Though if they're all different there may not be any one good timing setting that works with all of them.

My projector clips off some of the screen in some of the earlier existing modes (maybe all, I don't remember). It has a VGA input which I'm using for this.

edited to add:

  TassyJim said  

Back in 'the good old days', TV sets used overscan where the edges of the visible display were deliberately sized so that they were bigger than the screen. This was done so viewers didn't see the annoying edges which tended to flicker.
I do have a Sony professional studio monitor than has the ability to turn overscan off so the full image can be seen.
I expect that the newer TV/HDMI displays do something similar to overscan and this makes fitting the full display on very difficult.

The CMM2 does output the correct frequencies and pixel clocks etc according to the VESA standards so there is little the CMM2 can do.

Jim


Okay I might need to see if there's any overscan settings to check.
Edited 2020-08-21 13:32 by capsikin
 
     Page 1 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025