CP21xx SDK: https://www.silabs.com/products/development-tools/software/interface
可以通过编程控制上面的 GPIO0..3
windows: https://www.silabs.com/documents/public/software/USBXpressHostSDK-Win.zip
linux: https://www.silabs.com/documents/public/software/USBXpressHostSDK-Linux.tar
离线
离线
这样的话可以直接当个单片机用了!!!
离线
离线
离线
又细看了cp2104发现它的GPIO0-2的编程是一次性的。那么是不是说一旦设置为输入后就没法在改变为输出模式了呢?
离线
CP21xxCustomizationUtility.exe配置文件下载:cp2104_debugdump.7z
文件内容:
#com.silabs.customizer_1.2.0.201512181646-427
#Sat Nov 10 16:01:38 CST 2018
PropertyVID=10C4
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/0=
version=2
PropertyProductDescr=whycan.cn RS485 cable
PropertyReleaseVer=0100
PropertySerial=AABBCCDD
CP2103_4GroupPortConfigRoot/PropertyResetValue/4=3FFF
CP2103_4GroupPortConfigRoot/PropertyLatchControl/5=0700
CP2103_4GroupPortConfigRoot/PropertyToggleValues/7=1
CP2103_4GroupPortConfigRoot/PropertyToggleValues/6=1
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/9=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/12=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/8=1
PropertyPowerMode=00
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/11=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/7=1
CP2103_4GroupPortConfigRoot/PropertyToggleValues/2=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/10=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/6=0
CP2103_4GroupPortConfigRoot/PropertyToggleValues/1=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/5=1
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/4=1
CP2103_4GroupPortConfigRoot/PropertySuspendValue/3=3FFF
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/3=0
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/2=1
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/1=0
CP2103_4GroupPortConfigRoot=
CP2103_4GroupPortConfigRoot/CP2103_4GroupPins/PropertyPin/0=0
device=CP2104
PropertyPID=EA60
PropertyFlushBuffers=00FF
PropertyPower=32
PropertyLockValue=00
按上面配置之后, 工作非常正常了, GPIO 0/1/2 都由CP2104 固件控制.
完全不亚于淘宝买了53元的 USB转RS485 最近要做一个物联网传感器项目, 买了一条 USB 转 RS485/RS422 线 (帝特DT-5019)
离线