RoCorbera / BlueVGA

VGA library for STM32F103C (BluePill) that can manipulate a screen with 28x30 tiles with 8x8 pixels each, in a total resolution of 224x240 pixels with 8 colors using a very low footprint
Other
62 stars 13 forks source link

Question about tile size customization #9

Open DaniloSakovic opened 3 years ago

DaniloSakovic commented 3 years ago

Hello @RoCorbera ... Nice library...

But how it can be customized,

I need 24x14 grid for 28x34 px tile size.

To display in 640x480 resolution.

I know that I need black padding 4px Horisontaly [top,bottom]and 2px vertically[left,right]... But do you think stm32 is powefrull enough to drive full 640x480 resolution with around 90 custom maped characters at this size of tile

?

RoCorbera commented 3 years ago

This resolution of 640x480 isn't feasible.

In order to drive 640x480, it's necessary to send pixels out to the monitor at 25.175MHz rate. That's too much for a Bluepill running at 72MHz.

Flash has wait states, which means CPU shall wait about 3 cycles per Flash Read operation. That impacts a lot to the achievable pixel frequency.