Usb-to-serial port chip and its MCU firmware automatic download system and method

A technology of automatic downloading and serial port transfer, applied in data reset devices, instruments, electrical digital data processing, etc., can solve problems such as MCU error startup mode, achieve the effects of reducing failure rate, expanding application range, and improving firmware download efficiency

Active Publication Date: 2022-02-15
NANJING QINHENG MICROELECTRONICS CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Purpose of the invention: In order to solve the problems existing in the prior art, the MCU firmware download based on the USB-to-serial port chip can also solve the problem that the MCU enters the wrong startup mode without peripheral circuits. The present invention provides a USB-to-serial port chip

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Usb-to-serial port chip and its MCU firmware automatic download system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] In this embodiment, an MCU whose BootMode pin is normally at a low level is taken as an example. When the BootMode pin is at a high level, the MCU resets and enters a firmware download mode.

[0044] A USB-to-serial chip, comprising:

[0045] Type variable pin, the default state is an input pin, which can be switched to an output pin under the pin switching command of the host computer, and is used to control the BootMode pin of the MCU. The pin switching command is generally a USB manufacturer command;

[0046] Output pin, used to control the reset pin of the MCU;

[0047] Memory, processor and a software program stored on the memory and executable by the processor. When the processor receives a pin switching command sent by the host computer, executing the software program can realize: change the type variable pin from the input lead The pin is switched to an output pin and outputs a high level;

[0048] When the processor receives the pin restoration command sent by ...

Embodiment 2

[0061] The difference between the second embodiment and the first embodiment is that the trigger condition is automatically generated when a USB plug-in action is detected, without any manual operation. Based on the characteristics of USB hot plugging, the upper computer monitors the USB end. When the USB is detected, a trigger condition is generated, and the firmware downloading step is automatically executed until the firmware download is completed, and the MCU exits the firmware download mode and enters the user program. Mode, the whole process does not require manual operation, and the MCU firmware can be downloaded automatically.

Embodiment 3

[0063] The difference between Embodiment 3 and Embodiment 1 is that Embodiment 3 takes an MCU whose BootMode pin is normally at a high level as an example. When the BootMode pin is at a low level, the MCU resets and enters the firmware download mode.

[0064] A USB-to-serial chip, comprising:

[0065] Type variable pin, the default state is an input pin, which can be switched to an output pin under the pin switching command of the host computer, and is used to control the BootMode pin of the MCU. The pin switching command is generally a USB manufacturer command;

[0066] Output pin, used to control the reset pin of the MCU;

[0067] Memory, processor and a software program stored on the memory and executable by the processor. When the processor receives a pin switching command sent by the host computer, executing the software program can realize: change the type variable pin from the input lead The pin is switched to an output pin and outputs a low level;

[0068] When the p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a USB-to-serial chip and its MCU firmware automatic download system and method. The type-variable pin of the USB-to-serial chip is connected to the BootMode pin of the MCU, and the BootMode pin or the type-variable pin is connected with pull-up or pull-down Resistor; the output pin of the USB-to-serial chip is connected to the reset pin of the MCU. The type variable pin defaults to the input state. When the firmware needs to be downloaded, the host computer sends a pin switching command, and the type variable pin of the USB to serial port switches to the output state and outputs the active level of the BootMode pin, and then sends a reset MCU The request makes the MCU enter the firmware download mode; after the mode switching is completed, the type variable pin returns to the input state, and after the firmware download is completed, it is reset again to make the MCU enter the user program mode. The invention does not need peripheral circuits, and the MCU will not mistakenly enter other modes, thereby realizing automatic downloading of firmware and improving downloading efficiency.

Description

technical field [0001] The invention belongs to the field of USB-to-serial port chip design, in particular to a USB-to-serial port chip and its MCU firmware automatic download system and method. Background technique [0002] The serial port is very popular as the MCU firmware download interface, and there are more and more MCU start-up modes. As the MCU is used more and more widely, the industry pays more attention to the MCU firmware download efficiency and the volume cost of the hardware circuit. The cost-effective The firmware download method becomes even more important. [0003] Based on the requirements of 16C450 / 550, in the default state of the IO pin type of the general-purpose serial port chip, the CTS / DSR / RI / DCD pin is the input direction, and the RTS / DTR pin is the output direction and is in the high level state by default. (for 232 level logic 0). In the prior art, RTS / DTR is used as the mode selection pin to control the BootMode pin of the MCU, and when the MCU...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/40G06F13/42G06F1/24
CPCG06F13/4081G06F13/4221G06F13/4282G06F1/24G06F2213/0042
Inventor 刘帅
Owner NANJING QINHENG MICROELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products