Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:27 26 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 : 240 x 144 resolution

Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 01:07pm 01 Jun 2012
Copy link to clipboard 
Print this post

Another reply that was getting of topic...

  TZAdvantage said   Geoff,
can i suggest for the lower resolution mode to pick 400x240 or 240 x 144 or any other resolution that has a 5:3 ratio. (That is a ratio in pixels. not the same as the ratio it is displayed, that would be 16:9 meaning the pixels are not completely square)
This because many smaller widescreens that are available will scale this very well.
A small 7" screen combined with a small maximite can be used very good in a car or boat opening up a wide range of possible uses and possibly boost sales, i am speaking out of self interest here too. :)

The biggest 'problem' with non standard ratios is that it looks quit bad on a LCD/TFT screen as some pixels will be double and others tripled. My feeling is that the first Maximite resolution was influenced by the composite video out, but now going only to VGA i think going to standard ratios would be a good thing.

Sorry for my continued tries to makes this possible, i really think it is that important. But if it can't be done, thats oke too. :)


The way that I got 240x216 resolution was by halving the video speed to get 240 pixels wide and and by drawing each pixel twice on two successive scan lines (216 pixels high).

I have done some more experimenting and I can get 240 x 144 pixels (one pixel to three scan lines) but it looks distorted with the characters tall and thin (because each pixel is tall and thin). Also there are much less pixels to draw with. This seems a backwards step. I think that the confusion is because the Maximite pixels are not square. If we had square pixels then 400x240 or 240x144 would be fine.

You are right when you said that the horizontal resolution of the Maximite does not match the typical pixel density of a VGA monitor - that is the issue and that is caused by the speed at which pixels are sent to the VGA screen.

The problem here is that the Maximite does not have a VGA graphics system. It (mis)uses the SPI interface on the PIC32 chip to clock out the video and the SPI just cannot do everything that you would expect with a specialised graphics subsystem. Remember that this is a computer system that is entirely implemented within a $9 chip !!

The current resolution of 480x432 and the resulting non square pixels was dictated by what I could get the SPI interface to do, it was not a considered decision. By halving the SPI clock speed we can get 240 pixels wide but the SPI does not allow a fractional adjustment of the clock's speed, which is what we need to get square pixels.

There are some other tricks which I am investigating that might reduce the problem but I cannot hold out a lot of hope at this stage.

I hope that this helps,
Geoff


Geoff Graham - http://geoffg.net
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 11:19pm 01 Jun 2012
Copy link to clipboard 
Print this post

Could a different xtal be used for the PIC32 to do it?

John
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 12:24am 02 Jun 2012
Copy link to clipboard 
Print this post

  JohnS said   Could a different xtal be used for the PIC32 to do it?

John


Yes, but only by over clocking by about 30%
Geoff Graham - http://geoffg.net
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 07:08am 02 Jun 2012
Copy link to clipboard 
Print this post

And it will require a heatsink?.
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 07:35am 02 Jun 2012
Copy link to clipboard 
Print this post

Heya

Geoff is going back to the source

240 x 200 8 colours was the Oric1 / Atmos resolution.
Was only 160 x 200 for the C64 but 16 colours.
And the CPC464 that i am sure some of you have spend allot of your
night was like C64 for the 160 x 200 and a 320 x 200 in 4 colours.
But what is at best is that the MM is allot faster than all
my lovely prehistoric machines
Great work Geoff , and because your not finish with the Dev of this
new MM. In case you don't know what to add , then ... polygon and
filled polygon will be a good one. for ex:
dim Ptsx(20) , Ptsy(20)
.. fill the Ptsx and y data ...
Polygon(Nb_Pts,Ptsx,Ptsy,external_color,internal_color,Fille d)
and
Polygon(Nb_Pts,Ptsx,Ptsy,external_color,,Empty)
and
Polygon(Nb_Pts,Ptsx,Ptsy,external_color,internal_color,XOR) .. NOT .. AND ... etc ...
and
..... you see

The last point from the poly is automatically connected to the first one (or not) if
you add the option ...
I can continue like this up you fill the whole PIC32 but it will be for the next time


Cheers.

Edited by darthmite 2012-06-03
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 09:20pm 03 Jun 2012
Copy link to clipboard 
Print this post

I was wondering about a reduced clock rather than overclocking. Just a thought.

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024