CN2876896Y - Controller, micro-host computer and duplex role electronic dictionary - Google Patents
Controller, micro-host computer and duplex role electronic dictionary Download PDFInfo
- Publication number
- CN2876896Y CN2876896Y CN 200620001767 CN200620001767U CN2876896Y CN 2876896 Y CN2876896 Y CN 2876896Y CN 200620001767 CN200620001767 CN 200620001767 CN 200620001767 U CN200620001767 U CN 200620001767U CN 2876896 Y CN2876896 Y CN 2876896Y
- Authority
- CN
- China
- Prior art keywords
- electronic dictionary
- peripherals
- controller
- microprocessor
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Abstract
The utility model discloses a controller, micro-host computer and duplex role electronic dictionary for electronic dictionary; wherein, the controller (300) comprises an OTG transceiver (306), a USB transceiver (312), a SIE (318), a host computer controller (324), a principal and subordinate controller (330), a subordinate computer controller (336), a host computer control register (342), a subordinate computer control register (348), a bus interface (354) and a power supply generation and control circuit (360). When connected with peripheral equipments, the duplex role electronic dictionary is used as a subordinate computer or a restricted host computer by means of the above arrangements of the controller, and reciprocally communicates with the controller; when used as a host computer, the duplex role electronic dictionary shuts VBUS in response to requiring dialog protocol; when used as a subordinate computer, the duplex role electronic dictionary starts the requiring dialog protocol for arousing the host computer.
Description
Technical field
The utility model relates to electronic dictionary, relates in particular to the control device, the micromainframe that are used for electronic dictionary, and the dual role electronic dictionary.
Background technology
At present, existing electronic dictionary, volume is little, cost is low, power consumption is little, easy to use, has obtained widespread use in recent years, becomes the essential items of people's work and study day by day.But the interface of electronic dictionary is difficult to directly connect peripherals, and peripherals controlled, the function of electronic dictionary is compared with computing machine to fall far short, and computing machine can directly connect and control peripheral devices, for example directly connect SD, MM, CF, but its power consumption height, low side consumer product such as electronic dictionary almost can't reach the driving force of computing machine, and this also is governor circuit is realized computer function in the consumer product field difficult point place.
The utility model content
One of technical problem to be solved in the utility model is to provide a kind of control device, micromainframe and dual role electronic dictionary that is used for electronic dictionary, it can make this electronic dictionary have dual role (Dual-role), both having can be used as peripherals uses, be connected on PC (PC) etc., also can be used as limited main frame and use, realize the data transmission of connected peripherals.
According to first aspect of the present utility model, a kind of control device that is used for electronic dictionary, comprise: first transceiver, be used for receiving data from peripherals, and to described peripherals transmission order, comprise a pocket AB (Mini-A) socket, between described electronic dictionary and described peripherals, provide electric interfaces; Second transceiver is used for carrying out the reception of data and sending data with described peripherals; Serial interface engine is used for the transmission and the reception of processing transactions data, and described serial interface engine is connected with described second transceiver with described first transceiver, and the data that receive from described first transceiver and described second transceiver are changed; Master-slave controller is used for carrying out the initialization setting when described electronic dictionary is connected with peripherals, can support main frame matchmaking protocol and session request agreement, is connected with described first transceiver; Console controller, be connected with described master-slave controller, when setting by described master-slave controller, when described electronic dictionary uses as main frame, be used to detect the connection of described peripherals and remove, manage communicating by letter between described electronic dictionary and the described peripherals, control is supplied with to the power supply of described peripherals, communicate with described tandem engine interface; From machine controller, be connected with described master-slave controller, when setting by described master-slave controller, when described electronic dictionary uses as slave, be used to detect, respond the incident of connectivity port, the mode of storage transmission data is provided, under the control of described master-slave controller, receives the data that come from described first transceiver with use; The host computer control register, be connected with described console controller with system bus, when the described electronic dictionary of described master-slave controller is set to main frame, by the described host computer control register of the microprocessor access of described electronic dictionary, realize that described microprocessor is to the reading and writing of described control device, the operation of setting address; The slave control register is connected from machine controller with described with described system bus, when the described electronic dictionary of described master-slave controller is set to slave, is used to data, the error check information of storing interim data, the end points of enabling, receiving byte; Bus interface is used for information interaction, comprises Microprocessor Interface, described Microprocessor Interface is connected with the microprocessor of electronic dictionary, communicate with described microprocessor, will send to described control device, make it carry out interrupt control from the interrupt instruction of described microprocessor; And power supply generation and control circuit, be connected with described system bus, be used for the generation and the control of power supply, comprise the charge pump of built-in power power supply.
Wherein, first transceiver comprises the OTG transceiver, meets USB 2.0OTG (On TheGo) standard; Second transceiver comprises the USB transceiver, meets the arbitrary standard among the USB.
Carry out the device initialize setting by master-slave controller, be set to host mode or be set to slave mode.Master-slave controller meets USB 2.0OTG standard, supports the function of USB 2.0OTG.
When described electronic dictionary is connected with described peripherals, setting by described master-slave controller, making electronic dictionary both can be used as slave uses, also can be used as main frame (limited main frame) uses, can mutual communication between described electronic dictionary and the described peripherals, when described electronic dictionary uses as main frame, can close VBUS with the response request session protocol; When described electronic dictionary uses as slave, can start the queued session agreement with wake-up master.
Structure according to the utility model second aspect, on the basis of the structure of first aspect, described master-slave controller comprises storer, when the batch data that adopts when carrying out the lot of data exchange between described electronic dictionary and the described peripherals transmits, list structure (Bulk List Structure) arrives described console controller through described memory mapped in batches, to reduce taking described microprocessor; Described bus interface also comprises direct memory access (DMA) interface (below be called DMA interface, DMA:Direct Memory Access), can be there not being described microprocessor to realize data transmission under interfering, to reduce taking described microprocessor.
By storer and DMA interface are set, not only have the beneficial effect identical with the utility model of first aspect, also realized hardware handles scheduling and transport layer protocol simultaneously, comprise the data-switching that realizes enhanced performance, substantial and Bandwidth Management.When the also offhand reception of error of transmission or equipment transmission occurring, with transmitting apparatus negative response NAK (handshake packet is represented negative replying).NAK can be the huge factor of performance and systematic influence, by storer and DMA interface are set, when the batch data that adopts when carrying out the lot of data exchange between electronic dictionary and the peripherals transmits, list structure arrives console controller through memory mapped in batches, so that retry that produces because of the NAK of peripherals and transmission descriptor (TD) are all in the hardware inter-process, do not need the system bus continuous access, thereby reduced terminal, reduced taking microprocessor MCU.Improved the host performance of electronic dictionary as the system of main frame use.Simultaneously, reduced the time of transferring large number of data content.Thereby improved handling capacity greatly from machine controller, promoted user experience.
Structure according to the third aspect of the present utility model, on the basis of the control device structure of above-mentioned first aspect or second aspect, also comprise voltage regulator, described voltage regulator links to each other with described system bus, when described electronic dictionary uses as main frame, can adjust and support the desired output current of a large amount of peripherals.
According to the structure of the third aspect of the present utility model, described voltage regulator is the current foldback circuit that is used for non-OTG configuration.
Structure according to fourth aspect of the present utility model, on the basis of above-mentioned first aspect control device structure of any to the third aspect, also comprise error-detecting and recovery controller, described error-detecting links to each other with described system bus with recovery controller, when mistake appears in Physical layer, can detect most possible mistakes reliably, and carry out mistake and recover.
Structure according to the 5th aspect of the present utility model, on the basis of above-mentioned first aspect control device structure of any to the fourth aspect, also comprise clock generator, the phaselocked loop that described clock generator comprised, the frequency range of the crystal oscillator of described phaselocked loop is 12MHz-48MHz.
Though electronic dictionary can use the 12MHz crystal oscillator, find in actual use.If the crystal oscillator quality is not so good.Circuit stability will be poor, the therefore preferred 48MHz crystal oscillator that uses.
Above-mentioned purpose realizes that by the micromainframe that is used for electronic dictionary of the 6th aspect of the present utility model described micromainframe comprises: microprocessor is used to control each device; Display drive apparatus links to each other with described microprocessor, is used to drive display screen; Memory storage links to each other with described microprocessor, is used for storing various information; Finger-impu system is realized man-machine interaction; The power supply treating apparatus links to each other with described microprocessor, is used for power supply is handled; And above-mentioned arbitrary control device.
According to the structure of the micromainframe of the utility model the 6th aspect, its beneficial effect is identical with above-mentioned control device.
Above-mentioned purpose realizes by the electronic dictionary of the 7th aspect of the present utility model, described electronic dictionary comprises display screen and terminal body, in described terminal body, be provided with above-mentioned any control device or above-mentioned micromainframe, when described electronic dictionary is connected with peripherals, setting by described master-slave controller, described electronic dictionary both can be used as slave and had used, also can be used as main frame uses, can mutual communication between described electronic dictionary and the described peripherals, when described electronic dictionary uses as main frame, can close VBUS with the response request session protocol; When described electronic dictionary uses as slave, can start the queued session agreement with wake-up master.
According to the structure of the micromainframe of the utility model the 7th aspect, its beneficial effect is identical with above-mentioned control device.
In addition, described peripherals comprises: mouse, camera, video camera, electronic dictionary, storage card, keyboard, joystick or hard disk.Enumerate by attachable peripherals inventory (Targeted Peripheral List) as the electronic dictionary of dual role function.Wherein, preferred described storage card is the storage card that is selected from the type that comprises following group: SIM, CF, MM and SD.
In addition, preferred described electronic dictionary is the Wenquxing electronic dictionary.
The beneficial effects of the utility model are, can make special portable terminal for example electronic dictionary move towards standard N otebook, realize the lifting of a matter of consumer portable terminal.Thereby can be small and exquisite, on the low basis of power saving, cost, add the notion of PC again at portable terminal, allow the client obtain the theory of PC.Make the portable terminal of low side have the function of notebook computer, can be used as main frame external peripherals is controlled.
When external peripherals is camera, video camera, can make this portable terminal a tractor serves several purposes.When external peripherals is mouse, can give the sensation of Notebook.When external peripherals is keyboard, can overcome the shortcoming of the existing keyboard of electronic dictionary, use more quick.And portable terminal is when for example being electronic dictionary, the service that itself has very big advantage and do at education market, the providing of the providing of learning materials, copyright dictionary, and the embedding of individualized education system etc. for example, and these exactly notebook do not accomplish.
Description of drawings
Fig. 1 (A) is the synoptic diagram of the communication system 100 of the traditional USB annexation of expression; Fig. 1 (B) is the synoptic diagram of communication system 200 of the annexation of expression USB OTG.
Fig. 2 is the synoptic diagram of USB OTG principal and subordinate role's setting.
Fig. 3 is the block diagram of the control device 300 of an embodiment of the utility model.
Fig. 4 is the block diagram of the control device 400 of another EXAMPLE Example of the utility model.
Fig. 5 is the block diagram of the control device 500 of another EXAMPLE Example of the utility model.
Fig. 6 is the block diagram of the control device 600 of another EXAMPLE Example of the utility model.
Fig. 7 is the block diagram of the control device 700 of another EXAMPLE Example of the utility model.
Fig. 8 be the utility model the block diagram of related micromainframe 800.
Fig. 9 be when dual role electronic dictionary 1000 as main frame uses, peripherals 2000 connects during also as electronic dictionary stereographic map.
Embodiment
Below, with reference to accompanying drawing, preferred embodiment of the present utility model is described.
In addition, the embodiment of the following stated is the preferred concrete example of the utility model, therefore, with technical various preferred qualifications, but in the following description, short of special qualification description of the present utility model, scope then of the present utility model is not limited to these modes.
1.USB?2.0OTG
USB1.1 and USB2.0 become a kind of between PC and peripherals the general-purpose interface of swap data, increasing portable peripheral uses USB interface to communicate by letter with PC.But usb communication can only take place between main frame and peripherals, and will become the PC main frame, and peripherals must possess following characteristic: can store the large number quipments driver 1.; 2. can provide a large amount of electric currents; 3. A series host connector socket.Can't realize direct communication each other between present most of peripherals.Allowing most portable sets possess above-mentioned all characteristics is not and actual.In many cases, portable set interconnects does not need these characteristics.
In order to break away from dependence fully to a certain extent to PC, have host function to a certain degree, just developed USB 2.0OTG (USB 2.0On-The-Go) standard.The USB2.0OTG standard is replenishing the USB2.0 standard, allow peripherals to become equipment, both can be used as limited main frame, also can be used as slave with dual role function, each other can mutual communication, and can consult to determine which equipment is as main frame according to actual conditions.
Fig. 1 (A) is the synoptic diagram of the communication system 100 of the traditional USB annexation of expression; Fig. 1 (B) is the synoptic diagram of communication system 200 of the annexation of expression USB OTG.
In Fig. 1 (A), electronic dictionary A, B are as peripherals, by the exchanges data of USB AN connector Standard-A and realization of Mini-B connector and PC.
In Fig. 1 (B), electronic dictionary A, B both can be used as main process equipment as dual role equipment, finished the function of main frame (host), to the Mini-B connector, realize point-to-point real-time Communication for Power and the exchanges data of electronic dictionary A by Mini-A to electronic dictionary B; Also can be used as peripherals, to the Mini-A connector, finish data transmission with electronic dictionary B by Mini-B.Equally, electronic dictionary B also is like this.
Fig. 2 is the synoptic diagram of USB OTG principal and subordinate role's setting.
USB OTG is by five pin interfaces and five line cable transmission datas.Except traditional " VBUS ", " D+ ", " D-", " GND " four pins, the 5th pin is " ID ", and the ID pin has determined initialized principal and subordinate role: in the Mini-A plug, and ID short circuit ground connection, the equipment that is connected is initialized to main frame; In the Mini-B plug, ID is unsettled, and the equipment that is connected is initialized to slave (peripherals).
Under software control, principal and subordinate role also can utilize main frame matchmaking protocol HNP (HostNegotiation Protocol) to exchange.HNP is a kind of agreement (being actually the counter-rotating of cable) that is used for realizing Adevice and Bdevice main frame/slave conversion.The result of master/slave machine orthofunction shows in the following process: (1) utilizes pull-up resistor to send a signal to slave.(2) Adevice can be provided with " HNP Enable " characteristic on Bdevice.(3) Bdevice draws on disconnecting.(4) Adevice links to each other with pull-up resistor, shows that Adevice is subordinated to slave.(5) Adevice powers to Vbus.(6) Bdevice detect Adevice on draw.(7) Adevice resets/enumerate/uses.
2. control device
2.1 first embodiment
Fig. 3 is the block diagram of the control device 300 of the utility model first embodiment.Control device 300 is built in the portable terminal 1000 (referring to Fig. 9).As shown in Figure 3, control device 300 comprises: OTG transceiver (first transceiver) 306, USB transceiver (second transceiver) 312; SIE (serial interface engine: Serial Interface Engine) 318; Console controller 324; Master-slave controller 330; From machine controller 336; Host computer control register 342; Slave control register 348; Microprocessor Interface 354; And power supply takes place and control circuit 360.
Wherein, OTG transceiver 306 is used for receiving data from peripherals, and sends order to described peripherals, comprises a Mini-AB socket (pocket AB socket), provides electric interfaces between electronic dictionary and peripherals.
SIE 318, are used for the transmission and the reception of processing transactions data, are connected with USB transceiver 312 with OTG transceiver 306, and the data that receive from OTG transceiver 306 and USB transceiver 312 are changed.
Master-slave controller 330 with OTG transceiver 306, console controller 324, be connected with system bus from machine controller 336, is used for carrying out the initialization setting when electronic dictionary is connected with peripherals, can support main frame matchmaking protocol HNP and session request agreement SRP.
From machine controller 336, when setting, when electronic dictionary uses as slave by master-slave controller 330, be used to detect, respond the incident of connectivity port, the mode of storage transmission data is provided, under the control of master-slave controller 330, receives the data that come from OTG transceiver 306 with use.
Host computer control register 342, be connected between system bus and the console controller 324, when master-slave controller 330 electronic dictionaries were set to main frame, microprocessor was realized reading and writing, the setting address function of microprocessor to control device 300 by visit host computer control register.
Power supply takes place and control circuit 360, is connected with described system bus, is used for the generation and the control of power supply, comprises the charge pump that is used for the built-in power power supply.
When electronic dictionary is connected with peripherals, setting by control device 300, electronic dictionary both can be used as slave and had used, also can be used as main frame uses, can mutual communication between electronic dictionary and the peripherals, when electronic dictionary uses as main frame, can close VBUS with the response request session protocol; When electronic dictionary uses as slave, can start the queued session agreement with wake-up master.
2.2 second embodiment
Fig. 4 is the block diagram of another control device 400 of the present utility model.To with Fig. 3 in identical device mark with identical Reference numeral, omit explanation at this to it.
As shown in Figure 4, in control device 400, master-slave controller 330 comprises storer 330-1, when the batch data that carries out between electronic dictionary and the peripherals adopting the lot of data clearing house transmits, list structure is mapped to console controller 324 through storer 330-1 in batches, so that retry that produces because of peripherals negative response (NAK) and transmission descriptor (TD) are all in the hardware inter-process, do not need the system bus continuous access, thereby reduced terminal, reduced taking microprocessor MCU; Bus interface 354 also comprises DMA interface 354-2, can be not having to realize data transmission under the microprocessor MCU interference, to reduce taking microprocessor MCU.
Storer 330-1 preferably includes RAM (Random Access Memory: random access memory).
By storer 330-1 and DMA interface 354-2 are set, not only have the beneficial effect identical with first embodiment, also realized hardware handles scheduling and transport layer protocol simultaneously, comprise the data-switching that realizes enhanced performance, substantial and Bandwidth Management.When the also offhand reception of error of transmission or equipment transmission occurring, with transmitting apparatus negative response NAK (handshake packet is represented negative replying).NAK can be the huge factor of performance and systematic influence, by storer and DMA interface are set, when the batch data that adopts when carrying out the lot of data exchange between electronic dictionary and the peripherals transmits, list structure (Bulk List Structure) is mapped to console controller 324 through storer 330-1 in batches, so that retry that produces because of the NAK of peripherals and transmission descriptor (TD) are all in the hardware inter-process, do not need the system bus continuous access, thereby reduced terminal, reduced taking microprocessor MCU.Improved the host performance of electronic dictionary as the system of main frame use.Simultaneously, reduced the time of transferring large number of data content.Thereby improved handling capacity greatly from machine controller, promoted user experience.
2.3 the 3rd embodiment
Fig. 5 is the block diagram of another control device 500 of the present utility model.To with Fig. 4 in identical device mark with identical Reference numeral, omit explanation at this to it.
Control device of the present utility model can also be following structure, comprises the structure of the control device 300 of first embodiment, in addition also comprises voltage regulator 566.Voltage regulator 566 takes place to link to each other with control circuit 360 with power supply; when described electronic dictionary uses as main frame; voltage regulator 566 is used for the current foldback circuit of non-OTG configuration, can adjust to the charge drive device of 5V by built-in 3.3V and support the desired output current of a large amount of peripherals.
2.4 the 4th embodiment
As shown in Figure 5, control device 500 comprises the structure of second embodiment 400, in addition also comprises voltage regulator 566.Its characteristics are identical with the 3rd above-mentioned embodiment, in the explanation of this omission to it.
2.5 the 5th embodiment
Fig. 6 is the block diagram of another control device 600 of the present utility model.To with Fig. 5 in identical device mark with identical Reference numeral, omit explanation at this to it.
As shown in Figure 6, control device of the present utility model can also be following structure, except the structure of the control device 300 that comprises first embodiment, also comprises error-detecting and recovery controller 672.Error-detecting links to each other with system bus with recovery controller 672, and when mistake appearred in Physical layer, error-detecting and recovery controller 672 can detect most possible mistakes reliably, and carried out mistake and recover.
2.6 the 6th embodiment
As shown in Figure 6, control device of the present utility model can also be following structure, except the structure of the control device 400 that comprises second embodiment, also comprises error-detecting and recovery controller 672.Its function is identical with the 5th embodiment with structure, in the explanation of this omission to it.
2.7 the 7th embodiment
As shown in Figure 6, control device of the present utility model can also be following structure, except the structure of the control device that comprises the 3rd embodiment, also comprises error-detecting and recovery controller 672.Its function is identical with the 5th embodiment with structure, in the explanation of this omission to it.
2.8 the 8th embodiment
As shown in Figure 6, except the structure of the control device that comprises the 4th embodiment, also comprise error-detecting and recovery controller 672.Its function is identical with the 5th embodiment with structure, in the explanation of this omission to it.
2.9 the 9th embodiment
Fig. 7 is the block diagram of another control device 700 of the present utility model.To with Fig. 6 in identical device mark with identical Reference numeral, omit explanation at this to it.
As shown in Figure 7, control device of the present utility model can also be following structure, except the structure of the control device 300 that comprises first embodiment, also comprises clock generator 778.Clock generator 778 comprises phaselocked loop, and the frequency range of the crystal oscillator of phaselocked loop is 12MHz-48MHz.
Though electronic dictionary can use the 12MHz crystal oscillator, find in actual use.If the crystal oscillator quality is not so good.Circuit stability will be poor, the therefore preferred 48MHz crystal oscillator that uses.
2.10 the tenth embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, except the structure of the control device 400 that comprises second embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.11 the 11 embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, on the basis of the structure of above-mentioned the 3rd embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.12 the 12 embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, on the basis of the structure of above-mentioned the 4th embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.13 the 13 embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, on the basis of the structure of above-mentioned the 5th embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.14 the 14 embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, on the basis of the structure of above-mentioned the 6th embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.15 the 15 embodiment
As shown in Figure 7, control device of the present utility model can also be following structure, on the basis of the structure of above-mentioned the 7th embodiment, also comprises clock generator 778.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
2.16 the 16 embodiment
As shown in Figure 7, control device 700 also comprises clock generator 778 except the structure of the control device 600 that comprises the 8th embodiment.Its characteristics are identical with the 9th embodiment with function, in the explanation of this omission to it.
3. micromainframe
Fig. 8 is the structured flowchart that is used for the micromainframe 800 of electronic dictionary.As shown in Figure 8, micromainframe 800 comprises: display drive apparatus 810 is used to drive display screen; Memory storage 820 is used for storing various information; Finger-impu system 830 is realized man-machine interaction; Power supply treating apparatus 840 is used for power supply is handled; And microprocessor 850, be used to control each device; Also comprise above-mentioned any control device.Display drive apparatus 810, memory storage 820, finger-impu system 830, power supply treating apparatus 840, control device all are connected with microprocessor 850, and are subjected to the control of microprocessor 850.
When electronic dictionary 1000 is connected with peripherals 2000, setting by master-slave controller 330, electronic dictionary 1000 both can be used as slave and had used, also can be used as main frame uses, can mutual communication between electronic dictionary 1000 and the peripherals 2000, when electronic dictionary 1000 uses as main frame, can close VBUS with the response request session protocol; When electronic dictionary 1000 uses as slave, can start the queued session agreement with wake-up master.
4. electronic dictionary
When electronic dictionary 1000 is connected with peripherals 2000, setting by master-slave controller 330, electronic dictionary 1000 both can be used as slave and had used, also can be used as main frame uses, can mutual communication between electronic dictionary 1000 and the peripherals 2000, when electronic dictionary 1000 uses as main frame, can close VBUS with the response request session protocol; When electronic dictionary 1000 uses as slave, can start the queued session agreement with wake-up master.
In addition, peripherals 2000 comprises: mouse, camera, video camera, electronic dictionary, storage card, keyboard, joystick or hard disk.Enumerate by attachable peripherals inventory (Targeted Peripheral List) as the electronic dictionary of dual role function.Wherein, preferred storage card is the storage card that is selected from the type that comprises following group: SIM, CF, MM and SD.
5. communication process
MCU 850 is integrated into ROM, RAM, CPU, I/O in the same chip, does various combination control for different application scenarios, and microprocessor has been gone through 4,8 through constantly studying in recent years, developing, till now 16 and 32 even 64.The MCU that the utility model is preferred 16.
Realization of Communication mainly realizes by MCU 850 visit slave control registers 348 and host computer control register 342 between electronic dictionary 1000 and the peripherals 2000.(step 1) supposes that electronic dictionary 1000 with host mode work, judges whether to interrupt (step 2) afterwards, and when taking place to interrupt, control device carries out Interrupt Process: send configuration-direct 1. at first to carry out device initialize; 2. receiving equipment status information; 3. configuration device; 4. analysis address; 5. supply power (step 3), whether inquire about peripherals afterwards has data to send (step 4), when data send, the transmitting and receiving data order, allow peripherals to send data (step 5), when not having data to send, whether the query facility bus hangs up that (step 6) is inquired about the peripherals usb bus afterwards and whether hung up (step 7); When conclusion is when hanging up, then equipment enters suspended state (step 8) is if conclusion is then returned step 2 for not.
In addition, the realization of electronic dictionary host function is finished host function by terminal scheduling.Usb bus is in work, and system is still according to specific sequential and protocol specification operation.To the access of USB device with remove, then main frame and peripherals are carried out a series of message exchange according to the order of prior agreement by the level change-detection on the data line in system, that is: main frame is restarted peripherals; Main frame is powered to peripherals; Peripherals is by default address 0 and main-machine communication; Main frame distributes the address to peripherals; The a series of functions and the device descriptor of host requests peripherals.
With the Wenquxing electronic dictionary is example, usually under the state, the Wenquxing electronic dictionary is to be under peripherals (the being common USB) state, when inserting PC, the 5V power supply of computing machine is received on the VBUS, and the Wenquxing electronic dictionary switches to power supply the USB power supply automatically, and this moment, the Wenquxing electronic dictionary can detect the USBDET signal, to oneself be changed to the Device state, realize the exchanges data of PC and Wenquxing this moment by BTYPE equipment; When Wenquxing was in the Host state, Wenquxing provided the Device equipment of 5v power supply to the outside by AC/DC converter to ATYPE equipment, carried out the Host function.Switch when finishing automatically when Devic and Host function, be called reciprocity function technology, be called for short OTG miniHOST or OTG HOST by Wenquxing equipment.
In addition, the utility model is not limited to the content of the foregoing description, by the embodiment that above-mentioned example of the present utility model is described, and can appropriate combination, perhaps distortion or improvement according to purposes.The mode that obtains through this combination, distortion or improvement is also contained in the protection domain of the present utility model, and this content from be documented in claims can be derived apparently.For example, in the above-described embodiment, portable terminal, peripherals, storage card all are not limited to cited, other also applicable to the utility model.
Claims (9)
1. a control device that is used for electronic dictionary is characterized in that, comprising:
First transceiver is used for receiving data from peripherals, and sends order to described peripherals, comprises a pocket AB socket, and described pocket AB socket is used for providing electric interfaces between described electronic dictionary and described peripherals;
Second transceiver is used for carrying out the reception of data and sending data with described peripherals;
Serial interface engine is used for the transmission and the reception of processing transactions data, and described serial interface engine is connected with described second transceiver with described first transceiver, and the data that receive from described first transceiver and described second transceiver are changed;
Master-slave controller is used for carrying out the initialization setting when described electronic dictionary is connected with described peripherals, can support main frame matchmaking protocol and session request agreement, is connected with described first transceiver;
Console controller, be connected with described master-slave controller, when setting by described master-slave controller, when described electronic dictionary uses as main frame, be used to detect the connection of described peripherals and remove, manage communicating by letter between described electronic dictionary and the described peripherals, control is supplied with to the power supply of described peripherals, communicates with described tandem engine interface;
From machine controller, be connected with described master-slave controller, when setting by described master-slave controller, when described electronic dictionary uses as slave, be used to detect, respond the incident of connectivity port, the mode of storage transmission data is provided, under the control of described master-slave controller, receives the data that come from described first transceiver with use; The host computer control register is connected with described console controller with system bus,
When the described electronic dictionary of described master-slave controller is set to main frame,, realize that described microprocessor is to the reading and writing of described control device, the operation of setting address by the described host computer control register of the microprocessor access of described electronic dictionary;
The slave control register is connected from machine controller with described with described system bus, when the described electronic dictionary of described master-slave controller is set to slave, is used to data, the error check information of storing interim data, the end points of enabling, receiving byte;
Bus interface is used for information interaction, comprises Microprocessor Interface, described Microprocessor Interface is connected with the microprocessor of electronic dictionary, communicate with described microprocessor, will send to described control device, make it carry out interrupt control from the interrupt instruction of described microprocessor; And
Power supply takes place and control circuit, is connected with described system bus, is used for the generation and the control of power supply.
2. control device according to claim 1 is characterized in that:
Described master-slave controller comprises storer, when the batch data that adopts when carrying out the lot of data exchange between described electronic dictionary and the described peripherals transmits, list structure arrives described console controller through described memory mapped in batches, to reduce taking described microprocessor; And
Described bus interface also comprises the direct memory access (DMA) interface, can be not having to realize data transmission under the described microprocessor interference, to reduce taking described microprocessor.
3. control device according to claim 1 and 2, it is characterized in that: also comprise voltage regulator, described voltage regulator takes place to link to each other with control circuit with described power supply, when described electronic dictionary uses as main frame, can adjust and support the desired output current of a large amount of peripherals.
4. control device according to claim 3, it is characterized in that: also comprise error-detecting and recovery controller, described error-detecting links to each other with described system bus with recovery controller, when mistake appears in Physical layer, can detect most possible mistakes reliably, and carry out mistake and recover.
5. control device according to claim 4 is characterized in that: also comprise clock generator, and the phaselocked loop that described clock generator comprised, the frequency range of the crystal oscillator of described phaselocked loop is 12MHz-48MHz.
6. micromainframe that is used for electronic dictionary comprises:
Microprocessor is used to control each device;
Display drive apparatus links to each other with described microprocessor, is used to drive display screen;
Memory storage links to each other with described microprocessor, is used for storing various information;
Finger-impu system links to each other with described microprocessor, is used to realize man-machine interaction; And
The power supply treating apparatus; Link to each other with described microprocessor, be used for power supply is handled,
It is characterized in that also comprising:
According to each described control device in the claim 1 to 5, it links to each other with described microprocessor.
7. electronic dictionary, comprise display screen and terminal body, it is characterized in that: in described terminal body, be provided with according to each described control device in the claim 1 to 5, when described electronic dictionary is connected with peripherals, setting by described master-slave controller, described electronic dictionary both can be used as slave and had used, also can be used as main frame uses, can mutual communication between described electronic dictionary and the described peripherals, when described electronic dictionary uses as main frame, can close VBUS with the response request session protocol; When described electronic dictionary uses as slave, can start the queued session agreement with wake-up master.
8. according to claim 6 or 7 described electronic dictionaries, it is characterized in that: described peripherals comprises: mouse, camera, video camera, electronic dictionary, storage card, keyboard, joystick or hard disk.
9. electronic dictionary according to claim 8 is characterized in that: described storage card is the storage card that is selected from the type that comprises following group: SIM, CF, MM and SD.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200620001767 CN2876896Y (en) | 2006-01-20 | 2006-02-08 | Controller, micro-host computer and duplex role electronic dictionary |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610002066 | 2006-01-20 | ||
CN200610002066.X | 2006-01-20 | ||
CN 200620001767 CN2876896Y (en) | 2006-01-20 | 2006-02-08 | Controller, micro-host computer and duplex role electronic dictionary |
Publications (1)
Publication Number | Publication Date |
---|---|
CN2876896Y true CN2876896Y (en) | 2007-03-07 |
Family
ID=37820133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200620001767 Expired - Fee Related CN2876896Y (en) | 2006-01-20 | 2006-02-08 | Controller, micro-host computer and duplex role electronic dictionary |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN2876896Y (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487995A (en) * | 2014-10-03 | 2016-04-13 | 钰群科技股份有限公司 | Extensible host controller and operation method thereof |
CN109491932A (en) * | 2017-09-11 | 2019-03-19 | 三星电子株式会社 | Electronic equipment and method for being communicated with external electronic device |
-
2006
- 2006-02-08 CN CN 200620001767 patent/CN2876896Y/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487995A (en) * | 2014-10-03 | 2016-04-13 | 钰群科技股份有限公司 | Extensible host controller and operation method thereof |
CN105487995B (en) * | 2014-10-03 | 2018-12-14 | 钰群科技股份有限公司 | Extend host controller and its operating method |
CN109491932A (en) * | 2017-09-11 | 2019-03-19 | 三星电子株式会社 | Electronic equipment and method for being communicated with external electronic device |
CN109491932B (en) * | 2017-09-11 | 2023-10-13 | 三星电子株式会社 | Electronic device and method for communicating with an external electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7523338B2 (en) | Apparatus and method to support USB enumeration of a bus powered handheld device | |
EP1775652B1 (en) | Apparatus and method to support USB enumeration of a BUS powered handheld device | |
US20090013103A1 (en) | Data sharing and transfer systems and methods | |
US20030229749A1 (en) | Data transfer control device, electronic equipment, and data transfer control method | |
US10725949B2 (en) | Slave-to-slave direct communication | |
JP2004334417A (en) | Data transfer control device, electronic device and data transfer control method | |
CN2876896Y (en) | Controller, micro-host computer and duplex role electronic dictionary | |
US7359996B2 (en) | Data transfer control device, electronic equipment, and data transfer control method | |
US7469304B2 (en) | Data transfer control device, electronic equipment, and method for a data transfer through a bus, the data transfer control device including a register and a packet buffer that are commonly used during a host operation and a peripheral operation | |
CN1659533A (en) | Bus system, station for use in a bus system, and bus interface | |
TWI528161B (en) | Data transmitting system and data transmitting method | |
CN109582374A (en) | A kind of electronic equipment sleep control method, system and electronic equipment and storage medium | |
CN102693203A (en) | Embedded USB (universal serial bus) host | |
CN101299208B (en) | Double-mode general-purpose serial bus equipment and control method thereof | |
CN202939603U (en) | Externally-arranged data processing device | |
KR20120134918A (en) | Electronic apparatus including a plurality of processors | |
CN206863724U (en) | The network drive of printer | |
CN109557846A (en) | Detect identification circuit, its detection recognition method and electronic equipment | |
CN108965368A (en) | Data management circuit with network function and data management method based on network | |
CN201869223U (en) | Machine to machine terminal, communication module and data sending device | |
CN1841352A (en) | Extension apparatus and method for computer host | |
CN1967515A (en) | Host access interface and implement method thereof | |
TW201348921A (en) | Docking station of electronic device | |
CN1581121A (en) | Semicondustor storage device having host system operation function | |
CN104679128A (en) | Handheld wireless electronic reading adapter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070307 Termination date: 20140208 |