FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FT602 video encoding type and bus frame questions  (Read 7036 times)

gchiao

  • Newbie
  • *
  • Posts: 1
    • View Profile
FT602 video encoding type and bus frame questions
« on: February 17, 2023, 06:32:10 AM »

Hi all,

Just wanted to confirm FT602, the spec says:

Quote
The purpose of this sample design is to provide four video input channels to the FT602. Each channel can
be configured to QVGA, VGA, HD or Full HD independently with YUV 4:2:2 video formats.

Can I confirm it also supports uncompressed gray, please?

We have a 1440x512 gray streaming into the chip, the requirement says:

Quote
A video frame starts with twelve bytes of header 0x0000_820C, 0xBABE_FACE, 0xBABE_FACE and ends
with one terminating byte, 0x55. A frame may be terminated anytime by writing the terminal byte to end
frame transmission. The terminal byte signals to FT602 that the frame has ended prematurely or
otherwise. FT602 does not transmit the terminal byte to the USB host.


Is the below correct?

<0000_820C> <BABE_FACE> <BABE_FACE> <0000_0003> <0000_0004> <0000_0005> ….. <0002_D002>

And a termination byte <55> is added (with BE_0 enabled only) between each such frame with a header.

The header is 12 bytes <0000_820C> <BABE_FACE> <BABE_FACE>, followed by 1440x512 = 737280 bytes, which is <0000_0003> ~ <0002_D0002>

Many thanks

Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: FT602 video encoding type and bus frame questions
« Reply #1 on: February 20, 2023, 02:27:21 PM »

Hello,

FT602 can support resolutions up to 1920x1080@60 frames per second. as per the FT602 SuperSpeed USB3.0 IC Datasheet, Section 4.

The twelve bytes of header 0x0000_820C, 0xBABE_FACE, 0xBABE_FACE are UVC Payload header. First word also could (and should) be 0x0000_820C or 0x0000_830C - with FID bit in Bit field header toggling each new frame. As PTS and SCR bits are cleared, and header length is 12 bytes.
Size of frame after that header is also important. It should be 38400 of 32-bit YUY2 data words for 320x240; 153600 for 640x480 and so on. Calculation assumes that each YUY2 32-bit data word contains two pixels, so (320/2)*240 = 38400.

Before the start of each frame the user should send 0x0000_0055 in 32-bit DATA bus with 0x1 on 4-bit BE bus.

Best Regards

FTDI Community
Logged