Method for implementing multiprogram switching by CPLD in embedded system

An embedded system and multi-program technology, applied in the direction of program control device, program loading/starting, cash register, etc., can solve the problems of easy to make mistakes and low efficiency, achieve convenient switching, improve work efficiency and accuracy Effect

Inactive Publication Date: 2009-02-11
INSPUR QILU SOFTWARE IND
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the development process of series products, it is necessary to switch between different hardware version

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
  • Method for implementing multiprogram switching by CPLD in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0010] As shown in Figure 1, during cold start, A19, A20, and A21 are all pulled down by CPLD. At this time, the CPU reads the executable binary code from the cold start program to complete the function selection and hardware initialization functions.

[0011] If you need to select function program 1 (assuming that function program 1 is stored in the 512K~1024K byte address space), then in the CPLD, pull A19 high, A20, A21 low, and restart through the watchdog. After restarting, the CPU In fact, the binary code is read from the 512K byte to complete the jump of the functional program.

[0012] If you choose function program 2 or function program 3, the analogy will follow.

[0013] The method of the present invention has been tried and applied on the motherboard of the Inspur RE-370FB high-end tax-controlled cash register. Because the Inspur RE-370FB tax-controlled cash register and the Inspur RE-330FB tax-controlled cash register share a PCB board, only the support hardware i...

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 provides a method for realizing multi-program mutual switching by utilizing CPLD in an embedded system. The method comprises the following steps: program chips are planned; a cold start program and a selection function program stored in a 0-512K byte address space are set; a program file 1 is stored in a 512K-1024K byte address space to complete an A function, a program file 2 is stored in a 1024K-1536K byte address space to complete a B function, and the like; after the program chips are planned, a boundary address line of each program space is arranged, the boundary address lines of a 0-512K byte address and a 512K-1024K byte address are set into A19, the boundary address lines of 512K-1024K byte and 1024K-1536K byte are set into A20, and the like; the boundary address line of each program space is connected to CPLD; the boundary address lines are logically arranged through the hardware of CPLD, so as to realize the remapping of the address spaces; after being completed, the remapping of the address spaces is in combination with the operation of a watchdog, so as to realize the warm start of the system, namely to realize mutual switching between different programs.

Description

technical field [0001] The method of the present invention provides a tax control cash register development technology, specifically a method for realizing instant switching of multiple application programs without a program redirection and program segment management mechanism. Background technique [0002] In the development of an embedded system without an operating system, a more common method is to write the compiled binary file into the program chip, and read the first instruction from the starting position after the CPU is reset and execute it. In this case, hardware and software are closely combined and inseparable. Once the hardware is changed, the old binary files in the program chip must be erased and rewritten into new binary files. In the development process of series products, it is necessary to switch between different hardware versions frequently, so binary files need to be replaced frequently, which is inefficient and easy to make mistakes. Contents of the ...

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
IPC IPC(8): G06F12/02G06F9/445G07G1/12
Inventor 毕研山于治楼王永军
Owner INSPUR QILU SOFTWARE 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