Out-hung Type Tax Control Device
Technical field
The utility model relates to a kind of tax control device, the Out-hung Type Tax Control Device that particularly a kind of and common cashing machine links to each other with PC.
Background technology
The ordinary electronic cashing machine of Shi Yonging can't be realized tax control in the market, country is carried out tax revenue make troubles, and the tax revenue cost is increased, and causes tax dodging easily, evades taxation.The cashing machine of tax control function has appearred having at present for this reason on the market, but these The Design of Tax Controled Device and the invoice of being opened thereof all do not meet the requirement of GB GB18240-2003 yet, and these tax-controlling devices all adopt 8 single-chip microcomputers to control, and so cause whole The Design of Tax Controled Device tax control management function and commercial management function powerful inadequately.
The State Tax Administration proposes " The Design of Tax Controled Device tax control function business demand " in calendar year 2001, under the leader of the national standardization council, organize by the Ministry of Information Industry, the State Tax Administration instructs, domestic relevant enterprise has been drafted " The Design of Tax Controled Device national standard " (GB18240-2003), and State Administration for Quality Supervision and Inspection and Quarantine formally issued in June, 2003.
Had powerful but do not met the user of common cashing machine of the requirement of GB GB18240-2003, again buy novel The Design of Tax Controled Device, existing cashing machine is transformed, for example installed additional tax-controlling device, make it to meet the requirement of GB GB18240-2003.
Summary of the invention
The purpose of this utility model provides a kind of Out-hung Type Tax Control Device that is connected the requirement that makes it to meet GB GB18240-2003 with common cashing machine or PC that meets.
Above-mentioned purpose of the present utility model is achieved in that a kind of Out-hung Type Tax Control Device, comprising: the card reader of a reading and writing IC card; The storer of a storage tax-control data; A user interface; A controller; Wherein, described controller connects card reader and user interface respectively via two UART interfaces, connects described storer via bus.
Wherein, described controller is a 32-bit microprocessor.
Wherein, described card reader comprises an IC-card interface chip and is connected the IC-card interface with it.
Wherein, described IC-card interface chip is WATCHCORE.
Wherein, also comprise a storer of depositing ephemeral data when moving in system, this storer connects controller via bus.
Wherein, comprise that also a connection controller is to provide the oscillatory circuit of clock signal.
Wherein, the reset circuit and the power monitoring chip that also comprise a connection controller.
Wherein, described power monitoring chip is MAX708.
Wherein, also comprise a hummer on the GPIO that is connected controller.
Wherein, also comprise a clock chip on the IC2 bus that is connected controller, this clock chip is powered separately by lithium ion battery.
Out-hung Type Tax Control Device of the present utility model is that complete requirement according to GB GB18240-2003 designs, and has adopted 32 risc microcontrollers, and it is comparatively powerful therefore to have function, and structure is comparatively simple, technique effect easy to use.
The utility model is specially adapted to having the transformation of the cashing machine that does not meet the GB requirement now.Its adopts RS232 serial ports to link to each other with common cashing machine or user's PC.It is Once you begin worked, and will gather the information of every transaction automatically, notes taxpayer's management data, and can be by the different tax category, tax items, the tax rate of machine initializing set, correct respectively the generation and record taxpayer management data.Can also carry out aggregation process to the management data of being gathered in addition, and with in the safe and reliable tax-controlling memory that is stored in machine intimate of the mode of encrypting.In record taxpayer management data, generation can be differentiated the tax control sign indicating number of true from false of bills, and the cashing machine or the PC that can upload to the user are printed on the invoice.APB-2000 type The Design of Tax Controled Device is utilized the data security anti-counterfeiting technology, is core with the tax control IC-card, adopts " separation between machine and card " pattern and advanced Ciphor safety technology, becomes passive monitoring and the management initiatively that be recorded as.
Below in conjunction with accompanying drawing the utility model is elaborated.
Description of drawings
Fig. 1 is the stereo appearance figure of The Design of Tax Controled Device in the utility model;
Fig. 2 is the structured flowchart of The Design of Tax Controled Device in the utility model;
Fig. 3 is the hardware catenation principle figure of master cpu and storer in the utility model;
Fig. 4 is the hardware catenation principle figure of master cpu and hummer in the utility model;
Fig. 5 be in the utility model master cpu with reset and the hardware catenation principle figure of power monitoring chip;
Fig. 6 is the hardware catenation principle figure of master cpu and IC-card interface chip in the utility model;
Fig. 7 is the hardware catenation principle figure of master cpu and clock chip in the utility model;
Fig. 8 is the hardware circuit principle figure of power management chip and battery in the utility model.
Embodiment
Referring to outside drawing of the present utility model shown in Figure 1, the The Design of Tax Controled Device in the utility model includes casing and mainboard, and mainboard is installed in casing inside.Casing upper surface has two LED light 1, is used to refer to power supply and IC-card duty respectively, and RS232 serial ports 2, power interface 3 are in the casing same side.Two IC-card interfaces 4 are located at the bottom and the side of casing respectively.
As mentioned above, mainboard is installed in casing inside, is that core constitutes with embedded type CPU and storer.CPU, SRAM, FLASH storer, clock chip, lithium ion battery, IC-card interface chip, reset circuit and power monitoring chip, oscillatory circuit, power management chip, LED light, hummer, IC-card interface, RS232 serial ports have been comprised on the mainboard.It adopts+5V, and the 1A direct current is powered.The IC-card interface chip is connected with CPU by serial data bus, and SRAM, FLASH storer are connected on the external data bus of CPU, and hummer is connected on the GPIO of CPU, and clock chip is connected on the I2C bus of CPU.
Described CPU be PHILIPS company be the 32-bit microprocessor of kernel with ARM7TDMI-S, LPC2214 is responsible for the control of data processing and each module.
Described SRAM storer is the M68AW127 of 128KB, is used for Installed System Memory, deposits some ephemeral datas when moving in system.
The NOR type E28F320J3 that described FLASH storer is 4MB is used to store some other management data of tax-control data and user.
Described clock chip is M41T80, for system provides time data, is powered separately by lithium ion battery.
Described IC-card interface chip is WATCHCORE, and two IC-card interfaces that meet the ISO7816 standard are provided, and is responsible for the read-write operation to IC-card.
Described oscillatory circuit adopts passive crystal oscillating circuit, for CPU provides clock signal.
Described reset circuit and power monitoring chip are MAX708, and for system provides electrification reset, hand-reset, power-off reset signal, simultaneously all right monitoring power supply is for CPU provides the electric voltage dropping warning function.
Described power management chip is AS1117, obtain respectively after the general+5V voltage step-down+3.3V and+1.8V is to CPU and other chip power supplies.
Instantiation below with reference to Fig. 2 to Fig. 8 further specifies the utility model.
Structured flowchart referring to main circuit board shown in Figure 2.Mainboard is the core of The Design of Tax Controled Device in the utility model, and it adopts LPC2214 is CPU, connects the Nor type Flash storer E28F320 of 1 4MB and the SRAM storer M68AW127 of 1 128KB by external data bus.LPC2214 is built-in with two UART interfaces, and one of them expands a RS232 serial ports by level transferring chip (MAX3232) and offers the user, and another UART interface is used to connect the IC-card interface chip.Hummer links to each other with the GPIO of CPU, is used to refer to the machine works state, and clock chip links to each other with the I2C bus of CPU.Jtag interface is used for debugging.
Fig. 3 is the hardware catenation principle figure of master cpu and storer in the utility model.Adopt LPC2214 /CS1 and address wire A23 mutually " or " afterwards as the chip selection signal of M68AW127.28F320 adopts 16 bit data bus to conduct interviews, so/BYTE8/16 connects high level.
Fig. 4 is the hardware catenation principle figure of master cpu and hummer in the utility model.The control signal of hummer is controlled by the I/O mouth P0.5 of LPC2214.
Fig. 5 be in the utility model master cpu with reset and the hardware catenation principle figure of power monitoring chip.The reset signal that MAX708 provides offers WATCHCORE, LPC2214,16C552,28F320 respectively.It is the output voltage+5V_IN of pilot switch power supply simultaneously, and when it was lower than 3.9V, output voltage fell early warning signal/POW_OFF, and this signal connects the external interrupt 0 of LPC2214, is used for interrupting to the CPU application.
Fig. 6 is the hardware catenation principle figure of master cpu and IC-card interface chip in the utility model.WATCHC0RE provides last electric control signal, clock signal, reset signal, the IO path of IC-card.The not gate 74HC14 that employing has Schmidt trigger isolates and shaping the IC-card clock signal that WATCHCORE provides, and clock signal is provided for respectively tax-controlling card and subscriber card.Because WATCHCORE works in+5V, MAX708 works in+3.3V, so the reset signal that MAX708 provides offers WATCHCORE after 74HC05 drives.
Fig. 7 is the hardware catenation principle figure of master cpu and clock chip in the utility model.This clock chip is connected with LPC2214 by I2C bus SDA, SCL, and is battery-powered when system cut-off.
Fig. 8 is the hardware circuit principle figure of power management chip and battery in the utility model.Switching Power Supply output+5V and+24V ,+5V obtains respectively after the AS1117 step-down+3.3V and+1.8V.When system powered on, battery was not exported electric energy, and when system's power down, battery realizes that the zero-time switching begins to power to clock chip.
Above-mentioned explanation only be used for the explanation rather than the restriction the purpose of this utility model, for example Fig. 3 to physical circuit shown in Figure 13 only be to realize instantiation of the present utility model.Under the condition that does not deviate from the utility model spirit and scope, those of ordinary skills can easily adopt known other physical circuit to substitute above-mentioned Fig. 3 to physical circuit shown in Figure 13.Therefore scope of the present utility model is by claim or the definition of its equivalent.