Embodiment
Below in conjunction with embodiment the present invention is done further description.
Like Fig. 1, shown in Figure 5, a kind of audio playing apparatus that is provided with the plug-in card deck comprises amplifirer, control module and general input/output interface, and amplifirer is connected with control module with general input/output interface; Also be provided with the SD/MMC deck, be provided with the SD/MMC card connector in the said SD/MMC deck; The switch of a link control module is set at least, through one or more pin positions of switch control SD/MMC card connector and being connected of amplifirer and one or more pin positions of general input/output interface.The present invention is provided with a card insertion base on the basis of existing digital audio file playing device (like mp3, mp4 player or the like); One end and the exterior of SD/MMC deck.When deck inserts the FM card, make it can receive and play the FM broadcast program.As shown in Figure 1, audio playing apparatus also comprises display, memory, keyboard, and said control module comprises processor (CPU), decoder, power supervisor, display controller, and display, memory, keyboard are connected with control module.Card holder connector in the SD deck is connected to the general I/O port of control module, two-way is arranged respectively through analog switch 10 in the card holder connector, and switch 10 wherein one the tunnel is connected with amplifirer, and another road is connected to the general I/O port of control module; The button that on shell, manifests also is connected to the general I/O port of control module, and control module is given in keying input information or instruction; The display that on shell, manifests is connected to control module, is controlled by display controller; Memory is connected with control module; Power supply can be provided also by battery can make external power supplier.The annexation of the electronic component of existing digital audio file playing device (like mp3, mp4 player or the like) can be obtained in disclosed data, just is not described in detail at this.
The driver module that FM is set can be arranged in the control module; Also can be provided with separately, make the FM driver module, control by control module like an independent IC.
Be provided with switch 9 in the said deck.Switch 9 is used for sending an information to control to deck conveying/deenergization to control module.
It is special-purpose as the FM card to reserve three sockets in the deck.As shown in Figure 5, the socket in the said SD deck is provided with two sound channels input sockets and a connection socket for antenna, and an antenna is set is connected with connection socket for antenna.The 8th, 9 socket correspondences in the deck of SD described in the present embodiment are set to the socket of stereosonic two input sound channels of FM, and the 6th socket is ground wire and antenna duplexer socket.Other socket then is used for digital communication.
Said switch is a double switch; Be provided with an input, two outputs and a control end; Input is connected with a pin position of SD/MMC card connector; One output is connected with amplifirer, and another output is connected with a pin position of general input/output interface, and control end connects to select corresponding output with control module.If what insert is the FM card, control module is sent out a signal, the output that the switch conduction input is connected with amplifirer to control end; If what insert is other card, control module is sent out a signal, the output that the switch conduction input is connected with general input/output interface to control end.
The signal of SD card and mmc card turnover is digital signal fully, but the FM card then is mixed with the FM antenna input of simulation or the output signal of audio frequency.Select for use two pin positions 8 of on the SD/MMC card, the most seldom using and 9 to be stereosonic two output channels of FM.Because this is the path of audio signal, so the peripheral circuit that cooperates should select for use a pair of analog switch 10 to shunt this two signals.Analog switch 10 is a double switch, and an input is arranged, two outputs and a control end.Wherein a switch input terminal is connected with pin position 8, and the input of another switch is connected with pin position 9; One output of switch 10 is connected with amplifirer, and another output is connected with general I/O port; Control end is connected with control module, and control module control switch 10 makes pin position 8,9 be connected with amplifirer or be connected with general I/O port.This must be able to provide enough passband frequency ranges to analog switch 10, to prevent the being distortion that bandwidth causes audio frequency inadequately.This must can provide enough channel separation to analog switch simultaneously, goes up the interference of GPIO pin position to audio frequency to prevent CPU.The chip that closes condition has 74HC4053 series and serial with the analog switch of similar CMOS explained hereafter.
As shown in Figure 5, because some character of exporting into signal of FM broadcast receiver and SD card has suitable difference, when taking the contact on the SD card, must match cautiously signal so go into when the output of FM.The pin position of said SD/MMC card connector is provided with one day stitch position, and an antenna is connected with this pin position.The stitch position also connected a ground wire in said day.Correspondence is provided with the end pin that 2 pin positions are stereosonic two output channels of FM on the card base position of card type FM receiving system, and a pin position is ground wire and antenna duplexer pin position.In the present embodiment, the 8th, 9 pin positions of said card base position are the end pin of stereosonic two output channels of FM, and the 6th pin position is ground wire and antenna duplexer pin position.
Audio playing apparatus is provided with and is used for recognizing the identification module of inserting the deck Card Type, the type that discrimination module is differentiated card when card the inserts row communication of going forward side by side.In memory, be provided with the communications protocol data of interrogating with the FM cartoon, be used to discern the FM card.As shown in Figure 1, memory is a flash memory.
A kind of card type FM receiving system that is used to be provided with the audio playing apparatus of plug-in card deck comprises circuit board 2, and receiving chip 3 is installed on the circuit board; Be provided with SD/MMC card connection pin.
Usually also comprisehousing 1, be provided with circuit board 2 in the saidhousing 1, receiving chip 3 is installed on the circuit board, require to be provided with crystal oscillator 4, resistance 5, electric capacity 6, diode 7 at the end pin of the peripheral corresponding chip of receiving chip 3.Below utilize the reasonable distribution mode of main components and parts on circuit board, FM is received module be placed in the feasibility in the SD/MMC card size shell.
Like Fig. 2, shown in Figure 3, saidhousing 1 is of a size of (30~31) * (21.5~23) * (1.9~2.1) millimeter, and housing wall thickness D1 is equal to or less than 0.3 millimeter; The height of said chip 3, crystal oscillator 4, resistance 5, electric capacity 6, diode 7 is less than 1.1 millimeters, and the thickness D4 of circuit board 2 and components and parts stack is less than 1.4 millimeters.
In the present embodiment, first components and parts paid close attention to are receiving chips 3 of FM.This chips can be selected the TEA5767HN like PHILIPS for use.It is the core of whole design, and overall height is 1.0MM.The important components and parts of next are crystal oscillator 4, and selected frequency is 32.768KHZ.This must be earlier with the thinnest a kind of, can make it highly be lower than receiving chip 3.In fact, at present the highest in the used components and parts with the height of one group of electrochemical capacitor 6, even minimum element also reaches 1.1MM.So thick (height) that components and parts allow degree must be with this as adjusting the limit.
The thickness D3 that another factor that influences this receiver module thickness is a circuit board 2.The thinnest high-strength F R4 circuit board is that 0.3MM is thick at present.On circuit board, each components and parts all must be placed in one side to reduce gross thickness.
The thickness D1 of plastic casing, covers respectively is 0.3MM, altogether 0.6MM.So if with upper and lower cover, circuit board and the thickest components and parts stack, gross thickness is 2.0MM, is less than the standard 2.1MM of SD card slightly.Stay 0.1MM as allowable tolerance.
Fig. 4 is the sketch map of housing.Wherein go uplower cover 11 and 12 by injection molded production.Their thickness can not surpass 0.3MM, and the space of maximum is provided for thecavity 13 of centre.So its total height of FM module (comprising FM receiver module+circuit board) that can place in thecavity 13 can reach 1.5MM.
Also be provided with filler in thehousing 1 formedinner space 13 of said SD card type FM receiving system.After in the FM receiver circuit is placed incavity 13 fully, its remaining space can select for use filler to fill up to gain in strength, further protective circuit and components and parts.Filler is the filler that does not hinder the filler of heat radiation or help to dispel the heat, like thermal grease.
Because a large amount of portable consumer electronic products all possess the SD/MMC card slot, the present invention is another optional equipment that the FM broadcast receiver that this SD card is built-in becomes the SD/MMC slot.
Though be a FM receiving card design, but still needed the support of some peripheral facilities.These ancillary equipment have comprised external antenna, power supply, power amplifier and loud speaker or earphone etc.They all will be through the SD deck, existing contact links to each other with the FM receiver on the SD card.Reception antenna also can be placed on the receiving card.
In addition, the 6th pin is chosen as ground wire and the FM aerial signal is shared.It stitch position is connected with a high frequency filter.This aerial signal is led to the inlet of antenna on the FM broadcast receiver chip after FM card inside will be through High frequency filter.Could guarantee the integrality of ground wire like this, reduce noise.
A kind of audio playing apparatus inserts the recognition methods of card, is provided with switch at the SD deck, and when card inserted, touch switch produced signal and delivers to control module; Control module is sent instruction and to inserting to block power supply is provided, and sends detection information to the insertion card and insert the type of blocking with identification with the answer of reception insertion card; Start and the corresponding operational module of card.
When card did not insert, the power supply of leading to the SD/MMC deck was cut.One mechanical switch 9 is arranged on deck.When having card to insert, this mechanical switch can be touched at every turn, and producing the signalisation control module has card to insert.At this moment, control module begins through the card power supply to inserting of SD/MMC deck, and starting a formula, to detect what inserted be the FM card of SD card, mmc card or particular design.
Said control module is in regular turn to inserting the communications protocol that card sends SD card, mmc card, FM card.This communications protocol has been supported the SD card, the hot-swappable function of mmc card and FM.
But the ordering combination in any of the communications protocol of said transmission SD card, mmc card, FM card.Can send by the order of mmc card, FM card, SD card, also can be by the order transmission of FM card, SD card, mmc card etc., do not enumerate one by one at this.
As shown in Figure 6, said control module is sent SD cartoon news agreement to inserting card, if the return information that receives is legal, control module sets up SD to be stuck in the sign of position; If the return information that receives can not reflect the existence of SD card, then control module is sent the mmc card communications protocol to inserting card, if the return information that receives is legal, control module is set up mmc card sign on the throne; If the return information that receives can not reflect the existence of mmc card, then control module is sent FM cartoon news agreement to inserting card, if the return information that receives is legal, control module sets up FM to be stuck in the sign of position; Otherwise the information that shows bad card or unknown card.
In this set sign is to prepare for next procedure Selection starts corresponding software module.
After said FM card was identified, the parameter that set before last time, the FM card was pulled out is searched and called in to control module in memory.
As shown in Figure 7, said control module writes a provisioning information to the chip of FM card, and then from then on chip is read; Sense information is compared with preassigned pattern, if both are identical, then indicate the FM card and inserts.
Because the FM card is different with the SD/MMC card, do not have a kind of standard communications protocol, so a kind of in the communications protocol that present embodiment is contained for the present invention is mainly fit applications TEA5767HN chip.
This detection communications protocol is the function that writes and read of utilizing chip to provide; By control module; Write an information specific earlier to chip, and then read from chip, sense information is compared identical like the two with preassigned pattern; Prove that then the FM card inserts, otherwise proof there is not the FM card that correctly can move to be inserted into.This process will repeat with different information materials, increase degree of safety.
Must be noted that the customizing messages that is write must be correct, can be accepted by chip, otherwise chip may be rejected and cause and obscure.
Below be an example that is used to check the FM communications protocol that adopts the TEA5767HN chip, will write the data of five bytes to the FM card, read five bytes then, change data then, repeat once again at this main control module.
The primary data that write are:
| Byte | Content |
| 1 | 10101111 |
| 2 | 11001010 |
| 3 | 00110110 |
| 4 | 00011110 |
| 5 | 01XXXXXX |
The data of reading for the first time should be:
| Byte | Content |
| 1 | XX101111 |
| 2 | 11001010 |
| 3 | XXXXXX |
| 4 | XXXX0000 |
| 5 | 00000000 |
Write for the second time data:
| BYTE | Content | |
| 1 | 10011111 |
| 2 | 01010010 |
| 3 | 00110110 |
| 4 | 00001110 |
| 5 | 01XXXXXX |
Sense data for the second time
| BYTE | Content | |
| 1 | XX011111 |
| 2 | 01010010 |
| 3 | XXXXXXXX |
| 4 | XXXX0000 |
| 5 | 00000000 |
Represent that at thisX 0 or 1 all can.
If two times result shows correct, can conclude that then the FM card correctly inserts, do not insert otherwise can infer the FM card, or do not insert the location, or block mistake.