![]() |
Forum Index : Microcontroller and PC projects : CMM2 Monitors and Adaptors
![]() ![]() |
|||||
Author | Message | ||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
Is there a test program to exercise all the modes? ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Try this one: ' test card for CMM2 ' TassyJim May 2020 OPTION EXPLICIT OPTION DEFAULT NONE DIM INTEGER wd, ht, wbox, sh, x, w, n, nn, m DIM FLOAT a DIM k$, imgtitle$, fname$ DIM INTEGER c(8) c(0) = RGB(BLACK) c(1) = RGB(YELLOW) c(2) = RGB(CYAN) c(3) = RGB(GREEN) c(4) = RGB(MAGENTA) c(5) = RGB(RED) c(6) = RGB(BLUE) c(7) = RGB(WHITE) c(8) = RGB(64,64,64) cls DO SELECT CASE m case 0 MODE 1, 8 CASE 1 MODE 1, 8 nn = 10 a = 1 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 1,8 Ratio "+str$(a,1,2)+" " CASE 2 MODE 1, 12 nn = 10 a = 1 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 1,12 Ratio "+str$(a,1,2)+" " CASE 3 MODE 1, 16 nn = 10 a = 1 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 1,16 Ratio "+str$(a,1,2)+" " CASE 4 MODE 2,8 nn = 8 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 2,8 Ratio "+str$(a,1,2)+" " CASE 5 MODE 2,12 nn = 8 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 2,12 Ratio "+str$(a,1,2)+" " CASE 6 MODE 2,16 nn = 8 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 2,16 Ratio "+str$(a,1,2)+" " CASE 7 MODE 3,8 nn = 4 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 3,8 Ratio "+str$(a,1,2)+" " CASE 8 MODE 3,12 nn = 4 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 3,12 Ratio "+str$(a,1,2)+" " CASE 9 MODE 3,16 nn = 4 a = 1.08 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 3,16 Ratio "+str$(a,1,2)+" " CASE 10 MODE 4,8 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 4,8 Ratio "+str$(a,1,3)+" " CASE 11 MODE 4,12 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 4,12 Ratio "+str$(a,1,3)+" " CASE 12 MODE 4,16 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 4,16 Ratio "+str$(a,1,3)+" " CASE 13 MODE 5,8 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 5,8 Ratio "+str$(a,1,3)+" " CASE 14 MODE 5,12 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 5,12 Ratio "+str$(a,1,3)+" " CASE 15 MODE 5,16 nn = 4 a = 0.833 ' aspect ratio used in the CIRCLE command. imgtitle$ =" MODE 5,16 Ratio "+str$(a,1,3)+" " END SELECT 'PRINT imgtitle$ ' for debug if m = 0 then cls TEXT 400,100, "Video mode test",cm,5,1 TEXT 400,180, "Ratio refers to the aspect ratio used in the circle command",cm,1,1 TEXT 400,220, "Q to quit, P to save page as a BMP",cm,3,1 text 400,260,"UP arrow to go back, any other key to advance",cm,3,1 else wd = MM.HRES : ht = MM.VRES wbox = wd / 8 FOR x = 0 TO 7 BOX x*wbox,ht/4,wbox,ht/2,0,c(x), c(x) NEXT x FOR x = 0 TO wd-1 sh = 255*x/wd LINE x,0,x,ht/12,1,RGB(sh,0,0) LINE x,ht/12,x,ht/6,1,RGB(0,sh,0) LINE x,ht/6,x,ht/4,1,RGB(0,0,sh) LINE x,ht*9/12,x,ht*10/12,1,RGB(0,sh,sh) LINE x,ht*10/12,x,ht*11/12,1,RGB(sh,0,sh) LINE x,ht*11/12,x,ht,1,RGB(sh,sh,0) LINE x,ht/2,x,ht*3/4,1,RGB(sh,sh,sh) NEXT x CIRCLE wd/2,ht/2, ht*15/32,3,a,c(7) sh = 0 x = wd/2 - 55*nn/2 FOR w = 10 TO 1 STEP -1 FOR n = 1 TO nn sh = 255 - sh LINE x,ht*3/8,x,ht*5/8,w,RGB(sh,sh,sh) x = x + w NEXT n NEXT w BOX 0,0,wd,ht,3,c(7) BOX 1,1,wd-2,ht-2,1,c(5) TEXT wd/2,ht/2, imgtitle$,cm,1,1 endif DO k$ = INKEY$ LOOP UNTIL k$<>"" IF k$ = "P" OR k$ = "p" THEN fname$ = MID$(imgtitle$,2)+".bmp" SAVE IMAGE fname$ TEXT wd/2,ht/2, "Saved as "+fname$,cm,1,1 DO k$ = INKEY$ LOOP UNTIL k$<>"" ENDIF IF k$ = "Q" OR k$ = "q" THEN EXIT DO 'PRINT ASC(k$) IF ASC(k$) = 128 THEN m = m - 1 IF m < 1 THEN m = 15 ELSE m = m + 1 IF m > 15 THEN m = 1 ENDIF LOOP MODE 1,8 ' restore before ending program CLS Jim VK7JH MMedit |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
Thanks Jim, excellent. I have my CMM2 connected to an LG monitor, Flatron L1710S and at 1.08 ration, all modes are perfect. Cheers, Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
abraxas Regular Member ![]() Joined: 16/06/2020 Location: CanadaPosts: 99 |
I’m having a mixed bit of luck with the CMM2 and a VGA-HDMI converter. While text is very sharp and clear everything on the screen is shifted exactly 7 pixels so that I have a small border from the right hand side and the corresponding 7 pixels cut off from the 100th character. Seems to occur in 800x600 resolution as well as 640x400 but not with 320x200 Does Maximite 2 offer any way to adjust the VGA timings? My adapter does not have any way to tweak its output and neither does my HDMI monitor beside aspect ratio toggle. The problem exists regardless of the aspect ratio I choose. Here is the adapter I purchased: https://www.amazon.ca/QGeeM-Converter-adaptador-Computer-Projector/dp/B083K83NNX And here is a screenshot of the problem ![]() |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
Could be the adaptor, but the CMM2 is so new that very few people have used different adaptors with it. Obviously there's only one sure way to know, and that's to try a different monitor, not easy if you only have one. Some LCDs, especially the older units, have horizontal and vertical position adjustments, my old unit also has clock and phase adjustments. Sorry can't be of more help, hopefully someone will know a bit more about that adaptor. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
GregZone Senior Member ![]() Joined: 22/05/2020 Location: New ZealandPosts: 114 |
@abraxas I'm not sure if it helps, but I'm using a Samsung 16:9 LCD Monitor with the analog VGA input. I had a similar (same?) issue that you are describing, with the last digit of the year chopped off. Fortunately my monitor had a horizontal position adjustment, which required me to move the picture (I believe) 8 pixels to the left, in order to get all the CMM2 screen displayed. Of course, the LCD monitor's VGA input will be effectively replicating the function of your external VGA -> HDMI (Analog -> Digital video) adapter. My first reaction was to wonder if the front porch timing was perhaps not adhering to a VESA 800x600/60Hz spec? But, if this was the case, you'd assume this image alignment would be a more widespread problem? |
||||
abraxas Regular Member ![]() Joined: 16/06/2020 Location: CanadaPosts: 99 |
Well I wonder if it just might be... I noticed today that Geoff in his CMM2 user manual a screenshot also has the last character chopped off... take a close look at the screenshot on page 17 Edited 2020-06-22 15:44 by abraxas |
||||
GregZone Senior Member ![]() Joined: 22/05/2020 Location: New ZealandPosts: 114 |
Nice observation. Checking the User Manual, I can see that both full screen screenshots show the same missing last character (Pages 16 & 17), conmsistent with what we are both experiencing. I wonder if it is a more widespread issue, but not everyone notices? Here is a good summary of the VESA DMT 800x600/60Hz timing standard: http://www.tinyvga.com/vga-timing/800x600@60Hz Full spec (Page 26), can be found here also: https://glenwing.github.io/docs/VESA-DMT-1.13.pdf Could probably scope it, but I guess Peter can comment on the timing implementation? |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
I know mine shifts slightly with different modes and I remember that at the default monitor settings, the status bar was screen edge to screen edge, I was able to bring in the width and then centre it, this is with an LCD monitor with a VGA input, I just put the shift down to my 22 year old 19" LCD monitor. I'll have to have a look at it on a HDMI monitor that has no adjustments when I get a chance. Edited 2020-06-22 16:09 by KeepIS NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
If you look at this post on the previous page, this is exactly how my status bar looks: Screen Shot NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
The timing for 800x600 looks correct to me. This is with displaying a white box BOX 0,0,mm.hres,mm,vres,1,rgb(white),rgb(white) ![]() Other modes look correct either filling the viewable window fully or slightly under. Both front and back porch are correct or slightly longer for some modes. At no stage are they shorter than the specs. Overall line frequency looks good. It's as close as my 20 year old CRO can determine. This should mean that all modes should fit your display with maybe a slight visible shrinking with some modes. My timing measurements do suggest that the full display should be visible in all modes. I don't have a HDMI monitor in 4:3 format to test and all screens I have do have some adjustment available. Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
At least 10 years ago I needed to run two PCs but didn't have the desk space for two monitors, two mice, two keyboards and two sets of speakers (sound familiar so far?). I bought a "Belkin Flip". It takes a USB Keyboard, USB Mouse, VGA and audio from two PCs and via a Y connector and, at the touch of a button, it shows the relevant information on the one monitor, uses the one keyboard and the one mouse (and audio) for either PC. The monitor auto adjusts the resolution. It can be a bit temperamental but it is currently letting me use one monitor and I can switch between my PC and CMM2 (I have the mouse only connected to the PC). BUT the keyboard will not play fair so I have two on my desk - much confusion! Are there any more recent devices that would enable us to have just the one keyboard and monitor? Cheers, Andrew |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |