31
Discussion - EVE / Re: Display ASTC images directly from BT817 flash
« on: December 19, 2023, 07:01:27 PM »> That is only partially correct ... Interesting would be the next command
The next command reads the chip ID from REG_ID register (0x302000): if the content is not 0x7C the whole wakeup sequence (reset, set CLK...) is repeated.
So I assume the chip runs at 60 MHz.
The next command after CLKEXT should be ACTIVE if it is not CLKSEL.
But yes, correct, then this is followed by reading from 0x302000 and it looks like you have the BT817 running at 60MHz.
So one thing to optimize could be to run the BT817 at 72MHz which also increases the clock for the external SPI flash.
Quote
>> I am not able to tell what the frame rate is
> It either is 61.58Hz with 60MHz clock or 73.89MHz with 72MHz clock.
Uhm... how do you calculate that? I thought that I should take the PCLK and divide it first for display width and then for display height (grossly). I obtain a frame rate of about 78 Hz (which is 30MHz divided by 800 then by 480), so I thought I could lower it down to 30 FPS to give more time to the GPU.
Is my reasoning correct? I mean - I should lower the framerate in order to ease the GPU job?
Almost, the framerate is pixel-clock / (VCYCLE * HCYCLE).
And lowering the framerate might help, for example by setting PCLK to 4.
As you have a BT817 you also can configure the pixel-clock a bit more directly by using the second PLL.
Also, within limits, the config can be tweaked to use more clocks per line.
But I would rather put as much as possible in RAM_G before displaying directly from FLASH.
The pixel engine really has to do a lot and random access to a serially attached external memory does not help.