FT232RL HIGH SPEED TESTER
English Functional Test Procedure
==================================

PURPOSE
-------
Verify that an FT232RL adapter and the complete TOOL0 diode/pull-up signal path operate without data errors at 1,000,000, 2,000,000 and 3,000,000 baud. The test also verifies FT232R EEPROM/config write capability with automatic restoration and provides direct RTS# level control for reset-line verification.

IMPORTANT
---------
A successful 3 Mbaud test proves functional operation under the tested conditions. It does NOT by itself prove that the FT232RL is a genuine FTDI device.

HARDWARE SETUP - TOOL0 DIODE LOOPBACK
--------------------------------------

                      500 ohm to 1 kohm pull-up
Target/IO VCC ---------------/\/\/\----+
                                          |
FT232RL TXD ----- K|<|A BAT54/SS24 -------+---- TOOL0
                                          |
FT232RL RXD <-----------------------------+

1. Connect the FT232RL adapter to the PC by USB.
2. Select the correct FT232RL I/O voltage for your test circuit.
3. Connect TXD to TOOL0 through the Schottky diode used in the real programmer circuit. Cathode (K / stripe) goes to FT232RL TXD; anode (A) goes to TOOL0.
4. Connect RXD directly to TOOL0.
5. Connect a 500 ohm to 1 kohm pull-up resistor from TOOL0 to the interface VCC.
6. Connect all grounds together.
7. For a pure adapter/interface test, disconnect the target MCU or guarantee that it does not drive TOOL0.
8. Keep TOOL0 wiring short for 3 Mbaud testing.

SOFTWARE SETUP
--------------
1. Install the FTDI D2XX driver.
2. Run FT232RL_HighSpeed_Tester_V6.exe.
3. If the program reports "ftd2xx.dll not found", install the x64 D2XX driver or place the x64 ftd2xx.dll next to the EXE.
4. Click Refresh and select the FTDI device.
5. The program displays the D2XX device type, description, serial number and VID:PID/device ID information when available.

UART TEST SETTINGS
------------------
The program configures the adapter as:
- 8 data bits
- No parity
- 1 stop bit
- No flow control
- D2XX direct mode (not Windows COM/VCP)
- 1 ms FTDI latency timer
- Purged RX/TX queues before each test

TEST PATTERNS
-------------
- Repeating 0x55
- Repeating 0xAA
- Repeating 0x00
- Repeating 0xFF
- Incrementing 00 01 02 ... FF
- Deterministic pseudorandom data
- All Patterns (recommended)


EEPROM / CONFIG WRITE TEST
--------------------------
This test is intended for FT232R/FT232RL devices. It uses the D2XX EEPROM programming API and is reversible under normal operation.

1. Select the FT232R device.
2. Click TEST CONFIG WRITE.
3. The software reads and backs up the existing FT232R EEPROM/config.
4. It changes only MaxPower to a temporary value 2 mA away from the original value.
5. It programs the temporary configuration with FT_EE_Program.
6. It reads the EEPROM/config again with FT_EE_Read.
7. It immediately programs the complete original configuration back.
8. It reads again and verifies that the original MaxPower value was restored.

Interpretation:
- WRITABLE: the temporary value changed correctly and the original value was restored.
- CONFIG FIXED / SUSPECT CLONE: the write was blocked, or the requested temporary value did not appear on readback. This is a strong functional warning but does not by itself prove counterfeit origin.
- READ FAILED / VERIFY FAILED: the EEPROM test is inconclusive; check the D2XX status and driver.
- RESTORE FAILED: do not rely on the current adapter configuration. Open FT_PROG and verify/restore the original settings before reuse.

The original VID/PID, manufacturer, description, serial number, CBUS settings and other FT232R fields are preserved in the backup structure; the probe changes only MaxPower.

MANUAL SPEED TEST
-----------------
1. Select a test size. 256 KiB is the default.
2. Select "All Patterns" for the most complete test.
3. Click TEST 1M.
4. Confirm PASS and zero mismatch/timeout errors.
5. Click TEST 2M and confirm PASS.
6. Click TEST 3M and confirm PASS.

AUTO TEST
---------
Click AUTO TEST CONFIG + 1M + 2M + 3M.
The program runs the EEPROM/config write-and-restore test first, then 1 Mbaud, 2 Mbaud and 3 Mbaud sequentially.
A fully clean AUTO PASS requires CONFIG WRITABLE plus all selected patterns at all three baud rates with zero errors. If speed tests pass but the config is fixed/write-blocked, the final status is SUSPECT.

PASS CRITERIA
-------------
A speed test passes only when:
- TX byte count equals the requested byte count.
- RX byte count equals TX byte count.
- Data mismatch count = 0.
- Timeout count = 0.
- No D2XX API error occurs.

Recommended final result:
1 Mbaud : PASS
2 Mbaud : PASS
3 Mbaud : PASS
Mismatch: 0
Timeout : 0

OSCILLOSCOPE VERIFICATION
-------------------------
For additional physical-layer verification, select the 0x55 pattern and TEST 3M.

At 3,000,000 baud:
Bit time = 1 / 3,000,000 = 333.33 ns

The TOOL0 waveform should have approximately 333 ns per UART bit. Check that LOW and HIGH levels cross the target input thresholds with adequate timing margin and that rising edges are not excessively slowed by diode capacitance, PCB capacitance or the pull-up resistance.

RTS# TEST
---------
IMPORTANT: remove any SERIES capacitor between RTS# and the reset driver if you need a steady logic level.

RTS# ASSERT (LOW):
- The application calls the D2XX RTS assert function.
- The physical FT232RL RTS# pin is expected to be LOW.

RTS# DEASSERT (HIGH):
- The application deasserts RTS.
- The physical FT232RL RTS# pin is expected to be HIGH.

RTS# TOGGLE TEST:
- Toggles RTS# every 500 ms for 10 complete cycles.
- Use an oscilloscope, logic analyzer or multimeter to verify the level change.
- The final state is DEASSERTED/HIGH.

INTERPRETING FAILURES
---------------------
Mismatch > 0:
- Check diode orientation and type.
- Check TOOL0 pull-up value.
- Check I/O voltage.
- Check PCB/scope-probe/wiring capacitance.
- Check that the target MCU is not driving TOOL0.

Timeout > 0 or RX bytes < TX bytes:
- Check RXD connection to TOOL0.
- Check the diode loopback path.
- Check D2XX driver installation.
- Reduce wiring length and remove unnecessary capacitive loading.

1M/2M PASS but 3M FAIL:
- The adapter or TOOL0 physical layer does not have enough margin at 3 Mbaud.
- Check edge rise time, diode junction capacitance, pull-up resistance and FT232RL quality.

END OF PROCEDURE

NOTE: FT_PROG text such as "Serial Number: XXXXXXXX - Fixed" means the USB serial number is fixed/user-specified. It does NOT by itself mean the EEPROM/config is write-locked or prove that the chip is counterfeit. V6 uses an actual write/readback/restore test.
