This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS90UB964-Q1: How to calculate the LINZE SIZE and BAR SIZE

Part Number: DS90UB964-Q1
Other Parts Discussed in Thread: DS90UB960-Q1

Hi team,

for UB964 pattern mode,  if data is 1920*1080 @30 fps,data type is RAW12.

how to calculate the PGEN_LINE_SIZE, PGEN_BAR_SIZE, LINE PD...  thanks.

  • can you check ds90ub960 d/s page66 on these parameters' meanings and settings? this is based on CSI2 pattern design request.

    //////

    7.5.12.3.1 Determining Color Bar Size The color bar pattern should be programmed in units of a block or word size dependent on the datatype of the video being sent. The sizes are defined in the Mipi CSI-2 specification. For example, RGB888 requires a 3-byte block size which is the same as the pixel size. RAW10 requires a 5-byte block size which is equal to 4 pixels. RAW12 requires a 3-byte block size which is equal to 2 pixels. 67 DS90UB960-Q1 www.ti.com SNLS589B –SEPTEMBER 2016–REVISED JULY 2018 Product Folder Links: DS90UB960-Q1 Copyright © 2016–2018, Texas Instruments Incorporated Submit Documentation Feedback When programming the Pattern Generator, software should compute the required bar size in bytes based on the line size and the number of bars. For the standard eight color bar pattern, that would require the following algorithm: • Select the desired datatype, and a valid length for that datatype (in pixels). • Convert pixels/line to blocks/line (by dividing by the number of pixels/block, as defined in the datatype specification). • Divide the blocks/line result by the number of color bars (8), giving blocks/bar • Round result down to the nearest integer • Convert blocks/bar to bytes/bar and program that value into the PGEN_BAR_SIZE register As an alternative, the blocks/line can be computed by converting pixels/line to bytes/line and divide by bytes/block.

    regarsd,

    Steven