Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
interfaces:ch340g [2017/01/11 22:57]
darron [RS485]
interfaces:ch340g [2020/08/22 06:16]
darron [Pickle Microchip PIC ICSP]
Line 1: Line 1:
 ==== Nanjing QinHeng Electronics CH340 ==== ==== Nanjing QinHeng Electronics CH340 ====
 <wrap right> <wrap right>
-{{:interfaces:ch340usb.jpg?200}}+{{:interfaces:ch340usb.jpg?150}} 
 +\\ \\ 
 +{{:interfaces:ch340-min.jpg?150}}
 </wrap> </wrap>
  
Line 54: Line 56:
 /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0 /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0
 </code> </code>
-udev by-id is not supported by Pickle Microchip PIC ICSP.+
  
 === Pickle Microchip PIC ICSP === === Pickle Microchip PIC ICSP ===
Line 70: Line 72:
 The .pickle configuration for the CH340 is this. The .pickle configuration for the CH340 is this.
 <code> <code>
-DEVICE=/dev/ttyUSB0+DEVICE=TTY 
 +IFACE=/dev/ttyUSB0
 SLEEP=600 SLEEP=600
 BITRULES=0x001F BITRULES=0x001F
Line 79: Line 82:
 === RS485 === === RS485 ===
 <wrap right> <wrap right>
-{{:interfaces:ch340-485.jpg?100}}+{{:interfaces:ch340-485.jpg?150}}
 \\ \\ \\ \\
-{{:interfaces:ch340g-fake.jpg?100|Top: ch340g Bottom: fake}}+{{:interfaces:ch340g-fake.jpg?150|Top: ch340g Bottom: fake}}
 </wrap> </wrap>
  
 Cheap RS485 adapters exist using both this chip and a fake version of this chip. Cheap RS485 adapters exist using both this chip and a fake version of this chip.
  
-The real chip is a CH340G with 16 pins and the fake chip has 24 pins in an unmarked package. The top 20 pins of the fake match those of a genuine CH340R or CH340T device which is only available as a 20-pin SOIC.+The real chip is a CH340G with 16 pins and the fake chip has 24 pins in an unmarked package. The top 20 pins of the fake match those of a genuine CH340R or CH340T device which is only available in 20-pin packages.
  
 The RS485 I/O stage varies slightly between the real and fake adapters and is constructed like this for the CH340G device. The RS485 I/O stage varies slightly between the real and fake adapters and is constructed like this for the CH340G device.