Glitch-free self-adaptive clock switching method for UART (Universal Asynchronous Receiver Transmitter) interface chip

An interface chip and clock switching technology, applied in the direction of generating/distributing signals, etc., can solve the problem that the power consumption of the UART interface chip cannot be achieved

Inactive Publication Date: 2013-11-27
NO 8357 RES INST OF THE THIRD ACADEMY OF CHINA AEROSPACE SCI & IND
View PDF9 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the existence of the internal clock multiplier of the UART interface chip, the optimization of the power consumption of the UART interface chip cannot be achieved only by adjusting the baud rate by frequency division.

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
  • Glitch-free self-adaptive clock switching method for UART (Universal Asynchronous Receiver Transmitter) interface chip
  • Glitch-free self-adaptive clock switching method for UART (Universal Asynchronous Receiver Transmitter) interface chip
  • Glitch-free self-adaptive clock switching method for UART (Universal Asynchronous Receiver Transmitter) interface chip

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0043] UART interface chip of the present invention such as figure 2 As shown, an adaptive clock switching module 201 is added before the prescaler 101 of the original high-speed UART interface chip, and the adaptive clock switching module 201 is connected with the main clock of the chip. switch.

[0044] The specific self-adaptive clock switching module 201 also includes a working status identification module 202 and a clock switching module 203. The working status identification module 202 calculates the frequency of the required main clock of the chip according to the UART interface chip working status information written in parallel by the CPU, and according to the Whether the main clock frequency is higher than the input clock frequency and the current frequency multiplier state, judge whether to open the frequency multiplier and calculate the multiplication frequency if necessary; the clock switching module 203 adjusts the frequency multiplier in real time according to ...

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 glitch-free self-adaptive clock switching method for a UART (Universal Asynchronous Receiver Transmitter) interface chip. The glitch-free self-adaptive clock switching method for the UART interface chip comprises the flowing steps of (1) obtaining a next working state, namely, inputting the clock frequency and the baud rate of the UART interface chip through a self-adaptive clock switching module according to configuration information which is wrote in through a CPU (Central Processing Unit) in a parallel mode; (2) calculating the UART interface chip required mclk frequency; (3) comparing the required mclk frequency with clkin frequency, calculating the double frequency and opening a frequency doubler when the required mclk frequency is higher than the clkin frequency and closing the frequency doubler when the required mclk frequency is lower than the clkin frequency; (4) switching the chip mclk according to opening and closing of the frequency doubler. The UART interface chip comprises the self-adaptive clock switching module which is connected with a chip mclk. According to the glitch-free self-adaptive clock switching method for the UART interface chip, clock strategies of the chip is automatically adjusted and the purpose of optimizing power consumption is achieved according to a current working state of the UART interface chip and the next working state which is wrote in through the CPU.

Description

technical field [0001] The invention relates to a clock switching method of a UART interface chip. Background technique [0002] Data transmission between the host computer and external devices includes parallel transmission and serial transmission, among which parallel transmission is used for short distance and fast speed occasions, and serial transmission is usually used for long distance and low speed requirements. transmission. Such as figure 1 As shown, the UART (Universal Asynchronous Transceiver) interface chip is often used between the CPU and the serial device for parallel-to-serial port conversion: the UART interface chip converts the data written in parallel by the CPU into a serial port protocol, according to the preset frame format and waveform The baud rate is sent to the serial device; and the received serial data is stored in the internal cache for parallel reading by the CPU. [0003] Most UART interface chips can work at multiple baud rates (transmissio...

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 Applications(China)
IPC IPC(8): G06F1/04
Inventor 郑炜朱天成李鑫杨阳周津
Owner NO 8357 RES INST OF THE THIRD ACADEMY OF CHINA AEROSPACE SCI & IND
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