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

Electronic device, electronic system and transmission method Download PDF

Info

Publication number
TWI839670B
TWI839670B TW110149208A TW110149208A TWI839670B TW I839670 B TWI839670 B TW I839670B TW 110149208 A TW110149208 A TW 110149208A TW 110149208 A TW110149208 A TW 110149208A TW I839670 B TWI839670 B TW I839670B
Authority
TW
Taiwan
Prior art keywords
electronic device
interface circuit
audio information
information
clock signal
Prior art date
Application number
TW110149208A
Other languages
Chinese (zh)
Other versions
TW202326449A (en
Inventor
鄭乃文
Original Assignee
新唐科技股份有限公司
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

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,I2S)標準來與編解碼(codec)裝置在傳輸音訊資訊時,若電子裝置欲同時針對編解碼裝置的記憶體進行寫入的話,則必須中止或暫停電子裝置與編解碼裝置之間所傳輸的音訊資訊,才能傳輸寫入資訊。如此一來,受到寫入操作的影響,使用者原先所收聽或錄製的音訊內容勢必會被中斷。 In existing audio communication technology, for example, when an electronic device is transmitting audio information with a codec device in accordance with the Inter-IC Sound (I 2 S) standard, if the electronic device wants to write to the memory of the codec device at the same time, the audio information transmitted between the electronic device and the codec device must be stopped or paused before the write information can be transmitted. In this way, the audio content that the user originally listened to or recorded will inevitably be interrupted due to the influence of the write operation.

本發明提供一種電子裝置、電子系統及傳輸方法,其可提供在傳輸音訊資訊時的線上燒錄功能。 The present 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 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 write information to the external device through the interface circuit, so that when the audio information is transmitted between the interface circuit and the external device, the controller performs online burning of the external device according to the write 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 to 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 to transmit 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 the audio information is transmitted between the first interface circuit and the second interface circuit, the first controller performs an online burning to the memory according to the write information.

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

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

1、3:電子系統 1, 3: Electronic system

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

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

12、22、32、42:介面電路 12, 22, 32, 42: Interface circuit

23、43:記憶體 23, 43: Memory

33:連接埠管理電路 33: Port management circuit

34~36:連接埠 34~36: Port

44:記憶體控制器 44:Memory controller

45:音訊處理電路 45: Audio processing circuit

46:類比數位轉換器 46:Analog-to-digital converter

47:數位類比轉換器 47: Digital to Analog Converter

Clk1、Clk2:時脈訊號 Clk1, Clk2: clock signal

DI/DO:資料訊號 DI/DO: data signal

F1:框時間 F1: Frame time

S40、S41:步驟 S40, S41: Steps

T1~T6:時間區間 T1~T6: Time period

圖1為本發明實施例中一電子系統的方塊示意圖。 Figure 1 is a block diagram of an electronic system in an embodiment of the present invention.

圖2為圖1的電子裝置之間所傳輸訊號的波型示意圖。 Figure 2 is a schematic diagram of the waveform of the signal transmitted between the electronic devices in Figure 1.

圖3為本發明實施例中一電子系統的方塊示意圖。 Figure 3 is a block diagram of an electronic system in an embodiment of the present invention.

圖4為本發明實施例一傳輸方法的流程圖。 Figure 4 is a flow chart of the transmission method of embodiment 1 of the present invention.

圖1為本發明實施例中一電子系統1的方塊示意圖。電子系統1包括電子裝置10、20。電子裝置10、20之間互相耦接,並可互相傳輸音訊資訊。電子裝置10包括控制器11及介面電路12。電子裝置20包括控制器21、介面電路22及記憶體23。整體來說,介面電路12及介面電路22之間互相耦接以傳輸音訊資訊,且介面電路12及介面電路22之間的傳輸可符合一晶片間音訊(Inter-IC Sound,I2S)標準。而電子裝置10與電子裝置20在傳輸音訊資訊的同時,電子裝置10的控制器11還可透過介面電路12提供寫入資訊至電子裝置20,以對電子裝置20的記憶體23來進行線上燒錄(in system programming,ISP)。因此,電子裝置10、20及電子系統1可在保持音訊資訊的傳輸為連續且不中斷的情況下,同時對電子裝置20的記憶體23進行寫入,有效提升系統便利性。 FIG1 is a block diagram of an electronic system 1 in an embodiment of the present invention. The electronic system 1 includes electronic devices 10 and 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. In general, the interface circuits 12 and 22 are coupled to each other to transmit audio information, and the transmission between the interface circuits 12 and 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 to perform in system programming (ISP) on the memory 23 of the electronic device 20. Therefore, the electronic devices 10, 20 and the electronic system 1 can simultaneously write to the memory 23 of the electronic device 20 while maintaining the transmission of audio information continuously and without interruption, effectively improving 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 further 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, a speaker, etc. The electronic device 20 connected between the electronic device 10 and the audio device may encode and/or decode audio information between the two. In this way, the electronic device 10 and the audio device may transmit audio information to the audio device through the electronic device 20. That is, the electronic device 10 may receive audio information provided by the audio device, or the electronic device 10 may provide audio information to the audio device to transmit audio information. Of course, the above embodiment is only one embodiment of the present invention and is not intended to limit the implementation of the electronic system 1, electronic devices 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 of the electronic device 10 (not shown in FIG. 1 ) to obtain and execute software or firmware instructions to encode and/or decode the transmitted data, or perform other necessary operations. The interface circuit 12 is coupled to the controller 11 and can be used for transmission that complies with 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 that complies with 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 provide the controller 21 with access and execution. For example, the electronic device 20 can control, adjust, or mix the voice of the transmitted audio information through the data stored in the memory 23.

介面電路12、22之間可以符合晶片間音訊(Inter-IC Sound,I2S)標準來傳輸音訊資訊。進一步,為了可實現線上燒錄功能,介面電路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 transmit audio information in accordance with the Inter-IC Sound (I 2 S) standard. Furthermore, in order to realize the online burning function, the interface circuits 12 and 22 can also support time-division multiplexing (TDM). Therefore, while the audio information is transmitted between the electronic devices 10 and 20, the electronic device 10 can provide write information to perform online burning on the electronic device 20. In other words, when the electronic device 10 updates or burns data in 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 a better user 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 may be, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose micro control unit (MCU), microprocessor, digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processing unit (GPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field programmable gate array (FPGA), any other type of integrated circuit, state machine, processor based on advanced RISC machine (ARM), or other similar components or combinations of the above components. Alternatively, the controllers 11 and 21 may be hardware circuits designed and implemented using a hardware description language (HDL) or any other digital circuit design method known to those skilled in the art. The controllers 11 and 21 may 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 to provide access. The memory 23 can be, for example, a fixed or removable random access memory (RAM), a read-only memory (ROM), a flash memory, a hard disk drive (HDD), a solid state drive (SSD) or a similar element or a combination of the above elements. The memory 23 can store information related to functions such as voice control, adjustment or 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的傳輸。 FIG2 is a waveform diagram of a signal transmitted between the electronic devices 10 and 20 of FIG1 . As shown in FIG2 , the signal transmitted between the electronic devices 10 and 20 includes 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 may define the frame time F1 for the electronic devices 10 and 20 to transmit signals, that is, the sampling frequency for the signal transmission between the electronic devices 10 and 20. The data signal DI/DO may be the signal transmitted between the electronic devices 10 and 20, and the data signal DI/DO may include audio information and write information. In this way, the electronic devices 10 and 20 can transmit the data signals DI/DO according to the clock signals 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 with each other based on the clock signals Clk1 and Clk2, wherein the electronic devices 10 and 20 can distinguish the frame time F1 based on the clock signal Clk2, and the electronic devices 10 and 20 can distinguish multiple time intervals T1 to T6 in each frame time F1 based on the clock signal Clk1, so that the electronic devices 10 and 20 can transmit audio information and write information through the data signals DI/DO in the corresponding time intervals. In some embodiments, the cycle length of the frame time F1 distinguished by the clock signal Clk2 can be 192 times the cycle length of the clock signal Clk1, and each frame time F1 can be distinguished into time intervals T1 to T6. That is to say, each frame time F1 can have 192 pulses of the clock signal Clk1, and each time interval T1~T6 can have 32 pulses of the clock signal Clk1 respectively. 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 adjusted better. 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, etc. 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 specifically, 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 signal DI/DO transmitted by the electronic devices 10 and 20 may include right channel information; in the time interval T2, when the clock signal Clk2 is at the disable voltage level, the data signal DI/DO transmitted by the electronic devices 10 and 20 may include left channel information, wherein the left channel information and the right channel information may be, for example, 16-bit, 24-bit or 32-bit data in pulse-code modulation (PCM).

進一步,在時間區間T3~T6中,電子裝置10、20之間 可進行寫入資訊的傳輸。更確切來說,電子裝置10、20之間所傳輸的寫入資訊包含有寫入命令及寫入資料。在時間區間T3中,電子裝置10、20所傳輸的資料訊號DI/DO可包含寫入命令;在時間區間T4~T6,電子裝置10、20所傳輸的資料訊號DI/DO可包含寫入資料。 Furthermore, in the time interval T3 to T6, the electronic devices 10 and 20 can transmit write information. More specifically, the write information transmitted between the electronic devices 10 and 20 includes a write command and write data. In the time interval T3, the data signal DI/DO transmitted by the electronic devices 10 and 20 can include a write command; in the time interval T4 to T6, the data signal DI/DO transmitted by the electronic devices 10 and 20 can include 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 periods 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 periods T1 and T2, and in other time periods T3 to T6 where no audio information is transmitted, the electronic system 1 and the electronic devices 10 and 20 can transmit write information. Of course, the number of time periods 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 needs, so that the electronic devices 10 and 20 can transmit with fewer or more time periods. According to the above, when the electronic devices 10 and 20 transmit audio information, the electronic device 10 can simultaneously write to the memory 23 of the electronic device 20 in an online burning manner, so that the audio information transmitted between the electronic devices 10 and 20 can remain continuous and uninterrupted, so as to provide users with a better user 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。 FIG3 is a block diagram of an electronic system 3 in an embodiment of the present invention. The electronic system 3 includes electronic devices 30 and 40. The electronic device 30 includes a controller 31, an interface circuit 32, a port management circuit 33, and ports 34 to 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 (ADC) 46, and a 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 23 in FIG. 1 , respectively. For the relevant description, please refer to the relevant paragraphs above and no further description will be given 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 ports 34-36 may be the same or different ports to respectively connect to external devices and access data. In some embodiments, the port 34 may be a universal serial bus (USB) port, the port 35 may be a network port, and the port 36 may be a secure digital memory card (SD card) port. In this way, the port 34 may be connected to a flash drive, a desktop computer, a laptop, a tablet computer, or other electronic devices that can be connected and access data through a USB port. The connection port 35 can be connected to a network cable or a network connection device, and can be connected to the Internet (world wide web, WWW) through the network cable to access data. The connection port 36 can be connected to a memory card, for example, to access the data of the memory card. The connection port management circuit 33 is coupled between the controller 31 and each connection port 34~36, and the connection port management circuit 33 can be responsible for signal transmission between the controller 31 and the connection 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 to the memory 43 according to the write information.

在一些實施路中,音訊處理電路45可例如是混音器(mixer),可針對傳輸的音訊資訊進行混音處理。記憶體43可儲存有語音控制、調整或者混音等功能的資料。如此一來,電子裝置40中的音訊處理電路45可透過存取記憶體43來對音訊資訊進行混音或其他的操作。 In some implementations, the audio processing circuit 45 may be, for example, a mixer, which can perform mixing processing on the transmitted audio information. The memory 43 can store data with functions such as voice control, adjustment or 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的整體配置,可實現線上燒錄的功能,有效提升系統便利性。 In general, on 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 write data from an external device through at least one of the connection ports 34-36 without interrupting the transmission of audio information, and write online to the memory 43 of the electronic device 40 through the time-sharing multiplexing of the controller 31 and the interface circuits 32 and 42. Therefore, through the overall configuration of the electronic system 3 and the electronic devices 30 and 40, the function of online burning can be realized, effectively improving the convenience of the system.

圖4為本發明實施例一傳輸方法的流程圖。圖4中的傳輸方法可透過圖1的電子系統1或圖3的電子系統3來執行。在步驟S40中,第一電子裝置及第二電子裝置可被提供,以於第一電子裝置及第二電子裝置之間傳輸音訊資訊。在步驟S41中,在第一電子裝置及第二電子裝置之間傳輸音訊資訊時,藉由第二電子裝置提供寫入資訊至第一電子裝置,以對第一電子裝置進行線上燒錄。 FIG4 is a flow chart of a transmission method according to an embodiment of the present invention. The transmission method in FIG4 can be performed by the electronic system 1 in FIG1 or the electronic system 3 in FIG3. In step S40, a first electronic device and a second electronic device can be provided to transmit audio information between the first electronic device and the second electronic device. In step S41, when transmitting audio information between the first electronic device and the second electronic device, the second electronic device provides write information to the first electronic device to perform online burning 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)來進行寫入。 For the relevant description of online burning using electronic system 1 or electronic system 3, please refer to the relevant paragraphs above. Of course, a person skilled in the art can make the necessary 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 needs. For example, taking the electronic system 1 of Figure 1 as an example, although the above paragraph only describes the online burning of the slave device of electronic device 20 (encoding and decoding device) using electronic device 10 as the master device, the present invention is not limited to this. The electronic device 20 can also be used as a master device to perform online burning operations on the electronic device 10 as a slave device. That is, while audio information is being transmitted between the electronic devices 10 and 20, the electronic device 20 can provide write information to the electronic device 10 to write to the memory (not shown in FIG. 1 ) of the electronic device 10.

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

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 (6)

一種電子裝置,適於與一外部裝置之間傳輸一音訊資訊,該電子裝置包括:一介面電路,耦接於該外部裝置;以及一控制器,耦接該介面電路,該控制器透過該介面電路與該外部裝置傳輸該音訊資訊,其中該控制器透過該介面電路提供一寫入資訊至該外部裝置,使該介面電路與該外部裝置之間在傳輸該音訊資訊時,該音訊資訊與該寫入資訊在一時序上交替地傳輸至該外部裝置,且該控制器依據該寫入資訊對該外部裝置進行一線上燒錄(in system programming,ISP),其中該電子裝置與該外部裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間,其中於該第二時脈訊號所區分出的該些時間區間中的至少一第一時間區間中,該介面電路與該外部裝置之間傳輸該音訊資訊,其中於該些時間區間中的至少一第二時間區間中,該介面電路與該外部裝置之間傳輸該寫入資訊。 An electronic device is suitable for transmitting audio information with an external device. The electronic device includes: 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 write information to the external device through the interface circuit, so that when the audio information is transmitted between the interface circuit and the external device, the audio information and the write information are transmitted to the external device alternately in a timing sequence, and the controller performs an in-system recording on the external device according to the write information. Programming, ISP), wherein the electronic device and the external device communicate according to a first clock signal and a second clock signal, wherein the first clock signal distinguishes a plurality of frame times, and the second clock signal distinguishes a plurality of time intervals in each of the frame times, wherein in at least one first time interval among the time intervals distinguished by the second clock signal, the audio information is transmitted between the interface circuit and the external device, wherein in at least one second time interval among the time intervals, the write information is transmitted between the interface circuit and the external device. 如請求項1所述的電子裝置,其中該介面電路與該外部裝置之間的通訊符合一晶片間音訊(Inter-IC Sound,I2S)標準。 The electronic device of 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)模式。 An electronic device as described in claim 1, wherein the interface circuit supports a time-division multiplexing (TDM) mode. 如請求項1所述的電子裝置,其中該音訊資訊包括一左聲道資訊以及一右聲道資訊,該寫入資訊包括一寫入命令及一寫入資料。 An electronic device as described in claim 1, wherein the audio information includes left channel information and right channel information, and the write information includes a write command and write data. 一種電子系統,包括:一第一電子裝置,包括:一第一介面電路;一記憶體;以及一第一控制器,由該第一介面電路接收資訊以對該記憶體進行寫入;以及一第二電子裝置,耦接該第一電子裝置以傳輸一音訊資訊,該第二電子裝置包括:一第二介面電路,耦接該第一介面電路,以傳輸該音訊資訊;以及一第二控制器,耦接該第二介面電路,該第二控制器透過該第二介面電路與該第一電子裝置傳輸該音訊資訊,其中該第二控制器透過該第二介面電路提供一寫入資訊至該第一控制器,使該第一介面電路與該第二介面電路之間在傳輸該音訊資訊時,該音訊資訊與該寫入資訊在一時序上交替地傳輸至該第一介面電路,且該第一控制器依據該寫入資訊對該第一電子裝置的該記憶體進行一線上燒錄(in system programming,ISP),其中該第一電子裝置與該第二電子裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出 多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間,其中於該第二時脈訊號所區分出的該些時間區間中的至少一第一時間區間中,該第一介面電路與該第二介面之間電路之間傳輸該音訊資訊,其中於該些時間區間中的至少一第二時間區間中,該第一介面電路與該第二介面電路之間傳輸該寫入資訊。 An electronic system includes: a first electronic device including: a first interface circuit; a memory; and a first controller, the first interface circuit receiving information to write to the memory; and a second electronic device coupled to the first electronic device to transmit an audio information, the second electronic device including: 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 The second controller transmits the audio information to the first electronic device through the second interface circuit, wherein the second controller provides a write information to the first controller through the second interface circuit, so that when the audio information is transmitted between the first interface circuit and the second interface circuit, the audio information and the write information are alternately transmitted to the first interface circuit in a timing sequence, and the first controller performs an online burning (input) on the memory of the first electronic device according to the write information. system programming, ISP), wherein the first electronic device and the second electronic device communicate with each other according to a first clock signal and a second clock signal, wherein the first clock signal distinguishes a plurality of frame times, and the second clock signal distinguishes a plurality of time intervals in each of the frame times, wherein in at least one first time interval among the time intervals distinguished by the second clock signal, the audio information is transmitted between the first interface circuit and the second interface circuit, wherein in at least one second time interval among the time intervals, the write information is transmitted between the first interface circuit and the second interface circuit. 一種傳輸方法,包括:提供一第一電子裝置及一第二電子裝置,以於該第一電子裝置及該第二電子裝置之間傳輸一音訊資訊;以及在該第一電子裝置及該第二電子裝置之間傳輸該音訊資訊時,藉由該第二電子裝置提供一寫入資訊至該第一電子裝置,以對該第一電子裝置進行一線上燒錄(in system programming,ISP),其中該音訊資訊與該寫入資訊在一時序上交替地傳輸至該第一電子裝置,其中該第一電子裝置與該第二電子裝置之間依據一第一時脈訊號、一第二時脈訊號來進行通訊,其中該第一時脈訊號區分出多個框時間,該第二時脈訊號在各該框時間中區分出多個時間區間,其中於該第二時脈訊號所區分出的該些時間區間中的至少一第一時間區間中,該第一電子裝置與該第二電子裝置之間傳輸該音訊資訊, 其中於該些時間區間中的至少一第二時間區間中,該第一電子裝置與該第二電子裝置之間傳輸該寫入資訊。 A transmission method includes: providing a first electronic device and a second electronic device to transmit an audio information between the first electronic device and the second electronic device; and when transmitting the audio information between the first electronic device and the second electronic device, providing a write information to the first electronic device by the second electronic device to perform an in-system recording on the first electronic device. Programming, ISP), wherein the audio information and the write information are transmitted alternately to the first electronic device in a timing sequence, wherein the first electronic device and the second electronic device communicate with each other according to a first clock signal and a second clock signal, wherein the first clock signal distinguishes a plurality of frame times, and the second clock signal distinguishes a plurality of time intervals in each of the frame times, wherein in at least one first time interval among the time intervals distinguished by the second clock signal, the audio information is transmitted between the first electronic device and the second electronic device, and wherein in at least one second time interval among the time intervals, the write information is transmitted between the first electronic device and the second electronic device.
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 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 Electronic device, electronic system and transmission method

Publications (2)

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

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832471A (en) 2017-06-28 2020-02-21 高通股份有限公司 Alignment of bi-directional multi-stream multi-rate I2S audio transmitted between integrated circuits

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832471A (en) 2017-06-28 2020-02-21 高通股份有限公司 Alignment of bi-directional multi-stream multi-rate I2S audio transmitted between integrated circuits

Similar Documents

Publication Publication Date Title
US10504526B2 (en) Wireless cellular telephone with audio codec
EP1791336B1 (en) Digital audio device and method
US7376778B2 (en) Audio device
TWI839670B (en) Electronic device, electronic system and transmission method
WO2017101327A1 (en) Method and device for collective playback of high-fidelity sound by several players
WO1988008574A1 (en) Method and apparatus for data transfer
Dimitrov et al. Audio Arduino-an ALSA (Advanced Linux Sound Architecture) Audio Driver for FTDI-based Arduinos.
TW202326449A (en) Electronic device, electronic system and transmission method
WO2009029916A1 (en) Systems and methods for controlling audio volume in the processor of a high definition audio codec
US20090063828A1 (en) Systems and Methods for Communication between a PC Application and the DSP in a HDA Audio Codec
EP1125188A1 (en) Multiple audio dacs with pc compatibility
JP4655164B2 (en) Electronics
CN201570264U (en) Music player
JP4609599B2 (en) Electronics
JP4697346B2 (en) Playback device
CN117406953A (en) Audio data transmission method and device, storage medium and electronic equipment
CN105355230A (en) Processing method of high-quality music digital product
JP2006085339A (en) Method for creating digital signal and digital signal recording medium
GB2445485A (en) A "pass circuit" divides a bus into two sections; in a first mode signals can pass between the sections, but in a second mode the sections are isolated
GB2444190A (en) Digital audio communication in a digital audio convergence device such as a smartphone