This project is a programmer for LGT8Fx8P/D, used to burn firmware ( .hex/ .bin) into the LGT8Fx8P/D chip
This programmer is based on Arduino design. This programmer adopts the solution of USB to serial port + lgt8f328p microcontroller. The USB to serial port chip can use CH340C. It is recommended to use CH340G+12MHz crystal oscillator to make the baud rate more accurate. The DTR of CH340 is connected to the RESET pin through a 0.1uF capacitor, which is compatible with the Arduino download method. The lgt8f328p microcontroller uses an external 16MHz crystal oscillator to avoid the problem of excessive baud rate errors caused by excessive errors in the internal RC oscillator. The pull-up resistors of SWC and SWD can be soldered, and it is recommended to solder a 10k resistor.
When the host computer opens the serial port, the DTR pin sometimes changes in level, which causes the microcontroller to reset. During normal use, you do not want the microcontroller to reset and enter the bootloader. RESET should be forced to VCC. When upgrading the firmware, you need to use RESET to enter the bootloader to complete the firmware upgrade. At this time, you need to release the forced pull-up of RESET. In order to be compatible with the official upgrade logic: the #UPDATE pin is connected to GND to upgrade the firmware. When the #UPDATE pin is left floating, it can be used normally and cannot upgrade the firmware. A circuit consisting of Q1, Q2, R2, and R3 is designed. When #UPDATE is floating, Q1 is turned on, and the G electrode voltage of Q2 is 0, so Q2 is also turned on, which means RESET is forced to pull to VCC; when #UPDATE is connected to GND, Q1 is turned off, and the G electrode voltage of Q2 is VCC. Therefore, Q2 is also cut off and RESET is no longer forced to be pulled up.
烧写LGTISP固件.bat
z
( 0x7a 0x20
) through the serial port to return the GUID (for example: 0x14 0xa5 0xc4 0x18 0x33 0x20
)y
( 0x79 0x20
) through the serial port to return copyright informationDevelop more interesting uses yourself!
brother_yan
lgt8f328p is a domestically compatible version of mega328p, but it is not compatible with the mega328p programmer. Therefore, you need to buy an expensive official downloader, or make one yourself, such as https://oshwhub.com/larduino/lgt_mini_box or https://oshwhub.com/larduino/larduino_isp_shield . The former requires you to have a Xintang downloader, and the latter requires you to have certain hands-on skills. I have seen the author of shield board guide novices, and it made me very anxious. . . So I made this LGTISP downloader, aiming to reduce the complexity of production, and having a dedicated downloader is much more convenient than using it temporarily. Since I have analyzed the timing of the official downloader ( https://github.com/brother-yan/LGTISP ), I think my firmware is better to use, but in order to allow users to easily switch between my firmware and the official firmware, I designed the update function. The pin definitions of my downloader are exactly the same as the pin definitions of the latest official downloader, and I try my best to ensure compatibility. The production BOM cost should be less than 10 yuan.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet