Problem with FT245BM

From: Bertolt Mildner (Bertolt.Mildner_at_gmx.at)
Date: 07/13/04

  • Next message: Michael: "Re: Strange problem encountered with AVR and interrupts - 1 attachment"
    Date: Tue, 13 Jul 2004 07:04:44 +0200
    
    

    I have a strange problem with a FTDI FT245BM USB interface IC.

    As soon as i enable the "pull down IO pins in USB suspend" option in the
    config EEPROM, I read a bunch of garbage data form the FT245BM after
    start-up.
    Without the pull-down option the FIFO is (as expected) empty after
    start-up.

    I have the following setup:
    - FT245BM connected to a ATmega64
    - Configured as bus powered device (500mA)
    - VCC and VCCIO are (for now) 5V
    - VCC for the ATmega64 is switched using a IRLML6402 P-MOSFET

    I think a have found what causes the FIFO state/content to be corrupted.
    FTDI write in one of the appnotes that reading from the FIFO while it is
    empty or writing to it while the TX buffer is full may lead to data
    corruption.

    Using a scope i see that during init of the FT245BM (while PWREN is still
    high) the pull-ups of all interface pins (D0-7, WR, RD, TXE, RXF, SI) get
    turned on and off 3 times!?

    As this only happens with the pull-down option enabled, my best guess is
    that the edges on RD corrupt the internal state of the FIFO.

    The only help I got from FTDI is that the pull-ups are initially turned on,
    then the EEPROM is read and if the pull-down option is enabled they should
    get turned off until PWREN goes low.
    (I guess after they noticed that i'm "only" a hobbyist they stopped
    responding ...)

    Has anyone here used the pull-down option with success?

    Thanks in advance,
    Bertolt

    -- 
    

  • Next message: Michael: "Re: Strange problem encountered with AVR and interrupts - 1 attachment"

    Relevant Pages

    • Re: FTDI UM245R FIFO-USB interface
      ... FTDI's own library and like you I could interact with the chip's fifo ... Turns out that the FTDI driver ... when you open a serial device in Windows, you have the option of bumping up the cache size (buffer) for the incoming data. ...
      (sci.electronics.design)
    • Re: FTDI UM245R FIFO-USB interface
      ... I'm trying to use an FTDI UM245R USB-FIFO module to read ... FTDI's own library and like you I could interact with the chip's fifo ... just fine but I was still losing data. ... if I turned off all debug. ...
      (sci.electronics.design)
    • Re: PC als Zentrale (Linux)/ serielle Schnittstelln fuer Notebooks?
      ... Wenn ich pro USB Transfer 1 FIFO Länge zum Wandler ... seriellen Schnittstellen haben, ... Der FTDI wird von Linux vollwertig unterstützt. ...
      (de.rec.modelle.bahn)
    • Re: Bit-Banging wandler
      ... Der Link geht leider nicht mehr. ... Abererseits kann man durch die 256 Byte ... Fifo des FTDI einiges mehr als 1K rausholen. ...
      (de.sci.electronics)