TW202326449A - Electronic device, electronic system and transmission method - Google Patents

Electronic device, electronic system and transmission method Download PDF

Info

Publication number
TW202326449A
TW202326449A TW110149208A TW110149208A TW202326449A TW 202326449 A TW202326449 A TW 202326449A TW 110149208 A TW110149208 A TW 110149208A TW 110149208 A TW110149208 A TW 110149208A TW 202326449 A TW202326449 A TW 202326449A
Authority
TW
Taiwan
Prior art keywords
electronic device
interface circuit
information
controller
clock signal
Prior art date
Application number
TW110149208A
Other languages
Chinese (zh)
Other versions
TWI839670B (en
Inventor
鄭乃文
Original Assignee
新唐科技股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW110149208A priority Critical patent/TWI839670B/en
Priority to CN202211032951.8A priority patent/CN116367044A/en
Publication of TW202326449A publication Critical patent/TW202326449A/en
Application granted granted Critical
Publication of TWI839670B publication Critical patent/TWI839670B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/16Storage of analogue signals in digital stores using an arrangement comprising analogue/digital [A/D] converters, digital memories and digital/analogue [D/A] converters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Communication Control (AREA)

Abstract

An electronic device, an electronic system and a transmission method are provided. The electronic device is adapted to communicate an audio information with an external device. The electronic device includes an interface circuit and a controller. The interface circuit is coupled to the external device. The controller is coupled to the interface circuit. The controller provides a write information to the external device through the interface circuit. When the audio information is communicated between the interface circuit and the external device, the controller performs an in-system programming to the external device according to the write information.

Description

電子裝置、電子系統及傳輸方法Electronic device, electronic system and transmission method

本發明是有關於一種裝置、系統及方法,且特別是有關於一種電子裝置、電子系統及傳輸方法。The present invention relates to a device, a system and a method, and in particular to an electronic device, an electronic system and a transmission method.

現有的音訊通訊技術中,例如說當電子裝置是以符合晶片間音訊(Inter-IC Sound, I 2S)標準來與編解碼(codec)裝置在傳輸音訊資訊時,若電子裝置欲同時針對編解碼裝置的記憶體進行寫入的話,則必須中止或暫停電子裝置與編解碼裝置之間所傳輸的音訊資訊,才能傳輸寫入資訊。如此一來,受到寫入操作的影響,使用者原先所收聽或錄製的音訊內容勢必會被中斷。 In the existing audio communication technology, for example, when the electronic device conforms to the Inter-IC Sound (I 2 S) standard to transmit audio information with the codec device, if the electronic device wants to target the codec at the same time If the memory of the decoding device is to be written, the audio information transmitted between the electronic device and the codec device must be stopped or suspended before the writing information can be transmitted. In this way, due to the impact of the writing operation, the audio content originally listened to or recorded by the user is bound to be interrupted.

本發明提供一種電子裝置、電子系統及傳輸方法,其可提供在傳輸音訊資訊時的線上燒錄功能。The invention provides an electronic device, an electronic system and a transmission method, which can provide an online burning function when transmitting audio information.

本發明的電子裝置適於與外部裝置之間傳輸音訊資訊。電子裝置包括介面電路及控制器。介面電路耦接於外部裝置。控制器耦接介面電路。控制器透過介面電路提供寫入資訊至外部裝置,使介面電路與外部裝置之間在傳輸音訊資訊時,控制器依據寫入資訊對外部裝置進行線上燒錄。The electronic device of the present invention is suitable for transmitting audio information with external devices. The electronic device includes an interface circuit and a controller. The interface circuit is coupled to the external device. The controller is coupled to the interface circuit. The controller provides writing information to the external device through the interface circuit, so that when audio information is transmitted between the interface circuit and the external device, the controller performs online programming of the external device according to the writing information.

本發明的電子系統包括第一電子裝置及第二電子裝置。第一電子裝置包括第一介面電路、記憶體以及第一控制器。第一控制器由第一介面電路接收資訊以對記憶體進行寫入。第二電子裝置耦接第一電子裝置以進行音訊資訊的傳輸。第二電子裝置包括第二介面電路及第二控制器。第二介面電路耦接第一介面電路,以傳輸音訊資訊。第二控制器耦接第二介面電路,其中第二控制器透過第二介面電路提供寫入資訊至第一控制器,使第一介面電路與第二介面電路之間在傳輸音訊資訊時,第一控制器依據寫入資訊對記憶體進行一線上燒錄。The electronic system of the present invention includes a first electronic device and a second electronic device. The first electronic device includes a first interface circuit, a memory and a first controller. The first controller receives information from the first interface circuit to write into the memory. The second electronic device is coupled to the first electronic device to transmit audio information. The second electronic device includes a second interface circuit and a second controller. The second interface circuit is coupled to the first interface circuit for transmitting audio information. The second controller is coupled to the second interface circuit, wherein the second controller provides write information to the first controller through the second interface circuit, so that when audio information is transmitted between the first interface circuit and the second interface circuit, the second interface circuit A controller performs on-line programming of the memory according to the written information.

本發明的傳輸方法包括提供第一電子裝置及第二電子裝置,以於第一電子裝置及第二電子裝置之間傳輸音訊資訊;以及在第一電子裝置及第二電子裝置之間傳輸音訊資訊時,藉由第二電子提供寫入資訊至第一電子裝置,以對第一電子裝置進行線上燒錄。The transmission method of the present invention includes providing a first electronic device and a second electronic device for transmitting audio information between the first electronic device and the second electronic device; and transmitting audio information between the first electronic device and the second electronic device When, the second electronic device provides writing information to the first electronic device, so as to perform online programming on the first electronic device.

基於上述,本發明的電子裝置、電子系統及傳輸方法可在對記憶體寫入的同時,可保持音訊資訊的傳輸連續且不中斷,有效提供使用者更佳的使用體驗。Based on the above, the electronic device, electronic system and transmission method of the present invention can keep the transmission of audio information continuous and uninterrupted while writing to the memory, effectively providing users with a better user experience.

圖1為本發明實施例中一電子系統1的方塊示意圖。電子系統1包括電子裝置10、20。電子裝置10、20之間互相耦接,並可互相傳輸音訊資訊。電子裝置10包括控制器11及介面電路12。電子裝置20包括控制器21、介面電路22及記憶體23。整體來說,介面電路12及介面電路22之間互相耦接以傳輸音訊資訊,且介面電路12及介面電路22之間的傳輸可符合一晶片間音訊(Inter-IC Sound, I 2S)標準。而電子裝置10與電子裝置20在傳輸音訊資訊的同時,電子裝置10的控制器11還可透過介面電路12提供寫入資訊至電子裝置20,以對電子裝置20的記憶體23來進行線上燒錄(in system programming, ISP)。因此,電子裝置10、20及電子系統1可在保持音訊資訊的傳輸為連續且不中斷的情況下,同時對電子裝置20的記憶體23進行寫入,有效提升系統便利性。 FIG. 1 is a schematic block diagram of an electronic system 1 in an embodiment of the present invention. The electronic system 1 includes electronic devices 10 , 20 . The electronic devices 10 and 20 are coupled to each other and can transmit audio information to each other. The electronic device 10 includes a controller 11 and an interface circuit 12 . The electronic device 20 includes a controller 21 , an interface circuit 22 and a memory 23 . Overall, the interface circuit 12 and the interface circuit 22 are coupled to each other to transmit audio information, and the transmission between the interface circuit 12 and the interface circuit 22 can comply with an inter-IC Sound (I 2 S) standard. . While the electronic device 10 and the electronic device 20 are transmitting audio information, the controller 11 of the electronic device 10 can also provide write information to the electronic device 20 through the interface circuit 12, so as to burn the memory 23 of the electronic device 20 online. recording (in system programming, ISP). Therefore, the electronic devices 10, 20 and the electronic system 1 can simultaneously write to the memory 23 of the electronic device 20 while keeping the transmission of audio information continuous and uninterrupted, which effectively improves the convenience of the system.

在一些實施例中,電子裝置10可例如為主控裝置,電子裝置20可例如為編解碼(codec)裝置,並電子裝置20可另耦接於一音訊裝置(未繪示於圖1)。舉例來說,音訊裝置可為耳機、麥克風、喇叭等的聲音接收或播放裝置。而連接於電子裝置10及音訊裝置之間的電子裝置20,可於兩者之間針對音訊資訊進行編碼及/或解碼。如此一來,電子裝置10與音訊裝置之間可透過電子裝置20而與音訊裝置進行音訊資訊的傳輸。也就是,電子裝置10可接收音訊裝置所提供的音訊資訊,或是電子裝置10可將音訊資訊提供至音訊裝置,以傳輸音訊資訊。當然,上述實施例僅為本發明的其中一種實施態樣,並非用來限制電子系統1、電子裝置10、20的實施方式。In some embodiments, the electronic device 10 may be, for example, a main control device, the electronic device 20 may be, for example, a codec device, and the electronic device 20 may be coupled to an audio device (not shown in FIG. 1 ). For example, the audio device may be a sound receiving or playing device such as an earphone, a microphone, or a speaker. The electronic device 20 connected between the electronic device 10 and the audio device can encode and/or decode audio information between the two. In this way, the electronic device 10 and the audio device can transmit audio information with the audio device through the electronic device 20 . That is, the electronic device 10 can receive the audio information provided by the audio device, or the electronic device 10 can provide the audio information to the audio device to transmit the audio information. Of course, the above-mentioned embodiment is only one of the implementation modes of the present invention, and is not intended to limit the implementation of the electronic system 1 and the electronic device 10 , 20 .

電子裝置10包括控制器11及介面電路12,控制器11可存取電子裝置10的記憶體(未繪示於圖1)來取得並執行軟體或韌體指令,以針對傳輸的資料進行編碼及/或解碼的操作,或進行其他必須的操作。介面電路12耦接於控制器11,介面電路12可用來進行符合晶片間音訊標準的傳輸。The electronic device 10 includes a controller 11 and an interface circuit 12. The controller 11 can access the memory (not shown in FIG. 1 ) of the electronic device 10 to obtain and execute software or firmware instructions, so as to encode and /or decoding operations, or other necessary operations. The interface circuit 12 is coupled to the controller 11, and the interface circuit 12 can be used for transmission conforming to the inter-chip audio standard.

電子裝置20包括控制器21、介面電路22及記憶體23。介面電路22耦接於介面電路21。介面電路22可用來進行符合晶片間音訊標準的傳輸。控制器21耦接於介面電路22,控制器21可由介面電路22取得傳輸的音訊資訊,並針對音訊資訊進行編碼及/或解碼。記憶體23耦接於控制器21。在一些實施例中,記憶體23所儲存的資料可為軟體或韌體指令,以提供給控制器21存取並執行。舉例來說,電子裝置20可透過記憶體23所儲存的資料來針對傳輸的音訊資訊進行語音的控制、調整或者混音等的功能。The electronic device 20 includes a controller 21 , an interface circuit 22 and a memory 23 . The interface circuit 22 is coupled to the interface circuit 21 . The interface circuit 22 can be used for transmission conforming to the inter-chip audio standard. The controller 21 is coupled to the interface circuit 22, and the controller 21 can obtain the transmitted audio information from the interface circuit 22, and encode and/or decode the audio information. The memory 23 is coupled to the controller 21 . In some embodiments, the data stored in the memory 23 can be software or firmware instructions to be accessed and executed by the controller 21 . For example, the electronic device 20 can use the data stored in the memory 23 to perform functions such as voice control, adjustment, or sound mixing for the transmitted audio information.

介面電路12、22之間可以符合晶片間音訊(Inter-IC Sound, I 2S)標準來傳輸音訊資訊。進一步,為了可實現線上燒錄功能,介面電路12、22還可支援分時多工模式(time-division multiplexing, TDM)。因此,電子裝置10、20兩者之間在傳輸音訊資訊的同時,電子裝置10可提供寫入資訊來對電子裝置20進行線上燒錄。也就是說,當電子裝置10針對電子裝置20中記憶體23進行資料的更新或燒錄時,電子裝置10、20之間所傳輸的音訊資訊可保持連續且不中斷。故電子裝置10、20及電子系統1可提供使用者更佳的使用體驗。 The interface circuits 12 and 22 can conform to the Inter-IC Sound (I 2 S) standard to transmit audio information. Furthermore, in order to realize the online programming function, the interface circuits 12 and 22 can also support time-division multiplexing (TDM). Therefore, while the audio information is being transmitted between the electronic devices 10 and 20 , the electronic device 10 can provide writing information for online programming of the electronic device 20 . That is to say, when the electronic device 10 updates or burns data on the memory 23 of the electronic device 20 , the audio information transmitted between the electronic devices 10 and 20 can remain continuous and uninterrupted. Therefore, the electronic devices 10, 20 and the electronic system 1 can provide users with better experience.

控制器11、21可例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(Micro Control Unit,MCU)、微處理器(Microprocessor)、數位信號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)、圖形處理器(Graphics Processing Unit,GPU)、算數邏輯單元(Arithmetic Logic Unit,ALU)、複雜可程式邏輯裝置(Complex Programmable Logic Device,CPLD)、現場可程式化邏輯閘陣列(Field Programmable Gate Array,FPGA)、任何其他種類的積體電路、狀態機、基於進階精簡指令集機器(Advanced RISC Machine,ARM)的處理器、或其他類似元件或上述元件的組合。或者,控制器11、21可以是透過硬體描述語言(Hardware Description Language, HDL)或是其他任意本領域具通常知識者所熟知的數位電路的設計方式來進行設計並實現的硬體電路。控制器11、21可透過相同或不同的方式來實現。The controllers 11 and 21 can be, for example, central processing units (Central Processing Unit, CPU), or other programmable general purpose or special purpose micro control units (Micro Control Unit, MCU), microprocessors (Microprocessor), Digital Signal Processor (DSP), Programmable Controller, Application Specific Integrated Circuit (ASIC), Graphics Processing Unit (GPU), Arithmetic Logic Unit , ALU), Complex Programmable Logic Device (Complex Programmable Logic Device, CPLD), Field Programmable Logic Gate Array (Field Programmable Gate Array, FPGA), any other kind of integrated circuit, state machine, based on advanced reduced instruction A processor of an Advanced RISC Machine (ARM), or other similar components or a combination of the above components. Alternatively, the controllers 11 and 21 may be hardware circuits designed and implemented through hardware description language (Hardware Description Language, HDL) or any other digital circuit design methods known to those skilled in the art. The controllers 11 and 21 can be implemented in the same or different ways.

記憶體23可儲存資料以提供存取。記憶體23可例如是固定式或可移動式的隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(Flash Memory)、硬碟(Hard Disk Drive,HDD)、固態硬碟(Solid State Drive,SSD)或類似元件或上述元件的組合。記憶體23可儲存有欲進行語音的控制、調整或者混音等的功能的相關資訊。The memory 23 can store data for access. Memory 23 can be, for example, fixed or removable random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD), Solid State Drive (Solid State Drive, SSD) or similar components or a combination of the above components. The memory 23 may store information related to functions such as voice control, adjustment, or sound mixing.

圖2為圖1的電子裝置10、20之間所傳輸訊號的波型示意圖。如圖2所示,電子裝置10、20之間所傳輸的訊號包括有時脈訊號Clk1、Clk2以及資料訊號DI/DO。在一些實施例中,時脈訊號Clk1的每個脈衝(pulse)可對應電子裝置10、20之間進行訊號傳輸的每一位資料。時脈訊號Clk2則可界定出電子裝置10、20進行訊號傳輸的框時間F1,也就是電子裝置10、20之間進行訊號傳輸的取樣頻率。資料訊號DI/DO則可為電子裝置10、20之間所傳輸的訊號,資料訊號DI/DO可包含有音訊資訊及寫入資訊。如此一來,電子裝置10、20可依據時脈訊號Clk1、Clk2來進行資料訊號DI/DO的傳輸。FIG. 2 is a schematic diagram of waveforms of signals transmitted between the electronic devices 10 and 20 in FIG. 1 . As shown in FIG. 2 , the signals transmitted between the electronic devices 10 and 20 include clock signals Clk1 and Clk2 and data signals DI/DO. In some embodiments, each pulse of the clock signal Clk1 may correspond to each bit of data transmitted between the electronic devices 10 and 20 . The clock signal Clk2 can define the frame time F1 for signal transmission between the electronic devices 10 and 20 , that is, the sampling frequency for signal transmission between the electronic devices 10 and 20 . The data signal DI/DO can be a signal transmitted between the electronic devices 10 and 20, and the data signal DI/DO can include audio information and writing information. In this way, the electronic devices 10 and 20 can transmit the data signal DI/DO according to the clock signal Clk1 and Clk2.

詳細來說,電子裝置10、20之間可依據時脈訊號Clk1、Clk2來進行通訊,其中電子裝置10、20可依據時脈訊號Clk2區分出框時間F1,電子裝置10、20可依據時脈訊號Clk1以在各個框時間F1中區分出多個時間區間T1~T6,使電子裝置10、20可在對應的時間區間中透過資料訊號DI/DO來傳輸音訊資訊及寫入資訊。在一些實施例中,時脈訊號Clk2所區分出的框時間F1週期長度可為時脈訊號Clk1週期長度的192倍,而每個框時間F1可被區分成時間區間T1~T6。也就是說,每個框時間F1中可具有192個時脈訊號Clk1的脈衝,而每個時間區間T1~T6可分別具有32個時脈訊號Clk1的脈衝。當然,依據不同設計概念及使用設定,框時間F1的週期長度以及每個框時間F1中的時間區間數量皆可被較佳地調整。舉例來說,時脈訊號Clk2的取樣頻率可例如為32KHz、44.1KHz、44KHz、48KHz、96KHz、192KHz,或是介於32KHz~192KHz的任意頻率,而時間區間的數量可例如為6、8、12等或是更多。Specifically, the electronic devices 10 and 20 can communicate according to the clock signals Clk1 and Clk2, wherein the electronic devices 10 and 20 can distinguish the frame time F1 according to the clock signal Clk2, and the electronic devices 10 and 20 can distinguish the frame time F1 according to the clock signal Clk2. The signal Clk1 distinguishes a plurality of time intervals T1-T6 in each frame time F1, so that the electronic devices 10, 20 can transmit audio information and write information through the data signal DI/DO in the corresponding time intervals. In some embodiments, the period length of the frame time F1 divided by the clock signal Clk2 may be 192 times the period length of the clock signal Clk1, and each frame time F1 may be divided into time intervals T1˜T6. That is to say, there are 192 pulses of the clock signal Clk1 in each frame time F1, and 32 pulses of the clock signal Clk1 in each time interval T1˜T6. Of course, according to different design concepts and usage settings, the cycle length of the frame time F1 and the number of time intervals in each frame time F1 can be preferably adjusted. For example, the sampling frequency of the clock signal Clk2 can be 32KHz, 44.1KHz, 44KHz, 48KHz, 96KHz, 192KHz, or any frequency between 32KHz-192KHz, and the number of time intervals can be 6, 8, 12 or more.

具體來說,在時間區間T1、T2中,電子裝置10、20之間可進行音訊資訊的傳輸。更確切來說,電子裝置10、20之間所傳輸的音訊資訊包含有左聲道資訊及右聲道資訊。在時間區間T1中,當時脈訊號Clk2為致能電壓位準時,電子裝置10、20所傳輸的資料訊號DI/DO可包含右聲道資訊;在時間區間T2中,當時脈訊號Clk2為禁能電壓位準時,電子裝置10、20所傳輸的資料訊號DI/DO可包含左聲道資訊,其中左聲道資訊及右聲道資訊可例如是以脈衝編碼調變(pulse-code modulation, PCM)的16位元、24位元或32位元資料。Specifically, in the time intervals T1 and T2, audio information can be transmitted between the electronic devices 10 and 20 . More precisely, the audio information transmitted between the electronic devices 10 and 20 includes left channel information and right channel information. In the time interval T1, when the clock signal Clk2 is at the enable voltage level, the data signals DI/DO transmitted by the electronic devices 10 and 20 may include right channel information; in the time interval T2, the clock signal Clk2 is at the disable level When the voltage level is high, the data signal DI/DO transmitted by the electronic device 10, 20 may include left channel information, wherein the left channel information and the right channel information may be, for example, pulse-code modulation (PCM) 16-bit, 24-bit or 32-bit data.

進一步,在時間區間T3~T6中,電子裝置10、20之間可進行寫入資訊的傳輸。更確切來說,電子裝置10、20之間所傳輸的寫入資訊包含有寫入命令及寫入資料。在時間區間T3中,電子裝置10、20所傳輸的資料訊號DI/DO可包含寫入命令;在時間區間T4~T6,電子裝置10、20所傳輸的資料訊號DI/DO可包含寫入資料。Furthermore, during the time interval T3-T6, the electronic devices 10, 20 can transmit the writing information. More precisely, the writing information transmitted between the electronic devices 10 and 20 includes writing commands and writing data. In the time interval T3, the data signal DI/DO transmitted by the electronic device 10, 20 may include a write command; in the time interval T4-T6, the data signal DI/DO transmitted by the electronic device 10, 20 may include a write data .

在本實施例中,由於電子裝置10、20之間所傳輸的音訊資訊僅包含有左聲道資訊及右聲道資訊,因此僅需兩個時間區間來進行傳輸。如此一來,電子系統1及電子裝置10、20可在時間區間T1、T2中進行音訊資訊的傳輸,並且,在其他未傳輸音訊資訊的時間區間T3~T6中,電子系統1及電子裝置10、20可進行寫入資訊的傳輸。當然,電子裝置10、20之間進行傳輸所使用的時間區間數量可依據介面電路12、22的相容性及使用者需求來進行調整或變更,使電子裝置10、20之間以更少或更多個時間區間的數量來進行傳輸。依據上述,電子裝置10、20之間在傳遞音訊資訊的時候,電子裝置10可以線上燒錄的方式同時對電子裝置20的記憶體23進行寫入,使電子裝置10、20之間所傳輸的音訊資訊可保持連續且不中斷,以提供使用者更佳的使用體驗。In this embodiment, since the audio information transmitted between the electronic devices 10 and 20 only includes left channel information and right channel information, only two time intervals are required for transmission. In this way, the electronic system 1 and the electronic devices 10 and 20 can transmit audio information in the time intervals T1 and T2, and in other time intervals T3-T6 when no audio information is transmitted, the electronic system 1 and the electronic device 10 can , 20 can carry out the transmission of written information. Of course, the number of time intervals used for transmission between the electronic devices 10 and 20 can be adjusted or changed according to the compatibility of the interface circuits 12 and 22 and user requirements, so that the electronic devices 10 and 20 can be transmitted in less or less time. The number of more time intervals to transmit. According to the above, when transmitting audio information between the electronic devices 10 and 20, the electronic device 10 can simultaneously write to the memory 23 of the electronic device 20 in the form of online programming, so that the audio information transmitted between the electronic devices 10 and 20 Audio information can remain continuous and uninterrupted to provide users with a better experience.

圖3為本發明實施例中一電子系統3的方塊示意圖。電子系統3包括電子裝置30、40。電子裝置30包括控制器31、介面電路32、連接埠管理電路33、連接埠34~36。電子裝置40包括控制器41、介面電路42、記憶體43、記憶體控制器44、音訊處理電路45、類比數位轉換器(analog to digital converter, ADC)46、數位類比轉換器(digital to analog converter, DAC)47。FIG. 3 is a schematic block diagram of an electronic system 3 in an embodiment of the present invention. Electronic system 3 includes electronic devices 30 , 40 . The electronic device 30 includes a controller 31 , an interface circuit 32 , a connection port management circuit 33 , and connection ports 34 - 36 . The electronic device 40 includes a controller 41, an interface circuit 42, a memory 43, a memory controller 44, an audio processing circuit 45, an analog to digital converter (analog to digital converter, ADC) 46, a digital to analog converter (digital to analog converter) , DAC) 47.

大致來說,圖3中的控制器31、介面電路32、控制器41、介面電路42及記憶體43分別相似於圖1中的控制器11、介面電路12、控制器21、介面電路22及記憶體23,故相關敘述請參考上方相關段落,於此不另贅述。Generally speaking, the controller 31, interface circuit 32, controller 41, interface circuit 42 and memory 43 in FIG. 3 are similar to the controller 11, interface circuit 12, controller 21, interface circuit 22 and memory 43 in FIG. 1 respectively. Memory 23, so please refer to the relevant paragraphs above for related descriptions, and will not repeat them here.

在電子裝置30中,控制器31還耦接於連接埠管理電路33,並透過連接埠管理電路33耦接於連接埠34~36。連接埠34~36可為相同或不同的連接埠,以分別連接於外部裝置並存取資料。在一些實施例中,連接埠34可為通用序列匯流排(universal serial bus, USB)連接埠,連接埠35可為網路連接埠,連接埠36可為記憶卡(secure digital memory card, SD card)連接埠。如此一來,連接埠34可例如連接於隨身碟、桌上型電腦、筆記型電腦、平板電腦或其他可透過USB連接埠連接並進行資料存取的電子裝置。連接埠35可例如連接於網路線或網路連接裝置,並透過網路線連接於網際網路(world wide web, WWW)並進行資料存取。連接埠36可例如連接於記憶卡,以存取記憶卡的資料。連接埠管理電路33耦接於控制器31與每個連接埠34~36之間,連接埠管理電路33可負責控制器31與連接埠34~36之間的訊號傳輸。In the electronic device 30 , the controller 31 is also coupled to the port management circuit 33 , and is coupled to the ports 34 - 36 through the port management circuit 33 . The connection ports 34-36 can be the same or different connection ports for connecting to external devices and accessing data respectively. In some embodiments, the connection port 34 can be a universal serial bus (USB) connection port, the connection port 35 can be a network connection port, and the connection port 36 can be a memory card (secure digital memory card, SD card) ) port. In this way, the connection port 34 can be connected to, for example, a flash drive, a desktop computer, a notebook computer, a tablet computer or other electronic devices that can be connected through the USB connection port for data access. The connection port 35 can be connected to a network cable or a network connection device, and connected to the Internet (world wide web, WWW) through the network cable for data access. The connection port 36 can be connected to a memory card, for example, to access the data of the memory card. The port management circuit 33 is coupled between the controller 31 and each of the ports 34 - 36 , and the port management circuit 33 is responsible for signal transmission between the controller 31 and the ports 34 - 36 .

在電子裝置40中,控制器41耦接於介面電路42、記憶體控制器44及音訊處理電路45。控制器41與音訊處理電路45可處理音訊資訊的編碼/解碼操作,並透過類比數位轉換器46及數位類比轉換器47來與音訊裝置進行傳輸。而控制器41可透過記憶體控制器44耦接於記憶體43,控制器41及記憶體控制器44可依據寫入資訊來對記憶體43進行寫入。In the electronic device 40 , the controller 41 is coupled to the interface circuit 42 , the memory controller 44 and the audio processing circuit 45 . The controller 41 and the audio processing circuit 45 can process the encoding/decoding operation of the audio information, and transmit it to the audio device through the analog-to-digital converter 46 and the digital-to-analog converter 47 . The controller 41 can be coupled to the memory 43 through the memory controller 44 , and the controller 41 and the memory controller 44 can write into the memory 43 according to the write information.

在一些實施路中,音訊處理電路45可例如是混音器(mixer),可針對傳輸的音訊資訊進行混音處理。記憶體43可儲存有語音控制、調整或者混音等功能的資料。如此一來,電子裝置40中的音訊處理電路45可透過存取記憶體43來對音訊資訊進行混音或其他的操作。In some implementations, the audio processing circuit 45 can be, for example, a mixer (mixer), which can perform audio mixing processing on the transmitted audio information. The memory 43 can store data of functions such as voice control, adjustment, or sound mixing. In this way, the audio processing circuit 45 in the electronic device 40 can perform mixing or other operations on the audio information by accessing the memory 43 .

整體來說,一方面來說,電子系統3可進行音訊資訊的傳輸(例如是電子裝置30由電子裝置40接收音訊資訊,或是電子裝置30將音訊資訊發送至電子裝置40)。另一方面來說,電子系統3亦可在音訊資訊傳輸不中斷的情況下,透過例如是連接埠34~36的至少一者來由外部裝置取得寫入資料,透過控制器31以及介面電路32、42的分時多工處理來對電子裝置40的記憶體43進行線上燒錄的寫入。因此,透過電子系統3及電子裝置30、40的整體配置,可實現線上燒錄的功能,有效提升系統便利性。Generally speaking, on the one hand, the electronic system 3 can transmit audio information (for example, the electronic device 30 receives audio information from the electronic device 40 , or the electronic device 30 sends audio information to the electronic device 40 ). On the other hand, the electronic system 3 can also obtain writing data from an external device through at least one of the connection ports 34-36, and through the controller 31 and the interface circuit 32 without interrupting the audio information transmission. , 42 for time-division multiplexing processing to write on-line programming to the memory 43 of the electronic device 40 . Therefore, through the overall configuration of the electronic system 3 and the electronic devices 30 , 40 , the function of online programming can be realized, which effectively improves the convenience of the system.

圖4為本發明實施例一傳輸方法的流程圖。圖4中的傳輸方法可透過圖1的電子系統1或圖3的電子系統3來執行。在步驟S40中,第一電子裝置及第二電子裝置可被提供,以於第一電子裝置及第二電子裝置之間傳輸音訊資訊。在步驟S41中,在第一電子裝置及第二電子裝置之間傳輸音訊資訊時,藉由第二電子提供寫入資訊至第一電子裝置,以對第一電子裝置進行線上燒錄。FIG. 4 is a flow chart of a transmission method according to Embodiment 1 of the present invention. The transmission method in FIG. 4 can be implemented by the electronic system 1 in FIG. 1 or the electronic system 3 in FIG. 3 . In step S40, the first electronic device and the second electronic device may be provided to transmit audio information between the first electronic device and the second electronic device. In step S41, when the audio information is transmitted between the first electronic device and the second electronic device, the second electronic device provides writing information to the first electronic device, so as to perform online programming on the first electronic device.

關於以電子系統1或電子系統3來進行線上燒錄的相關說明請參考上方相關段落。但當然,本領域具通常知識者可依據不同的設計概念及使用者需求來對上述電子裝置10、20、30、40或電子系統1、3進行所需要的變更或調整。舉例來說,以圖1的電子系統1為例,上方篇幅中雖然僅說明了以電子裝置10為主控裝置來對電子裝置20(編解碼裝置)的從屬裝置進行線上燒錄,但本發明不限於此。電子裝置20亦可作為主控裝置,來對做為從屬裝置的電子裝置10進行線上燒錄操作。也就是說,當電子裝置10、20兩者間傳輸音訊資訊的同時,電子裝置20可提供寫入資訊至電子裝置10,以對電子裝置10的記憶體(未繪示於圖1)來進行寫入。Please refer to the relevant paragraphs above for instructions on online programming with Electronic System 1 or Electronic System 3. But of course, those skilled in the art can make required changes or adjustments to the above-mentioned electronic devices 10 , 20 , 30 , 40 or electronic systems 1 , 3 according to different design concepts and user requirements. For example, taking the electronic system 1 of FIG. 1 as an example, although the above section only illustrates that the electronic device 10 is used as the master device to perform online programming on the slave device of the electronic device 20 (codec device), the present invention Not limited to this. The electronic device 20 can also be used as a master device to perform an online programming operation on the electronic device 10 as a slave device. That is to say, when the audio information is transmitted between the electronic devices 10 and 20, the electronic device 20 can provide writing information to the electronic device 10, so as to perform the memory (not shown in FIG. 1 ) of the electronic device 10. write.

綜上所述,本發明的電子裝置、電子系統及傳輸方法可有效的在符合晶片間音訊標準下,透過支援分時多工模式的介面電路來提供電子裝置在傳輸音訊資訊時的線上燒錄功能。因而在對記憶體寫入的同時,可保持音訊資訊的傳輸連續且不中斷,有效提供使用者更佳的使用體驗。To sum up, the electronic device, electronic system and transmission method of the present invention can effectively provide online programming of electronic devices when transmitting audio information through an interface circuit that supports time-division multiplexing mode in compliance with the inter-chip audio standard. Function. Therefore, while writing to the memory, the transmission of audio information can be kept continuously and uninterrupted, effectively providing users with a better user experience.

1、3:電子系統 10、20、30、40:電子裝置 11、21、31、41:控制器 12、22、32、42:介面電路 23、43:記憶體 33:連接埠管理電路 34~36:連接埠 44:記憶體控制器 45:音訊處理電路 46:類比數位轉換器 47:數位類比轉換器 Clk1、Clk2:時脈訊號 DI/DO:資料訊號 F1:框時間 S40、S41:步驟 T1~T6:時間區間 1, 3: Electronic system 10, 20, 30, 40: Electronics 11, 21, 31, 41: Controller 12, 22, 32, 42: interface circuit 23, 43: memory 33: Port management circuit 34~36: Connecting port 44: Memory controller 45: Audio processing circuit 46:Analog to digital converter 47:Digital to analog converter Clk1, Clk2: clock signal DI/DO: data signal F1: frame time S40, S41: steps T1~T6: time interval

圖1為本發明實施例中一電子系統的方塊示意圖。 圖2為圖1的電子裝置之間所傳輸訊號的波型示意圖。 圖3為本發明實施例中一電子系統的方塊示意圖。 圖4為本發明實施例一傳輸方法的流程圖。 FIG. 1 is a schematic block diagram of an electronic system in an embodiment of the present invention. FIG. 2 is a schematic diagram of waveforms of signals transmitted between the electronic devices of FIG. 1 . FIG. 3 is a schematic block diagram of an electronic system in an embodiment of the present invention. FIG. 4 is a flow chart of a transmission method according to Embodiment 1 of the present invention.

1:電子系統 1: Electronic system

10、20:電子裝置 10, 20: Electronic devices

11、21:控制器 11, 21: Controller

12、22:介面電路 12, 22: interface circuit

23:記憶體 23: Memory

Claims (10)

一種電子裝置,適於與一外部裝置之間傳輸一音訊資訊,該電子裝置包括: 一介面電路,耦接於該外部裝置;以及 一控制器,耦接該介面電路,該控制器透過該介面電路與該外部裝置傳輸該音訊資訊,其中該控制器透過該介面電路提供一寫入資訊至該外部裝置,使該介面電路與該外部裝置之間在傳輸該音訊資訊時,該控制器依據該寫入資訊對該外部裝置進行一線上燒錄(in system programming, ISP)。 An electronic device adapted to transmit an audio message with an external device, the electronic device comprising: an interface circuit coupled to the external device; and A controller, coupled to the interface circuit, the controller transmits the audio information with the external device through the interface circuit, wherein the controller provides a write information to the external device through the interface circuit, so that the interface circuit and the external device When the audio information is transmitted between the external devices, the controller performs in-system programming (ISP) on the external device according to the writing information. 如請求項1所述的電子裝置,其中該介面電路與該外部裝置之間的通訊符合一晶片間音訊(Inter-IC Sound, I 2S)標準。 The electronic device as claimed in claim 1, wherein the communication between the interface circuit and the external device complies with an Inter-IC Sound (I 2 S) standard. 如請求項1所述的電子裝置,其中該介面電路支援一分時多工(time-division multiplexing, TDM)模式。The electronic device according to claim 1, wherein the interface circuit supports a time-division multiplexing (TDM) mode. 如請求項1所述的電子裝置,其中該電子裝置與該外部裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間。The electronic device as described in claim 1, wherein the electronic device communicates with the external device according to a first clock signal and a second clock signal, wherein the first clock signal distinguishes multiple frames Time, the second clock signal distinguishes a plurality of time intervals in each frame time. 如請求項4所述的電子裝置,其中於該第二時脈訊號所區分出的該些時間區間中的至少一第一時間區間中,該介面電路與該外部裝置之間傳輸該音訊資訊, 其中於該些時間區間中的至少一第二時間區間中,該介面電路與該外部裝置之間傳輸該寫入資訊。 The electronic device as claimed in claim 4, wherein the audio information is transmitted between the interface circuit and the external device during at least one first time interval among the time intervals distinguished by the second clock signal, The write information is transmitted between the interface circuit and the external device during at least a second time interval among the time intervals. 如請求項5所述的電子裝置,其中該音訊資訊包括一左聲道資訊以及一右聲道資訊,該寫入資訊包括一寫入命令及一寫入資料。The electronic device according to claim 5, wherein the audio information includes a left channel information and a right channel information, and the write information includes a write command and a write data. 一種電子系統,包括: 一第一電子裝置,包括: 一第一介面電路; 一記憶體;以及 一第一控制器,由該第一介面電路接收資訊以對該記憶體進行寫入;以及 一第二電子裝置,耦接該第一電子裝置以傳輸一音訊資訊,該第二電子裝置包括: 一第二介面電路,耦接該第一介面電路,以傳輸該音訊資訊;以及 一第二控制器,耦接該第二介面電路,該第二控制器透過該第二介面電路與該第一電子裝置傳輸該音訊資訊,其中該第二控制器透過該第二介面電路提供一寫入資訊至該第一控制器,使該第一介面電路與第二介面電路之間在傳輸該音訊資訊時,該第一控制器依據該寫入資訊對該第一電子裝置的該記憶體進行一線上燒錄(in system programming, ISP)。 An electronic system comprising: A first electronic device, comprising: a first interface circuit; a memory; and A first controller receives information from the first interface circuit to write into the memory; and A second electronic device, coupled to the first electronic device to transmit an audio message, the second electronic device includes: a second interface circuit coupled to the first interface circuit to transmit the audio information; and A second controller, coupled to the second interface circuit, the second controller transmits the audio information with the first electronic device through the second interface circuit, wherein the second controller provides a Writing information to the first controller, so that when the audio information is transmitted between the first interface circuit and the second interface circuit, the first controller writes information to the memory of the first electronic device according to the written information Perform in-line programming (in system programming, ISP). 如請求項7所述的電子系統,其中該第一電子裝置與該第二電子裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間。The electronic system according to claim 7, wherein the first electronic device and the second electronic device communicate according to a first clock signal and a second clock signal, wherein the first clock signal distinguishes A plurality of frame times, the second clock signal distinguishes a plurality of time intervals in each frame time. 一種傳輸方法,包括: 提供一第一電子裝置及一第二電子裝置,以於該第一電子裝置及該第二電子裝置之間傳輸一音訊資訊;以及 在該第一電子裝置及該第二電子裝置之間傳輸該音訊資訊時,藉由該第二電子提供一寫入資訊至該第一電子裝置,以對該第一電子裝置進行一線上燒錄(in system programming, ISP)。 A method of transmission comprising: providing a first electronic device and a second electronic device for transmitting an audio message between the first electronic device and the second electronic device; and When the audio information is transmitted between the first electronic device and the second electronic device, the second electronic device provides a writing information to the first electronic device to perform on-line programming of the first electronic device (in system programming, ISP). 如請求項9所述的傳輸方法,其中該第一電子裝置與該第二電子裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間。The transmission method as described in claim 9, wherein the communication between the first electronic device and the second electronic device is based on a first clock signal and a second clock signal, wherein the first clock signal distinguishes A plurality of frame times, the second clock signal distinguishes a plurality of time intervals in each frame time.
TW110149208A 2021-12-28 2021-12-28 Electronic device, electronic system and transmission method TWI839670B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW110149208A TWI839670B (en) 2021-12-28 2021-12-28 Electronic device, electronic system and transmission method
CN202211032951.8A CN116367044A (en) 2021-12-28 2022-08-26 Electronic device, electronic system and transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110149208A TWI839670B (en) 2021-12-28 2021-12-28 Electronic device, electronic system and transmission method

Publications (2)

Publication Number Publication Date
TW202326449A true TW202326449A (en) 2023-07-01
TWI839670B TWI839670B (en) 2024-04-21

Family

ID=86926122

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110149208A TWI839670B (en) 2021-12-28 2021-12-28 Electronic device, electronic system and transmission method

Country Status (2)

Country Link
CN (1) CN116367044A (en)
TW (1) TWI839670B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200535709A (en) * 2004-04-21 2005-11-01 Lite On It Corp A recordable player with external storage medium
TWI267783B (en) * 2004-12-24 2006-12-01 Sunplus Technology Co Ltd Apparatus and system having function of in-system-programming
TW200900944A (en) * 2007-06-26 2009-01-01 Fulhua Micro Electronics Corp System and method for integrating data transmission interfaces
US9489009B2 (en) * 2014-02-20 2016-11-08 Samsung Electronics Co., Ltd. System on chip, bus interface and method of operating the same
US20190005974A1 (en) * 2017-06-28 2019-01-03 Qualcomm Incorporated Alignment of bi-directional multi-stream multi-rate i2s audio transmitted between integrated circuits

Also Published As

Publication number Publication date
CN116367044A (en) 2023-06-30
TWI839670B (en) 2024-04-21

Similar Documents

Publication Publication Date Title
US10097902B2 (en) System and method for using multiple audio input devices for synchronized and position-based audio
US9386123B2 (en) Distributed audio playback and recording
US6665409B1 (en) Methods for surround sound simulation and circuits and systems using the same
EP3047352B1 (en) System and method for conserving memory power using dynamic memory i/o resizing
CN101729625A (en) Method for driving motor of mobile phone and mobile equipment
CN104267924A (en) Mobile terminal and audio processing method thereof
WO2018152679A1 (en) Audio file transmitting method and apparatus, audio file receiving method and apparatus, devices and system
CN107145331B (en) Charging and audio data processing method and terminal
JP2010538376A (en) System and method for invoking a codec processor via a high definition audio bus
KR101226412B1 (en) System, method or apparatus for combining multiple streams of media data
WO2017101327A1 (en) Method and device for collective playback of high-fidelity sound by several players
US6629001B1 (en) Configurable controller for audio channels
KR102298483B1 (en) Digital accessory interface
TW202326449A (en) Electronic device, electronic system and transmission method
US8224469B2 (en) Systems and methods for controlling audio volume in the processor of a high definition audio codec
AU5248300A (en) Data transfer apparatus, data transfer system, and data transfer method with double buffering
US20130085763A1 (en) Codec devices and operating and driving method thereof
US20090063828A1 (en) Systems and Methods for Communication between a PC Application and the DSP in a HDA Audio Codec
WO1988008574A1 (en) Method and apparatus for data transfer
CN103945305B (en) The method and electronic equipment of a kind of information processing
TW201248496A (en) Method and system for processing audio signals in a central audio hub
CN107680570A (en) A kind of apparatus and method for of midi data conversions into vibration sense waveform
CN108628573B (en) Method and device for supporting input of multiple types of audio signals
EP2728461B1 (en) Audio processing device
CN105389156A (en) Method and system for reducing delay from sound input to sound output based on DMA technology