|
Post by selcuk06 on Nov 20, 2021 4:38:33 GMT -8
Hello everyone,
I am using gameduino library to program a BT817Q chip set 1024x600 display connected to a teenys 4.1. Display has a lot of pixel room which lets me to draw lots of boxes, shapes, texts etc to fill the area. I've noticed that when my display commands come to o certain limit display begins to get out sync vertically. I tried to put some delays at certain points but it did not help. My display has the following register values;
REG_HSIZE 1024 REG_VSIZE 600 REG_HCYCLE 1344 REG_HOFFSET 160 REG_HSYNC0 0 REG_HSYNC1 70 REG_VCYCLE 635 REG_VOFFSET 23 REG_VSYNC0 0 REG_VSYNC1 10 REG_PCLK 1 REG_SWIZZLE 0 REG_PCLK_POL 1 REG_CSPREAD 0 REG_DITHER 0 REG_PCLK_FREQ 0xD12 REG_PCLK_2X 0
Thinking it may be something related to these values I began tinkering them. For some reason increasing REG_HCYCLE value stops this sync problem. When I add more information on the display vertical sync problem begins and I add more numbers to this REG_HCYCLE value and everything works again. My current REG_HCYCLE value is 1840. I am sure this is not the proper way to handle this kind of problem but it worked for me. Does anybody have an alternate solution? Regards.
Selcuk
|
|