38.6.9.3 Vertical Scaler

The YMEMSIZE field of the LCDC_HEOCFG4 register indicates the vertical size minus one of the image in the system memory. The YSIZE field of the LCDC_HEOCFG3 register contains the vertical size minus one of the window. The SCALEN bit of the LCDC_HEOCFG13 register is set to one. The scaling factor is programmed in the YFACTOR field of the LCDC_HEOCFG13 register.

YFACTO R 1 st = floor 8 × 256 × YMEMSIZE 256 × YPHIDEF YSIZE
YFACTO R 1 st = YFACTO R 1 st + 1
YME MSIZE max = floor YFACTO R 1 st × YSIZE + 256 × YPHIDEF 2048
YFACTOR = YFACTO R 1 st 1 when YME MSIZE max > YMEMSIZE YFACTOR = YFACTO R 1 st otherwise