ISSUE WHILE READING CHIPID IN DISPLAY (FT813)

Comments

5 comments

  • Ted M.
    NHD Staff

    Hi Arjun,

    Please try 5mA on the SCLK. A hardware buffer to provide the extra current has also worked for other users with similar issues.

    Best Regards,

    0
  • Arjun
    Hello,

    Thank you for your response Sir. Now we are able to read 5mA in SCLK pin but still not able to read chip id.

    Description:

    Able to send commands to LCD Driver (FT813), the response for chip id always 0(zero).

    What could be the reason? Is that we are missing something in code?

    Commands Sent to FT813 from ATMEGA2560:

    Code Flow:

    1) Port and SPI Initialization
    2) Power-down command
    3) External clock command
    4) Active command
    5) Read REG ID(0x302000)

    When Power down command is sent to FT813, display will get enabled(ON) and for Active command it goes to disable(OFF) state. Is this code execution is correct or anything need to be included.
    0
  • Ted M.
    NHD Staff

    Hi Arjun,

    Try reducing the SPI clock to less than 11Mhz before sending the Active command.
    Please see Page 11 of the FT81X Series Programmers Guide for reading the chip identification code and the recommended initialization when booting up the display:

    https://brtchip.com/wp-content/uploads/Support/Documentation/Programming_Guides/ICs/EVE/FT81X_Series_Programmer_Guide.pdf

    Send Host command “ACTIVE” to enable the clock to the FT81X.
    FT81X starts its self diagnosis process and may take up to 300ms.
    Alternatively, read REG_ID repeatedly until 0x7C is read.

    After reset or reboot, the chip ID can be read from address 0xC0000 to 0xC0003.

    Best Regards,

    0
  • Arjun

    Hello,

    Thank you for your response Sir. Now I'm able to read Chip Id.

    I have to send two dummy bytes when I'm reading from FT813. I missed one dummy byte so it was not reading chip Id properly. Also I changed 4Mhz frequency to 1Mhz in SPI communication. Now its working fine sir.

    Thank you.

    0
  • Ted M.
    NHD Staff

    Hi Arjun,

    It's good to hear you have it working! Thanks for posting your fix to this issue as I know it will help others with a similar experience.

    Best Regards,

    0

Please sign in to leave a comment.