RudolphRiedel / FT800-FT813

Multi-Platform C code Library for EVE graphics controllers from FTDI / Bridgetek (FT810, FT811, FT812, FT813, BT815, BT816, BT817, BT818)
MIT License
128 stars 57 forks source link

Correct PCLK value for NHD 43 display #106

Closed hezy0426 closed 8 months ago

hezy0426 commented 8 months ago

[NHD-4.3-480272FT-CSXP-T.pdf](https://github.com/RudolphRiedel/FT800-FT813/files/14014445/NHD-4.3-480272FT-CSXP-T.pdf)

According to the official document (I assume that "EVE_PCLK " is the same as "REG_PCLK" on the document), the correct value should be 5 instead of 6. Please see page 7 of this pdf file. Screenshot 2024-01-22 140750

RudolphRiedel commented 8 months ago

Hello,

and thank you, but I will reject this pull request. You are correct, the documentation from NewHaven shows that they want to set REG_PCLK to 5. But this would result in a pixel clock of 12MHz which would be the maximum allowed clock while "typ." is 9MHz. And with the VCYCLE and HCYCLE values the frame-rate would be 75Hz.

Using a PCLK = 6 like I did sets the pixel-clock to 10MHz, so within the allowed range. And the frame-rate is 62.5Hz which is much closer to the usual 60Hz.