ftdi utilities

本文介绍如何使用FT232R芯片配置RS485接口,包括TXDEN信号的设置与验证方法。通过合理配置FT232R的CBUS引脚,实现对RS485收发器的有效控制。此外,还提供了利用MProg等工具进行设备配置的具体步骤。

验证txden信号状态的好方法是使用另一个channel,测量其txden,然后对比。

ftdi utilities such as mprog:  

http://www.ftdichip.com/Support/Utilities.htm

FT_PROG is an enhanced version (and a replacement for) the previous utility used for this function called MProg as well as the VProg application

MProg is available for download by clicking here.  MProg requires FTDI's D2XX drivers to run correctly. 

 

The MProg User Guide is available for download as a .PDF by clicking here.



This example uses the Sipex SP481 device. Equivalent devices are available from Maxim and Analogue 
Devices. The SP481 is a RS485 device in a compact 8 pin SOP package. It has separate enables on both 
the transmitter and receiver. With RS485, the transmitter is only enabled when a character is being 
transmitted from the UART. The TXDEN signal CBUS pin option on the FT232R is provided for exactly this 
purpose and so the transmitter enable is wired to CBUS2 which has been configured as TXDEN. Similarly, 
CBUS3 has been configured as PWREN#. This signal is used to control the SP481‟s receiver enable. The 
receiver enable is active low, so it is wired to the PWREN# pin to disable the receiver when in USB 
suspend mode. CBUS2 = TXDEN and CBUS3 = PWREN# are the default device configurations of the 
FT232R pins. 
RS485 is a multi-drop network; so many devices can communicate with each other over a two wire cable 
interface. The RS485 cable requires to be terminated at each end of the cable. A link (which provides the 
120Ω termination) allows the cable to be terminated if the SP481 is physically positioned at either end of 
the cable. 
In this example the data transmitted by the FT232R is also present on the receive path of the SP481.This 
is a common feature of RS485 and requires the application software to remove the transmitted data from 
the received data stream. With the FT232R it is possible to do this entirely in hardware by modifying the 
example shown in Figure 7.2 by logically OR‟ing the FT232R TXDEN and the SP481 receiver output and 
connecting the output of the OR gate to the RXD of the FT232R. 
Note that the TXDEN is activated 1 bit period before the start bit. TXDEN is deactivated at the same time 
as the stop bit. This is not configurable.

Start: Texas Instruments XDS100v3 USB Debug Probe_0] Execute the command: %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity [Result] -----[Print the board config pathname(s)]------------------------------------ C:\Users\ZZH\AppData\Local\TEXASI~1\CCS\ ccs1280\0\0\BrdDat\testBoard.dat -----[Print the reset-command software log-file]----------------------------- This utility has selected a 100/110/510 class product. This utility will load the adapter 'jioserdesusbv3.dll'. The library build date was 'Jul 24 2024'. The library build time was '18:57:55'. The library package version is '12.8.0.00189'. The library component version is '35.35.0.0'. The controller does not use a programmable FPGA. The controller has a version number of '4' (0x00000004). The controller has an insertion length of '0' (0x00000000). This utility will attempt to reset the controller. This utility has successfully reset the controller. -----[Print the reset-command hardware log-file]----------------------------- The scan-path will be reset by toggling the JTAG TRST signal. The controller is the FTDI FT2232 with USB interface. The link from controller to target is direct (without cable). The software is configured for FTDI FT2232 features. The controller cannot monitor the value on the EMU[0] pin. The controller cannot monitor the value on the EMU[1] pin. The controller cannot control the timing on output pins. The controller cannot control the timing on input pins. The scan-path link-delay has been set to exactly '0' (0x0000). An error occurred while hard opening the controller. -----[An error has occurred and this utility has aborted]-------------------- This error is generated by TI's USCIF driver or utilities. The value is '-233' (0xffffff17). The title is 'SC_ERR_PATH_BROKEN'. The explanation is: The JTAG IR and DR scan-paths cannot circulate bits, they may be broken. An attempt to scan the JTAG scan-path has failed. T
最新发布
12-03
在 System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout) 在 System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count) 在 MissionPlanner.Comms.WinSerialPort.MissionPlanner.Comms.ICommsSerial.Write(Byte[] buffer, Int32 offset, Int32 count) 在 MissionPlanner.Comms.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\Comms\CommsSerialPort.cs:行号 183 在 MissionPlanner.MAVLinkInterface.generatePacket(Int32 messageType, Object indata, Int32 sysid, Int32 compid, Boolean forcemavlink2, Boolean forcesigning) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\ArduPilot\Mavlink\MAVLinkInterface.cs:行号 1368 在 MissionPlanner.MAVLinkInterface.sendPacket(Object indata, Int32 sysid, Int32 compid) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\ArduPilot\Mavlink\MAVLinkInterface.cs:行号 1157 在 MissionPlanner.MAVLinkInterface.<getHeartBeatAsync>d__153.MoveNext() 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\ArduPilot\Mavlink\MAVLinkInterface.cs:行号 1087 --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 MissionPlanner.Utilities.Extensions.<>c__DisplayClass1_0`1.<<AwaitSync>b__0>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 MissionPlanner.Utilities.Extensions.AwaitSync[T](Task`1 infunc) 在 MissionPlanner.MAVLinkInterface.OpenBg(IProgressReporterDialogue PRsender, Boolean getparams) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\ArduPilot\Mavlink\MAVLinkInterface.cs:行号 886 在 MissionPlanner.Controls.ProgressReporterDialogue.RunBackgroundOperation(Object o) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\Controls\ProgressReporterDialogue.cs:行号 111
04-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值