Embodiment
Below in conjunction with accompanying drawing and embodiment the utility model is described in further detail:
The utility model parts comprise: MCU microprocessor 1, power supply 2, power control circuit 3, E
2PRQM EPROM 4, USB interface 5, FM radio reception 6, earphone output 7, voicefrequency circuit 8, microphone 9, Dataplay movement 10, LCD display 11, button 12, reset circuit 13, storer 14, protection circuit 15, movement pin position circuit 16, movement control section circuit 17.With reference to each accompanying drawing, the same or corresponding part of same label expression in all different views.
Have in the DataPlay movement control circuit: Dataplay movement 10, power supply 2, storer 14, power supply 2 is input to MCU microprocessor 1, MCU microprocessor 1 output terminal connects Dataplay movement 10, button 12 output terminals connect MCU microprocessor 1, MCU microprocessor 1 output terminal connects LCD display 11, and MCU microprocessor 1 connects the storer 14 of commutative signal.
MCU microprocessor 1 input end connects reset circuit 13 and USB interface 5, MCU microprocessor 1 output terminal connects audio frequency processing circuit 8, LCD display 11, FM radio reception 6, FM radio reception 6 output terminals connect voicefrequency circuit 8, voicefrequency circuit 8 input ends connect microphone 9, and voicefrequency circuit 8 output terminals connect earphone output 7.
Power supply 2 output terminals connect power control circuit 3, and power control circuit 3 connects MCU microprocessor 1.Storer 14 input ends connect protection circuit 15, and MCU microprocessor 1 connects the E of commutative signal
2PRQM EPROM 4.Behind the DSP digital signal processor processes signal in the MCU microprocessor 1, the electric signal after handling is exported to Dataplay movement 10 through GPIO interface in the MCU microprocessor 1 and I/O multiplexer.
Include IC piece U1 in the MCU microprocessor 1, include movement control section circuit 17, movement pin position circuit 16 in the Dataplay movement 10, the movement control section circuit 17 of Dataplay movement 10 connects movement pin position circuit 16, and the movement pin position circuit of Dataplay movement 10 connects the I/O multiplexer of MCU microprocessor 1.
Power supply 2 inserts power control circuit 3 circuits, adjusts each several part circuits needed operating voltage; By button 12 press the start key after, MCU microprocessor 1 begins to read E
2Boot in the PROM EPROM 4, the guiding machine system is started working.
When MP3 plays, MCU microprocessor 1 starts the playing program in the storer 14 earlier, remove to control the movement control section circuit 15 of DataPlay movement 10, read the mp3 file of DataPlay video disc, after MCU microprocessor 1 and voicefrequency circuit 8 backs from earphone output 7, simultaneously the relevant broadcast information of MP3 through MCU microprocessor 1 processes and displays on LCD display 11.
During FM radio reception, MCU microprocessor 1 is pressed system program operation back and is given operating instruction of FM radio reception 6 parts, and radio reception is started working, and exports 7 from earphone after MCU microprocessor 1 and voicefrequency circuit 8 processing.The relevant information of radio reception simultaneously through MCU microprocessor 1 processes and displays on LCD display 11.
Microphone 9, FM program of radio station signal carry out memory storage through voicefrequency circuit 8 processing and MCU microprocessor 1 processing write store 14 equally; at last after treatment from earphone output 7; in addition, protection circuit 15 can carry out suitable erasable protection to the stored contents of storer 14.
Computer is handled through MCU microprocessor 1 with after USB interface 5 is connected, thereby realizes the exchanges data of local memory 14 and DataPlay and computer.
Button 12 parts are responsible for the control operation of complete machine, and reset circuit 13 parts are by force complete machine to be reset to open state when system's reading of data is made mistakes.
DataPlay engine control mode explanation (, shown in Figure 3) as Fig. 2:
1., read the DATAPLAY register:
Under idle condition, the PIN3 of Dataplay movement 10, PIN5, PIN7, PIN8 must be in high level state; The control interface of the MCU microprocessor 1 master chip GPIO wherein of DSP framework is arranged to " reading " state;
PIN4, the PIN6 of configuration Dataplay movement 10 select the read register state;
The PIN3 of Dataplay movement 10 is dragged down, drag down PIN5 then equipment is arranged to read DPI-ADD;
PIN8 step-down Deng Dataplay movement 10 is arranged to read data bus with equipment.
2., write the DATAPLAY register:
Under idle condition, the PIN3 of Dataplay movement 10, PIN5, PIN7, PIN8 must be in high level state; The ACCFAST GPIO of MCU microprocessor 1 is arranged to " writing " state;
The PIN4 PIN6 of configuration Dataplay movement 10 selects to write buffer status;
PIN3 is dragged down, drag down PIN7 then equipment is arranged to write DPI-ADD;
PIN8 step-down Deng Dataplay movement 10 is arranged to write data bus with equipment.
3., select the DATAPLAY register mode:
Dataplay movement 10 data registers: the PIN4 of Dataplay movement 10, PIN6 drags down;
Dataplay movement 10 byte data registers: the PIN4 of Dataplay movement 10 drags down, and PIN6 draws high;
Dataplay movement 10 control registers/status register: the PIN4 of Dataplay movement 10 draws high, and PIN6 drags down.
Instruction process:
State in the fill order process transmits process flow diagram:
Beginning at first, whether Request System detection Dataplay movement 10 engines are in idle condition, if the 10 engine free time of Dataplay movement, MCU microprocessor 1 will be carried out making order just so, this making action just is quite simple, MCU microprocessor 1 at first is made as the first value of making to guarantee that address arrangement is correct with the control register of Dataplay movement 10, MCU microprocessor 1 writes numerical value the counter register (write low numerical value earlier and write high numerical value again) of Dataplay movement 10, and write the size of instruction bag, write the initiation command function then, in the command execution stage, MCU microprocessor 1 writes the data register of Dataplay movement 10 with numerical value, makes Dataplay movement 10 engines can carry out this order.In first making coomand mode, DP is with the control/Data Position 1 of the status register of Dataplay movement 10 and will read and write a zero clearing.At the data input phase, the engine continuation is carried out the piece action (these byte numbers are by obtaining in the data register) that reads and writes data and is finished up to read-write motion.Be first making reading and writing data stage, DP will write the byte number of needs read-write in the counter register, will control/the data bit zero clearing, and with the read and write position height, the command in the data register/state interrupt request position height next.To provide KP engine internal status information and mark in the state processing stage
In first making state processing stage, the control/data bit of the status register of DP and read and write position height are provided with control data and order data/state request position then in status register;
The control of the DPS GPIO pin realization of MCU microprocessor 1 to engine is passed through in order;
Below be typical command process:
Order beginning → order bag → data transmission → end
1., making data module transmission just:
Use DPICMD-DEVICE-INFO (DPI device directive message registers position), can learn the block size that can be read, use EPICMD-SET-PARAMETER (DPI is provided with parameter instruction message registers position) order, can be with the engine of block size announcement, when in making read-write just during the stage, Dataplay movement 10 engines will be set to the value of DPICMD-SET-PARAMETER in the counter register of Dataplay movement 10;
The FAT16 of Dataplay movement 10 is simple ATAPI orders, and the DP engine is supported the simplification command list (CLIST).
2., detecting engine:
When external power source 2 is given the power supply of Dataplay movement 10 engines, whether it is at first detected has media file to exist on the video disc, then mode bit is arranged to busy condition, if there is media file to exist, Dataplay movement 10 engines will be the information stores that is detected in the FLASH the inside so that engine can be in the state that takes orders of preparing.Utilization DPICMD-POWER-CONTROL (instruction of DPI control power supply) order, electric weight will be arranged with ascending order.
3., utilization signature electric source modes
Below be that MCU microprocessor 1 need not to wait for that the zero clearing of BUSY position gets final product the using method of fast detecting equipment,
1. hardware reset;
2. when power supply 2 power supply, power supply open 2 open after, the function that will power in 500MS writes control register;
3. reading of data and counter register detect 0 * AA and 0 * 55 signal then respectively;
4. waiting status register zero clearing.
4., the read-write mode of 512 bytes is set:
1. in the control register of Dataplay movement 10, " Status IRQ ENABLE " put height;
2. in the status register of Dataplay movement 10, " Cmd/Data/Status IRQ " " IRQ attention " put height;
3. in data bus, write 0 * 5555;
4. the pin that DP powered on drags down;
5. enable extl interruption really among the DP.
5., data transmission sequential:
Dataplay movement 10 engines have special access mode, and it must be in state of activation when requiring DS pin and read-write pin read/write access data.And sequential requires very strict with to guarantee that data with transmission synchronously.All sequential control and time-delay all reach standard by software control.As shown below:
Above illustrated embodiment is only with for conveniently illustrating the utility model, be not that the utility model is done any pro forma restriction, have in the technical field under any and know the knowledgeable usually, if in the scope that does not break away from technical characterictic that the utility model is carried, utilize technology contents that the utility model discloses to do the local equivalent embodiment that changes or modify, and do not break away from technical characterictic content of the present utility model, all still belong in the scope of the utility model technical characterictic.