CN103577146B - Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof - Google Patents
Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof Download PDFInfo
- Publication number
- CN103577146B CN103577146B CN201310520605.9A CN201310520605A CN103577146B CN 103577146 B CN103577146 B CN 103577146B CN 201310520605 A CN201310520605 A CN 201310520605A CN 103577146 B CN103577146 B CN 103577146B
- Authority
- CN
- China
- Prior art keywords
- data
- audio decoder
- decoder chip
- control
- output
- 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
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
A kind of embedded laser method for controlling projection with the output of MP3 audio frequency, control unit has the data reading a sector the storage medium of data for projection every time from storage, sequential storage is in multiple relief areas of control unit, and the time constant of intervalometer is determined according to vibration mirror scanning speed, processor is when each time interrupts, export a laser data read from described relief area, carry out vibration mirror scanning and the control of laser output, carry out the output of voice data simultaneously, realize the synchronism output of laser data and voice data, sequentially, repeat above-mentioned steps, until the digital independent in storage medium is complete.The present invention also provides for a kind of embedded laser projector controller with the output of MP3 audio frequency realizing said method.The present invention uses and reasonably stores setting, makes laser data can export timely and accurately with MP3 voice data, and can keep synchronizing, and greatly enriches its output effect, has expanded purposes.
Description
Technical field
The present invention relates to a kind of embedded laser method for controlling projection and controller thereof, particularly a kind of band M
P3 audio frequency output embedded laser projection control control method and use the method with MP3 audio frequency
The embedded laser projector controller of output.
Background technology
Laser projection is scanned imaging by galvanometer to laser beam, and laser the most on the market is thrown
Shadow machine is typically controlled output by ILDA interface by peripheral control unit (being mostly PC), or logical
Cross built-in embedded controller to be controlled.
According to international laser display association technical committee (ILDA, International Laser Di
Splay Association Technical Committee) " the ILDA standard laser scialyscope " issued
Requirement in (ILDA Standard Laser Projector), the vibration mirror scanning speed of laser projection
Degree should be 30K/S.If the data using four bytes by each scanning element describe, then 1 second
Figure be accomplished by 30, the data volume of 000 × 4=120,000Byte.
Built-in controller suffers from the restriction of arithmetic speed and memory data output, can only export
Simple figure, and peripheral control unit suffers from the restriction of the factors such as the volume of cost, controller,
And the most there is not the laser projection being furnished with audio frequency output in market at present.
Summary of the invention
It is an object of the invention to provide a kind of embedded laser projection with the output of MP3 audio frequency to control
Method, comprises the following steps:
The first step, control unit has one sector of reading the storage medium of data for projection from storage every time
Data, in multiple relief areas of sequential storage to control unit, a sector in described storage medium
Data for projection store a relief area of control unit, described data for projection include laser data and
Voice data;
Second step, determines the time constant of intervalometer according to vibration mirror scanning speed, and processor starts timing
Device, reads laser data, one laser of each time interrupt output from one of the plurality of relief area
Data, carry out vibration mirror scanning and the control of laser output, carry out the output of voice data simultaneously, it is achieved
Laser data and the synchronism output of voice data;
3rd step, it is judged that whether current buffer is empty, the most then be switched to next relief area, enter
The reading of row data for projection and output, read the data of next sector, storage simultaneously from storage medium
In empty relief area, repeating the step of first and second step, to carry out laser data synchronization with voice data
Output, until the digital independent in storage medium is complete.
Particularly, described control unit can have two relief areas.
The present invention also provides for a kind of embedded laser throwing with the output of MP3 audio frequency made in aforementioned manners
Shadow controller, including embedded MCU, MP3 audio decoder chip and SD card, MP3 audio decoder chip
Electrically connect with embedded MCU with SD card.Further, can use SPI mode even between MCU and SD card
Connect.
Further, embedded MCU uses C805F410, the MP3 audio decoder core of Silicon lab
Sheet uses the MP3 audio decoder chip FT1960 chip of Fangtek company.Wherein, MCU C805F4
The P1 mouth of 10 connects the data port that MP3 audio decoder chip FT1960 is corresponding, MCU C805F410's
P0.3 and P0.7 on P0 mouth connects writing of MP3 audio decoder chip FT1960 respectively and controls port W
R and reading control port RD, and the read-write to MP3 audio decoder chip FT1960 is controlled;MCU C8
The P0.6 mouth of 05F410 controls the address/data of MP3 audio decoder chip FT1960 and controls port A0;
The sheet selected control CS ground connection all the time of MP3 audio decoder chip FT1960, is in selected state so that M
The P1 mouth of CU C805F410 only carries out communication with MP3 audio decoder chip FT1960;MP3 audio frequency solution
The IRQ of code chip FT1960 is connected on the external interrupt pin of MCU C805F410.
Additionally, when writing data to MP3 audio decoder chip FT1960, first by MP3 audio decoder
The address/data of chip FT1960 controls port A0 set, shows first to MP3 audio decoder chip
FT1960 write is address, then that the sheet selected control CS of MP3 audio decoder chip FT1960 is multiple
Position, completes the choosing of the sheet to MP3 audio decoder chip FT1960, starts write and controls, subsequently at MP3
The data port of audio decoder chip FT1960 inputs corresponding address, after completing address transmission, is selected by sheet
Controlling CS, write control WR set, then address/data control port A0 still keeps low level, table
Bright following input is data, is resetted with writing control WR by sheet selected control CS successively, is counting subsequently
Send data according to mouth, after data are sent, sheet selected control CS is controlled WR set with writing.
When reading data from MP3 audio decoder chip FT1960, first by MP3 audio decoder chip F
The address/data of T1960 controls port A0 set, shows first from MP3 audio decoder chip FT196
0 reading is address, is then resetted by the sheet selected control CS of MP3 audio decoder chip FT1960, complete
The sheet choosing of MP3 audio decoder chip FT1960, starts and reads to control, subsequently from MP3 audio decoder in pairs
The data port of chip FT1960 reads corresponding address, completes after address reads, by sheet selected control CS,
Reading to control RD set, then address/data controls port A0 and resets, show next to read is
Data, control RD by sheet selected control CS and reading successively and reset, and read data, number in data port subsequently
After reading, sheet selected control CS and reading are controlled RD set.
Accompanying drawing explanation
Fig. 1 shows embedded MCU and the M of embedded laser projector controller preferred embodiment of the present invention
The circuit connection diagram of P3 audio decoder chip;
Fig. 2 a shows when the writing of MP3 audio decoder chip of embedded laser projector controller of the present invention
Sequence figure;
When Fig. 2 b shows the reading of MP3 audio decoder chip of embedded laser projector controller of the present invention
Sequence figure;
Fig. 3 shows the SD card interface schematic diagram of embedded laser projector controller of the present invention;
Fig. 4 shows the work of the embedded laser projector controller with the output of MP3 audio frequency of the present invention
Make flow chart.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is described in further detail.
The present invention with MP3 audio frequency output embedded laser projector controller include embedded MCU,
MP3 audio decoder chip and SD card, MP3 audio decoder chip and SD card electrically connect with embedded MCU.
As it is shown in figure 1, embedded MCU uses the C805F410, C8051F410 of Silicon lab
There are 12 D/A of two-way controlled for galvanometer export, and have the RAM of 2304 bytes, the speed of service
Reach as high as 50MIPS.MP3 audio decoder chip uses the MP3 audio decoder core of Fangtek company
Sheet FT1960 chip, typically has 13 feet to be connected between MP3 audio decoder chip FT1960 with MCU,
D0-D7 is 8 data port, and CS is sheet selected control system, and WR is to write control, and RD is to read control, and A0 is ground
Location controls, and IRQ is interrupt requests.Wherein, the P1 mouth (P1.0-P1.7) of MCU C805F410 is even
Meet data port (D0-D7) corresponding to MP3 audio decoder chip FT1960, the P0. on the P0 mouth of MCU
3 and P0.7 connect writing control port WR and reading to control end of MP3 audio decoder chip FT1960 respectively
Mouth RD, the read-write to MP3 audio decoder chip FT1960 is controlled;The P0.6 mouth of MCU controls M
The address/data of P3 audio decoder chip FT1960 controls port A0.In the present invention, the P1 of MCU
Mouth only carries out communication, therefore MP3 audio decoder chip FT196 with MP3 audio decoder chip FT1960
The sheet selected control CS of 0 passes through connector JP7 ground connection all the time, is in selected state.MP3 audio decoder
The IRQ of chip FT1960 is connected on the external interrupt pin of MCU.When starting MP3 audio decoder chip
After FT1960, MP3 audio decoder chip FT19609 needs by IRQ to MCU according to output
Request data, the MP3 data in caching are sequentially output after the request of receiving by MCU.
As shown in Figure 2 a, when writing data to MP3 audio decoder chip FT1960, first A0 is put
Position, show first to MP3 audio decoder chip FT1960 write be address, then by CS reset
Complete the choosing of the sheet to MP3 audio decoder chip FT1960, start write and control (WR low level), with
After D0-D7 input corresponding address.After completing address transmission, by CS, WR set.Then A0
Still keeping low level, show next to input is data, is resetted by CS and WR successively, subsequently
Data are sent at D0-D7.After data are sent, CS and WR set.
As shown in Figure 2 b, when reading data from MP3 audio decoder chip FT1960, first A0 is put
Position, show first from MP3 audio decoder chip FT1960 read be address, then by CS reset
Complete the choosing of the sheet to MP3 audio decoder chip FT1960, start and read to control (RD high level), subsequently
Corresponding address is read from D0-D7.After completing address reading, by CS and RD set.Then by A0
Resetting, show next to read is data, then is resetted by CS and RD successively, reads at D0-D7 subsequently
Fetch data.After digital independent, CS and RD set.
As it is shown on figure 3, J1 mouth is SD card interface, SPI mode between MCU and SD card, is used to connect.
I.e. 4 line systems, use NSS(enable signal from device), SCLK(clock signal), the main device of MOSI(
Number of packages according to output, inputs from device data), the input of MISO(main device data, defeated from device data
Go out) carry out data communication, above-mentioned SD card interface is connected with the corresponding interface of MCU.
Fig. 4 shows the work of the embedded laser projector controller with the output of MP3 audio frequency of the present invention
Make flow chart.
As it has been described above, according to 30K laser scanning speed, within 1 second, only laser data will consume
120K;The bit speed of MP3 is calculated by the highest 192Kpbs, the data about 24K consumed for a second.
Although the transfer rate of SD card is much larger than 120K+24K=144K, but owing to MCU is also performed to various
Data process and I/O exports, the limited time of actual treatment digital independent.If by laser data and M
P3 data are stored separately, MCU address procedures will waste in a large number to time.
In order to ensure the seriality of output, improve the work efficiency of control system, data can be optimized and deposit
Storage arrange, deposit to SD card write data time, split data into multiple pieces, laser data and MP3 audio frequency
Data mixing is deposited, such as, be 1 piece with 512 bytes, and front 400 bytes are laser data, and rear 1
12 bytes are the voice data of MP3.In embedded control system, by embedded MCU C8051F
The RAM of 410 marks the relief area of two 512 bytes.
When the embedded laser projector controller with the output of MP3 audio frequency of the present invention works,
The first step, embedded MCU reads the data for projection of a sector from SD card every time, to MCU
Two relief areas in sequential storage, in SD card, the data for projection of a sector stores of MCU
Relief area, data for projection includes laser data and voice data;
Second step, determines the time constant of intervalometer according to vibration mirror scanning speed, and embedded MCU starts
Intervalometer, reading laser data in described relief area, one laser data of each time interrupt output,
Carry out vibration mirror scanning and the control of laser output, receive the request of data of MP3 audio decoder chip simultaneously,
Voice data is provided, it is achieved laser data and the synchronism output of voice data to MP3 decoding chip;
3rd step, it is judged that whether current buffer is empty, the most then be switched to next relief area, with
Time read the data of next sector to SD card, store in empty relief area, repeat first and second step
Step carry out the synchronism output of laser data and voice data, until the digital independent in SD card is complete.
The present invention is that laser projection mixes audio frequency output, uses and reasonably stores setting, makes laser number
Can export timely and accurately according to MP3 voice data, and can keep synchronizing, greatly enrich its output
Effect, has expanded purposes.
Although the present embodiment employing the buffer of two 512 bytes, but those skilled in the art can
To use multiple relief areas of different capabilities to realize the present invention.
Below preferred embodiment to the invention is illustrated, but the invention is also
Being not limited to described embodiment, those of ordinary skill in the art are before the invention spirit
Putting modification or the replacement that also can make all equivalents, modification or the replacement of these equivalents are all contained in
In the application claim limited range.
Claims (7)
1. the embedded laser method for controlling projection with the output of MP3 audio frequency, it is characterised in that bag
Include following steps:
The first step, control unit has one sector of reading the storage medium of data for projection from storage every time
Data, in multiple relief areas of sequential storage to control unit, a sector in described storage medium
Data for projection store a relief area of control unit, described data for projection include laser data and
Voice data;
Second step, determines the time constant of intervalometer according to vibration mirror scanning speed, and processor starts timing
Device, reads laser data, one laser of each time interrupt output from one of the plurality of relief area
Data, carry out vibration mirror scanning and the control of laser output, carry out the output of voice data simultaneously, it is achieved
Laser data and the synchronism output of voice data;
3rd step, it is judged that whether current buffer is empty, the most then be switched to next relief area, enter
The reading of row data for projection and output, read the data of next sector, storage simultaneously from storage medium
In empty relief area, repeating the step of first and second step, to carry out laser data synchronization with voice data
Output, until the digital independent in storage medium is complete.
2. as claimed in claim 1 with the embedded laser method for controlling projection of MP3 audio frequency output,
It is characterized in that: described control unit has two relief areas.
3. one kind use method as claimed in claim 1 or 2 with MP3 audio frequency output embedded
Laser projection controller, it is characterised in that: include embedded MCU, MP3 audio decoder chip and SD
Card, MP3 audio decoder chip and SD card electrically connect with embedded MCU.
4. embedded laser projector controller as claimed in claim 3, it is characterised in that: embedded M
CU uses C805F410, the MP3 audio decoder chip of Silicon lab to use Fangtek company
MP3 audio decoder chip FT1960 chip, wherein,
The P1 mouth of MCU C805F410 connects the data port that MP3 audio decoder chip FT1960 is corresponding, M
P0.3 and P0.7 on the P0 mouth of CU C805F410 connects MP3 audio decoder chip FT1960 respectively
Write control port WR and read control port RD, the read-write to MP3 audio decoder chip FT1960 is entered
Row controls;The address of the P0.6 mouth control MP3 audio decoder chip FT1960 of MCU C805F410/
Data Control port A0,
The sheet selected control CS ground connection all the time of MP3 audio decoder chip FT1960, is in selected state, makes
The P1 mouth obtaining MCU C805F410 only carries out communication with MP3 audio decoder chip FT1960,
The IRQ of MP3 audio decoder chip FT1960 is connected on the external interrupt pin of MCU C805F410
On.
5. embedded laser projector controller as claimed in claim 4, it is characterised in that: to MP
When 3 audio decoder chip FT1960 write data, first by the address of MP3 audio decoder chip FT1960
The port A0 set of/Data Control, shows first to be ground to what MP3 audio decoder chip FT1960 write
Location, then resets the sheet selected control CS of MP3 audio decoder chip FT1960, completes MP3 sound
Frequently the sheet choosing of decoding chip FT1960, starts write and controls, subsequently at MP3 audio decoder chip FT1
The data port of 960 inputs corresponding address, after completing address transmission, by sheet selected control CS, writes control W
R set, then address/data controls port A0 and still keeps low level, and show next to input is
Data, reset sheet selected control CS with writing control WR successively, send data, number in data port subsequently
After being sent, sheet selected control CS is controlled WR set with writing.
6. embedded laser projector controller as claimed in claim 4, it is characterised in that: from MP
When 3 audio decoder chip FT1960 read data, first by the address of MP3 audio decoder chip FT1960
The port A0 set of/Data Control, shows first to be ground from what MP3 audio decoder chip FT1960 read
Location, then resets the sheet selected control CS of MP3 audio decoder chip FT1960, completes MP3 sound
Frequently the sheet choosing of decoding chip FT1960, starts and reads to control, subsequently from MP3 audio decoder chip FT196
The data port of 0 reads corresponding address, after completing address reading, by sheet selected control CS, reads to control RD
Set, then controls address/data port A0 and resets, and show next to read is data, depends on
Secondary by sheet selected control CS and read control RD reset, subsequently data port read data, digital independent is complete
Bi Hou, controls RD set sheet selected control CS and reading.
7. embedded laser projector controller as claimed in claim 3, it is characterised in that: MCU and S
SPI mode is used to connect between D card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310520605.9A CN103577146B (en) | 2013-10-29 | 2013-10-29 | Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310520605.9A CN103577146B (en) | 2013-10-29 | 2013-10-29 | Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103577146A CN103577146A (en) | 2014-02-12 |
CN103577146B true CN103577146B (en) | 2017-01-04 |
Family
ID=50049005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310520605.9A Expired - Fee Related CN103577146B (en) | 2013-10-29 | 2013-10-29 | Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103577146B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1873821A (en) * | 2005-06-02 | 2006-12-06 | 恩益禧电子股份有限公司 | Apparatus and method for synchronized playback |
CN201110939Y (en) * | 2007-10-26 | 2008-09-03 | 李林 | Digital cine projector |
CN101446751A (en) * | 2008-06-19 | 2009-06-03 | 赵文发 | Projection screen and projection system |
CN203561981U (en) * | 2013-10-29 | 2014-04-23 | 上海明泰照明电器有限公司 | Embedded laser projector controller with MP3 audio output function |
-
2013
- 2013-10-29 CN CN201310520605.9A patent/CN103577146B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1873821A (en) * | 2005-06-02 | 2006-12-06 | 恩益禧电子股份有限公司 | Apparatus and method for synchronized playback |
CN201110939Y (en) * | 2007-10-26 | 2008-09-03 | 李林 | Digital cine projector |
CN101446751A (en) * | 2008-06-19 | 2009-06-03 | 赵文发 | Projection screen and projection system |
CN203561981U (en) * | 2013-10-29 | 2014-04-23 | 上海明泰照明电器有限公司 | Embedded laser projector controller with MP3 audio output function |
Also Published As
Publication number | Publication date |
---|---|
CN103577146A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104520932B (en) | flash memory controller | |
US7325104B2 (en) | Storage device using interleaved memories to control power consumption | |
CN108228492B (en) | Multi-channel DDR interleaving control method and device | |
US8310880B2 (en) | Virtual channel support in a nonvolatile memory controller | |
CN108304334B (en) | Application processor and integrated circuit including interrupt controller | |
US6889266B1 (en) | Method for delivering packet boundary or other metadata to and from a device using direct memory controller | |
GB2430512A (en) | Controller for NAND flash memory | |
US9690720B2 (en) | Providing command trapping using a request filter circuit in an input/output virtualization (IOV) host controller (HC) (IOV-HC) of a flash-memory-based storage device | |
CN101436171B (en) | Modular communication control system | |
CN101634975A (en) | Method for realizing DMA data transmission and apparatus thereof | |
US20100191901A1 (en) | Non-volatile storage device, host device, non-volatile storage system, data recording method, and program | |
US20090177816A1 (en) | Method and system for communication with sd memory and sdio devices | |
TWI612473B (en) | Methods for garbage collection and apparatuses using the same | |
CN111931442B (en) | FPGA embedded FLASH controller and electronic device | |
CN101169673B (en) | Real-time timepiece chip interface circuit control method and real-time timepiece control circuit | |
CN104485962B (en) | A kind of Portable Data-Acquisition System and its acquisition method | |
CN100481895C (en) | Method and device for carrying out TV set software upgrade | |
CN113485672A (en) | Information generation method, device, equipment and medium based on FIFO memory | |
US20020078282A1 (en) | Target directed completion for bus transactions | |
CN103577146B (en) | Embedded laser method for controlling projection with the output of MP3 audio frequency and controller thereof | |
CN104077080A (en) | Memory access method, memory access control method, SPI flash memory device and controller thereof | |
CN116340217A (en) | Data processing method and related device | |
US20180173657A1 (en) | Automatic transmission of dummy bits in bus master | |
CN115237349A (en) | Data read-write control method, control device, computer storage medium and electronic equipment | |
CN203561981U (en) | Embedded laser projector controller with MP3 audio output function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170104 Termination date: 20181029 |