CN103035273B - A kind of device that utilizes knob type digital code switch to switch audio file - Google Patents
A kind of device that utilizes knob type digital code switch to switch audio file Download PDFInfo
- Publication number
- CN103035273B CN103035273B CN201210533386.3A CN201210533386A CN103035273B CN 103035273 B CN103035273 B CN 103035273B CN 201210533386 A CN201210533386 A CN 201210533386A CN 103035273 B CN103035273 B CN 103035273B
- Authority
- CN
- China
- Prior art keywords
- knob type
- digital code
- type digital
- audio file
- code switch
- 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
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a kind of device that utilizes knob type digital code switch to switch audio file, comprise CPU module, digital signal processing module, power module, for depositing the memory of audio file, CPU module is connected with digital signal processing module, digital signal processing module be connected for the memory of depositing audio file, power module is connected with CPU module and digital signal processing module respectively, also comprise just for switching the knob type digital code switch of audio file, knob type digital code switch is provided with the first output pin and the second output pin, the first output pin is connected with CPU module respectively with the second output pin, advantage is easy and simple to handle, and switch speed is fast.
Description
Technical field
The present invention relates to a kind of device that audio file is switched, especially relate to one and utilize knob type digital codingThe device that switch switches audio file.
Background technology
At present, most of digital audio-frequency player, relates to when song files or file switch and all adopts one group of button to come in factExisting. This group button generally comprises switching key and backward switching key forward, by the operation of switching key is forward realizedTo choosing of audio file above, by the operation of switching key backward being realized to choosing audio file below.Often press once switching key or backward switching key forward, realize the switching of a file, when needs switch and current fileWhen non-conterminous file, need continuously by switching key or backward switching key forward in position. Institute in existing buttonWith switch be generally mechanical elasticity switch, mechanical elasticity switch is all attended by shake in moment closed and that disconnect,In order to prevent that misoperation from need to disappear and tremble processing button. Thus, cause key scroll unhappy, if to buttonOperate the too fast problem not responding that also there will be; Especially for non-hand-held audio player, button is carried out byPressure type when operation, due to the impact of the factor such as work angle, dynamics, very inconvenient in the time carrying out frequently actuation of keys.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of easy and simple to handle, and what file switch speed was fast utilizes knob numberThe device that word code switch switches audio file.
The present invention solves the problems of the technologies described above adopted technical scheme: one utilizes knob type digital code switch to soundThe device that frequency file switches, comprises CPU module, digital signal processing module, power module, for depositingThe memory of playback frequency file, described CPU module is connected with described digital signal processing module, describedDigital signal processing module is connected with the described memory for depositing audio file, described power module respectively with instituteThe CPU module of stating is connected with described digital signal processing module, also comprises just for switching revolving of audio fileButton formula digital coding switch, described knob type digital code switch is provided with the first output pin and the second output pin,The first described output pin is connected with described CPU module respectively with the second described output pin, works as rotationWhen described knob type digital code switch, the first output pin of described knob type digital code switch is exported the first arteries and veinsRush signal, the second output pin of described knob type digital code switch is exported the second pulse signal, when the first pulse letterDuring number from high level to low level, described CPU module records the level of the second pulse signal, when the first pulseSignal is during again from high level to low level, and the level that described CPU module records the second pulse signal again alsoThe level of the second pulse signal of twice record relatively, the direction of rotation of the knob type digital code switch described in drawingInformation is also transferred to described digital signal processing module, and described digital signal processing module is to the audio frequency literary composition in memoryPart switches.
Singlechip chip, reset circuit, clock that described CPU module is STM32F103RBT6 by modelCircuit and peripheral circuit composition, described reset circuit, described clock circuit and described peripheral circuit respectively withSTM32F103RBT6 chip connect, the first output pin of described knob type digital code switch withThe 9th pin of STM32F103RBT6 chip connects, the second output pin of described knob type digital code switchBe connected with the tenth pin of STM32F103RBT6 chip.
The described device that knob type digital code switch switches audio file that utilizes also comprises for switching fileThe button of folder, described button is provided with the first input pin, the second input pin, the first output pin and the second outputPin, the first input pin of described button and the second input pin all with the 11 of STM32F103RBT6 chipIndividual pin connects, and the first output pin of described button and the equal ground connection of the second output pin often click described buttonCan produce a low level, described CPU module receives this low level information converting transmission to described numeralSignal processing module, described digital signal processing module switches file.
The described device that knob type digital code switch switches audio file that utilizes also comprises for showing audio frequencyThe indicator lamp of file and file switching state, described indicator lamp is connected with described CPU module.
The described device that knob type digital code switch switches audio file that utilizes also comprises for real-time demonstrationThe display screen of current audio file and/or folder information, described display screen and described CPU module connectConnect.
Compared with prior art, the invention has the advantages that by adopting knob type digital code switch in conjunction with central processing unitModule is switched audio file, and knob type digital code switch rotates efficient and convenient, CPU module responseSpeed is fast, with respect to existing button audio file switching device shifter, has overcome key switch reaction slowly and has been difficult for cutting continuouslyThe shortcoming of changing, easy and simple to handle, switch speed is fast;
When the device that utilizes knob type digital code switch to switch audio file also comprises for switching fileWhen button, can realize the switching between multiple files, more practical;
When the device that utilizes knob type digital code switch to switch audio file also comprises for showing audio fileDuring with the indicator lamp of file switching state, can show intuitively at present in file selection mode or audio fileSelection mode, prevents maloperation;
When the device that utilizes knob type digital code switch to switch audio file also comprises for showing in real time audio frequencyWhen the display screen of file and/or folder information, can by corresponding audio file information, comprise song, duration, orderNumber grade or number of folders, numbering, the information such as title output to display screen, realize simultaneous display, handled easily.
Brief description of the drawings
Fig. 1 is theory diagram of the present invention;
Fig. 2 is CPU module of the present invention, power module, for depositing memory, the knob of audio fileThe connecting circuit figure of digital coding switch, display screen and button;
Fig. 3 is the dsp chip of digital signal processing module of the present invention and the circuit diagram of peripheral circuit;
Fig. 4 is the storage chip of digital signal processing module of the present invention and the circuit diagram of peripheral circuit.
Detailed description of the invention
Below in conjunction with accompanying drawing, embodiment is described in further detail the present invention.
Embodiment: as shown in Figure 1, a kind of device that utilizes knob type digital code switch to switch audio file,Comprise CPU module 1, digital signal processing module 2, power module 3, for depositing the memory of audio file4, CPU module 1 is connected with digital signal processing module 2, digital signal processing module 2 with for depositing soundThe memory 4 of frequency file connects, and power module 3 connects with CPU module 1 and digital signal processing module 2 respectivelyConnect, just also comprise that, for switching the knob type digital code switch 5 of audio file, knob type digital code switch 5 arrangesHave the first output pin A and the second output pin B, the first output pin A and the second output pin B respectively with central authoritiesProcessor module 1 connects, in the time of turning knob formula digital coding switch 5, and knob type digital code switch 5 first defeatedGo out pin A and export the first pulse signal, the second output pin B of knob type digital code switch 5 exports the second pulseSignal, when the first pulse signal is during from high level to low level, CPU module 1 records the electricity of the second pulse signalFlat, when the first pulse signal is during again from high level to low level, CPU module 1 records the second pulse letter againNumber level and relatively before and after the level of the second pulse signal of twice record, draw revolving of knob type digital code switch 5Veer information is also transferred to digital signal processing module 2, and digital signal processing module 2 is to the audio frequency literary composition in memory 4Part switches.
In the present embodiment, singlechip chip, reset electricity that CPU module 1 is STM32F103RBT6 by modelRoad, clock circuit and peripheral circuit composition, reset circuit, clock circuit and peripheral circuit respectively with STM32F103RBT6Chip connects, the first output pin A of knob type digital code switch 5 and STM32F103RBT6 chip the 9thPin PC1 connects, the second output pin B of knob type digital code switch 5 and STM32F103RBT6 chipThe tenth pin PC2 connects.
In the present embodiment, utilize the device that knob type digital code switch 5 switches audio file also to comprise for cuttingChange the button 6 of file, button is provided with the first input pin, the second input pin, the first output pin and second defeatedGo out pin, the first input pin of button 6 and the second input pin all with the 11 of STM32F103RBT6 chipPin PC3 connects, the first output pin of button 6 and the equal ground connection of the second output pin, and often clicking button 6 can produceA low level, CPU module 1 receives this low level information converting transmission to digital signal processing module 2,Digital signal processing module 2 switches file.
In the present embodiment, utilize the device that knob type digital code switch switches audio file also to comprise for showingThe indicator lamp 7 of audio file and file switching state, indicator lamp 7 is connected with CPU module 1, indicator lamp 7It can be LED lamp.
In the present embodiment, utilize the device that knob type digital code switch switches audio file also to comprise in real timeShow the display screen 8 of current audio file and/or folder information, display screen 8 is connected with CPU module 1,Display screen 8 can be LCD LCDs.
The CPU module 1 of the present embodiment, power module 3, for depositing the memory 4 of audio file, knobThe connecting circuit figure of digital coding switch 5, display screen 8 and button 6 as shown in Figure 2, the data signal place of the present embodimentManage the dsp chip of module 2 and the circuit diagram of peripheral circuit as shown in Figure 3, digital signal processing module 2 of the present inventionStorage chip and the circuit diagram of peripheral circuit as shown in Figure 4.
The operation principle of the present embodiment is: the first output pin A of knob type digital code switch 5 withThe 9th pin PC1 of STM32F103RBT6 chip connects, the second output pin of knob type digital code switch 5B is connected with the tenth pin PC2 of STM32F103RBT6 chip. When the operation of STM32F103RBT6 chip detectionThe level that 5 two output pins of knob type digital code switch (A, B) cause changes, and forms command adapted thereto. NumberWord signal processor 2 is connected with CPU module 1, by UART asynchronous serial communication protocol exchange instruction and data.In the time storing audio file in memory 4, turning knob formula digital coding switch 5, knob type digital code switch 5The first output pin A export the first pulse signal, the second output pin B output of knob type digital code switch 5The second pulse signal. CPU module 1 detects the level change that the first pulse signal and the second pulse signal cause in real timeChange, in the time that CPU module 1 detects the first pulse signal from high level to low level, CPU module 1Can record the second pulse signal level, when CPU module 1 again detect the first pulse signal from high level toWhen low level, CPU module 1 again records the level of the second pulse signal and compares second of twice record in front and backThe level of pulse signal, if the second pulse signal first 0 again 1, the rotation direction of knob type digital code switch 5 isTurn right, otherwise the rotation direction of knob type digital code switch 5 is left-hand rotation; CPU module 1 is by revolving of obtainingThe direction of rotation communication of button formula digital coding switch 5 is to digital signal processing module 2, digital signal processing module 2Audio file in memory 4 is switched. Knob type digital code switch 5 turns lattice and produces a pulse period,Just form once and switched, more than knob type digital code switch 5 one circles have ten lattice conventionally, convenient and quick, numberWord signal processing module 2 forms instruction according to the information obtaining, and forward or backward audio file information is read in an address,Realize the switching of audio file.
In the time that needs switch file, button 6 is operated to the first input pin of button 6 and the second input pinAll be connected with the 11 pin PC3 of STM32F103RBT6 chip, button 6 is often low by can produce one next timeLevel, the STM32F103RBT6 chip detection in CPU module 1 will form a switching to low level and refer toOrder is transferred to digital signal processing module 2, and digital signal processing module 2 spanned file folder switching commands, by knob numberThe operand of word code switch 5 changes. STM32F103RBT6 chip IO in CPU module 1Pin connects indicator lamp 7 positive poles, and in the time that file is carried out to handover operation, this pin can continue to export high level and light instructionLamp 7, when button 6 triggers while proceeding to audio file operation output low level, indicator lamp 7 extinguishes; Central processing unit mouldIn piece 1, STM32F103RBT6 chip connects display screen 8, in real time by corresponding file and audio file information (bagDraw together the information such as song, duration, sequence number or number of folders, numbering and title) output to display screen 8, realize synchronously aobviousShow handled easily.
Claims (1)
1. a device that utilizes knob type digital code switch to switch audio file, comprise CPU module,Digital signal processing module, power module, for depositing the memory of audio file, described CPU module withDescribed digital signal processing module connects, described digital signal processing module and described for depositing audio fileMemory connect, described power module respectively with described CPU module and described digital signal processing moduleConnect, characterized by further comprising just for switching the knob type digital code switch of audio file, described knob numberWord code switch is provided with the first output pin and the second output pin, the first described output pin and described second defeatedGo out pin and be connected with described CPU module respectively, in the time rotating described knob type digital code switch, described inThe first output pin of knob type digital code switch export the first pulse signal, described knob type digital code switchThe second output pin export the second pulse signal, when the first pulse signal is during from high level to low level, described central authoritiesProcessor module records the level of the second pulse signal, when the first pulse signal is during again from high level to low level, described inCPU module again record the level of the second pulse signal and relatively before and after the second pulse signal of twice recordLevel, show that the direction of rotation information of described knob type digital code switch is also transferred to described Digital Signal ProcessingModule, described digital signal processing module switches the audio file in memory;
Singlechip chip, reset circuit, clock that described CPU module is STM32F103RBT6 by modelCircuit and peripheral circuit composition, described reset circuit, described clock circuit and described peripheral circuit respectively withSTM32F103RBT6 chip connect, the first output pin of described knob type digital code switch withThe 9th pin of STM32F103RBT6 chip connects, the second output pin of described knob type digital code switchBe connected with the tenth pin of STM32F103RBT6 chip;
A kind ofly utilize the device that knob type digital code switch switches audio file also to comprise for switching fileButton, described button is provided with the first input pin, the second input pin, the first output pin and the second output is drawnPin, the first input pin of described button and the second input pin all with the 11 of STM32F103RBT6 chipPin connects, and the first output pin of described button and the equal ground connection of the second output pin often click described button meetingProduce a low level, described CPU module receives this low level information and converting transmission is believed to described numeralNumber processing module, described digital signal processing module switches file;
A kind ofly utilize the device that knob type digital code switch switches audio file also to comprise for showing audio frequency literary compositionThe indicator lamp of part and file switching state, described indicator lamp is connected with described CPU module;
A kind ofly utilize device that knob type digital code switch switches audio file also to comprise for showing and work as in real timeThe display screen of front audio file and/or folder information, described display screen is connected with described CPU module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210533386.3A CN103035273B (en) | 2012-12-12 | 2012-12-12 | A kind of device that utilizes knob type digital code switch to switch audio file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210533386.3A CN103035273B (en) | 2012-12-12 | 2012-12-12 | A kind of device that utilizes knob type digital code switch to switch audio file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103035273A CN103035273A (en) | 2013-04-10 |
CN103035273B true CN103035273B (en) | 2016-05-25 |
Family
ID=48022092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210533386.3A Expired - Fee Related CN103035273B (en) | 2012-12-12 | 2012-12-12 | A kind of device that utilizes knob type digital code switch to switch audio file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103035273B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105915229B (en) * | 2016-04-06 | 2019-04-30 | 珠海格力电器股份有限公司 | Method and device for processing output of rotary coding switch |
CN206042437U (en) * | 2016-08-19 | 2017-03-22 | 深圳喜乐航科技有限公司 | Pilot lamp system based on audio signal control |
CN107589933B (en) * | 2017-09-06 | 2024-04-09 | 大唐终端技术有限公司 | Knob type digital coding switch device and working state identification method thereof |
CN114113993A (en) * | 2020-08-26 | 2022-03-01 | 深圳和而泰智能控制股份有限公司 | Code switch detection method, computer storage medium and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5479408A (en) * | 1994-02-22 | 1995-12-26 | Will; Craig A. | Wireless personal paging, communications, and locating system |
US5825353A (en) * | 1995-04-18 | 1998-10-20 | Will; Craig Alexander | Control of miniature personal digital assistant using menu and thumbwheel |
CN1276546A (en) * | 1999-05-13 | 2000-12-13 | 索尼公司 | Information processing method, device and medium |
CN1463460A (en) * | 2001-05-21 | 2003-12-24 | 索尼株式会社 | Operating device |
CN101611373A (en) * | 2007-01-05 | 2009-12-23 | 苹果公司 | Utilize the attitude of touch-sensitive device control, manipulation and editing media file |
CN203085169U (en) * | 2012-12-12 | 2013-07-24 | 宁波高新区百瑞音响科技有限公司 | Device capable of using knob-type digital coding switch for switching of audio files |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639671B (en) * | 2009-08-24 | 2011-04-06 | 傅涛 | Method and device for controlling object selection and parameter setting |
CN101710246B (en) * | 2009-11-13 | 2012-01-25 | 宁波吉盛电器有限公司 | Control circuit of oven |
CN101901710B (en) * | 2010-07-09 | 2013-03-13 | 深圳和而泰智能控制股份有限公司 | Rotary encoder switch |
CN202394776U (en) * | 2011-12-15 | 2012-08-22 | 蚌埠依爱消防电子有限责任公司 | Rotating-wheel type input device for fire alarm control units |
CN102594241B (en) * | 2012-03-20 | 2014-08-13 | 江苏物联网研究发展中心 | Intelligent controller for electric eddy current retarder |
CN202501954U (en) * | 2012-04-23 | 2012-10-24 | 中意泰达(营口)汽车保修设备有限公司 | Balancing machine button structure |
-
2012
- 2012-12-12 CN CN201210533386.3A patent/CN103035273B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5479408A (en) * | 1994-02-22 | 1995-12-26 | Will; Craig A. | Wireless personal paging, communications, and locating system |
US5825353A (en) * | 1995-04-18 | 1998-10-20 | Will; Craig Alexander | Control of miniature personal digital assistant using menu and thumbwheel |
CN1276546A (en) * | 1999-05-13 | 2000-12-13 | 索尼公司 | Information processing method, device and medium |
CN1463460A (en) * | 2001-05-21 | 2003-12-24 | 索尼株式会社 | Operating device |
CN101611373A (en) * | 2007-01-05 | 2009-12-23 | 苹果公司 | Utilize the attitude of touch-sensitive device control, manipulation and editing media file |
CN203085169U (en) * | 2012-12-12 | 2013-07-24 | 宁波高新区百瑞音响科技有限公司 | Device capable of using knob-type digital coding switch for switching of audio files |
Also Published As
Publication number | Publication date |
---|---|
CN103035273A (en) | 2013-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103035273B (en) | A kind of device that utilizes knob type digital code switch to switch audio file | |
US20200004299A1 (en) | System, method and apparatus for an electronic device for a tablet computer | |
CN101193233A (en) | TV set key control device and TV set | |
CN103019932B (en) | A kind of method obtaining embedded software version information | |
CN100481895C (en) | Method and device for carrying out TV set software upgrade | |
CN105389086B (en) | Music application operating method and device | |
CN202605302U (en) | Intelligent medicine box | |
CN203085169U (en) | Device capable of using knob-type digital coding switch for switching of audio files | |
CN104952392A (en) | Data backup and fault prevention system for LED display screen | |
CN201624330U (en) | Document cabinet with electronic retrieving function | |
CN202720638U (en) | Serial conversion circuit | |
CN201072649Y (en) | Chart reading machine | |
CN201060393Y (en) | 8 bit online debugging microcontroller | |
CN101604298B (en) | Operation method for local hard disk information of shutdown system by USB interface | |
CN201247425Y (en) | Computer capable of switching memory apparatus | |
CN205263793U (en) | Wireless machine of ordering dishes | |
CN201656954U (en) | Shifting frequency divider | |
CN105516495A (en) | Method for quickly starting camera and mobile terminal | |
CN205901811U (en) | Contain blue light storage of disaster -tolerant backup function | |
TWI225643B (en) | A method for operating the tray of an optic disk system | |
CN204496479U (en) | Hard disk copying device capable of expanding by series connection mode | |
CN202102340U (en) | Notebook PC with mobile hard disk function | |
CN104349088A (en) | Remote controller | |
CN204557371U (en) | A kind of touch external switch controller of computer | |
CN203761359U (en) | Intelligent touch switch system and front and rear end control devices thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160525 Termination date: 20171212 |
|
CF01 | Termination of patent right due to non-payment of annual fee |