Summary of the invention
The present invention is in order to overcome the deficiency of above-mentioned implementation method, to have designed a kind of cell-phone charging backup device special microprocessor chip.The present invention has designed the microprocessor chip of integration USB main frame and slave interface specially at the interface of charger for mobile phone, chip is also integrated USB (UART) interface and serial peripheral interface bus (SPI) interface.Integrated high-precision RC oscillation module of chip internal of the present invention and phase-locked loop (PLL) are saved external crystal-controlled oscillation.Chip of the present invention can adopt the SSOP16 encapsulation, the built-in function Highgrade integration, and peripheral circuit is simple.Use chip of the present invention, Backup Data is kept in the SPI interface serial flash (SPI Flash), and SPI flash is a kind of general-purpose chip, the SOP8 packing forms, memory capacity from the 1M bit to the 256M bit.Chip of the present invention is a microprocessor, needs to realize handset port communication and data backup by programming, and program and Backup Data are to preserve with in a slice SPI Flash chip equally.Chip of the present invention is for making things convenient for application development, and the indoor design debugging interface is supported C programmer exploitation and debug function.
The present invention has following characteristics: 1. integrated usb host interface of chip and UART interface, charging backup device can be widely used in the handset port of various models.2. chip integration USB slave interface, charging backup device can be connected with computer easily, makes things convenient for data management; 3. chip adopts the packing forms of SSOP16, and the SPI Flash that storage is used is the SOP8 packing forms, makes the convenient mould that adopts common charger of charging backup device, under the situation that does not change regular handset charger profile, adds the charging backup functionality.4. the program of chip is kept among the SPI Flash, can be erasable repeatedly 100,000 times, adopt the charging backup device of chip of the present invention, and product has upgradability, to incompatible mobile phone model, can support after sale by the mode of upgrading charging backup device internal processes.5. the SPI Flash of storage and procedure stores is same, and this function does not additionally increase cost.6. the debugging interface of chip of the present invention design has made things convenient for software development, debugging, helps to shorten the construction cycle of charging backup device upgrading.7. integrated high-precision RC oscillation module of chip internal of the present invention and phase-locked loop (PLL) had both been saved the cost of external crystal-controlled oscillation, had saved board area again.
Description of drawings
With reference to following detailed description and accompanying drawing, relevant structure that can better understand the present invention and implementation method with and purpose, feature and advantage.Structure in the accompanying drawing is as just a design example of the present invention.
Fig. 1 is cell-phone charging backup device special microprocessor chip internal structure block diagram:
Shown in Figure 1, cell-phone charging backup device special microprocessor chip internal is a core with little processing nuclear, comprises with the module that the DMA data transmission bus is connected by control bus: buffer memory (cache), SRAM, debugging interface, dma controller, UART interface, general input/output port, power management module (5V changes 3.3V LDO), RC vibration, PLL phase-locked loop and timer on USB 2.0 main frames and slave interface controller, SPI flash interface controller, the sheet.
Fig. 2 is for adopting the charging backup device system block diagram of chip design of the present invention:
As shown in Figure 2, the charging backup device among the figure has used chip of the present invention, and AC/DC module section wherein and power supply indicator and common charger are identical, and difference is to have increased chip of the present invention and SPI serial flash, and status indicator lamp.
In the following detailed description, having described specific details comprehensively understands the present invention so that provide.Yet the professional and technical personnel will appreciate that the present invention also can implement with other similar details.
Accompanying drawing 1 is a kind of embodiment of the present invention:
Chip internal has designed CACHE SYSTEM (buffer memory on the sheet), the form that adopts instruction prefetch and dynamically update, both guaranteed the instruction efficient of microprocessor, guaranteed by locking CACHE SYSTEM (buffer memory on the sheet) that the program execution can not influence the reading and writing data of flash chip again.Above-mentioned design office chip of the present invention can be used SPI flash memory working procedure, has saved internal program memory and supported to download repeatedly.Thereby the scalable characteristics of charging backup device have been realized.
USB 2.0 main frames and slave interface that chip internal is integrated connect mobile phone when host interface can be charged by USB, the slave interface connects computer by the usb data line.USB 2.0 interfaces are designated as the national standard of charger for mobile phone, so this part design of the present invention just has versatility widely.Chip internal is integrated UART interface, be primarily aimed at the mobile phones design of the non-standard USB charging inlet of part, for supporting the charging backup of the type mobile phone, need join special data wire, but, can merge to public USB physical interface at charging backup device end physically because the data wire of UART and USB all is 2.This part design of the present invention makes the charging backup device that adopts chip of the present invention, has handset compatibility more widely, does not change the profile Interface design of common charger simultaneously.
Chip internal integrated power supply management LDO realizes the voltage stabilizing output from the 5V direct current to 3.3V, because most SPIflash works 3.3V voltage under, and circuit cost and circuit board space in the above-mentioned design saving system.
The integrated high precision clock module of chip internal under the condition of no external crystal-controlled oscillation, provides chip operation required clock, has saved the cost and the space hold of crystal oscillator in the system.
The universal input/output interface that chip internal is integrated uses mainly as the output driving of state indication, can change the blink states of status indicator lamp by programming, and the operating state of device is backed up in the representative charging.
Chip internal is integrated debugging interface can directly connect computer, makes things convenient for the programming and the debugging of microprocessor middleware software, and charging backup device often need carry out the work of software upgrading for improving handset compatibility, and this interface helps to save the software development time.
Accompanying drawing 2 is the present invention's application in charging backup device product:
Cell-phone charging backup device among the figure uses chip design of the present invention, for being implemented under the cell-phone charging state function of backup cellphone information.In the regular handset charger, only comprise AC/DC modular converter and power supply indicator part among the figure.Be the function of upgrading realization backup cellphone information, added charging backup device special microprocessor chip of the present invention and SPI flash chip.Chip of the present invention is the control core of charging backup device, connect cell phone apparatus by usb host interface or UART interface, discern and read information such as the middle address list of mobile phone, note by the software programming mode, after encrypting, compressing, store in the SPI flash memory, promptly derive the cellphone information backup functionality.Realize by software programming, in the middle of mobile phone, write the mobile phone such as the information such as address list, note of preserving in the SPI flash memory, i.e. import feature.Because the programmable characteristics of chip of the present invention, the difference on the concrete function can realize by software programming, above-mentioned importing, to derive cellphone information only be basic functions explanation.
From accompanying drawing 2 as can be known, the cell-phone charging backup device that chip of the present invention constitutes, the components and parts that increase on the basis of common charger are less and volume is less, do not influence the appearance design and the mould of common charger substantially.Chip of the present invention is a special chip, is fit to produce in enormous quantities and sell, and cost and price can reduce along with the use scale.Chip of the present invention has utilized the characteristics that the SPI flash capacity is big, versatility is good, has both satisfied the information back-up demand of big capacity cell phone address book, makes cell-phone charging backup device characteristics able to programme again, by after-sale service upgrading handset compatibility.Above-mentioned advantage is convenient to common charger manufacturer production charging backup device product, improves product price ratio and user's acceptance.
Though herein declarative description certain this feature of the present invention and a kind of implementation method, for the professional and technical personnel, many modifications, replacement, variation and equivalent substitution will appear.Therefore, protection scope of the present invention is as the criterion by the scope of appended claim.