TWM619031U - Manchester transceiver - Google Patents

Manchester transceiver Download PDF

Info

Publication number
TWM619031U
TWM619031U TW110206579U TW110206579U TWM619031U TW M619031 U TWM619031 U TW M619031U TW 110206579 U TW110206579 U TW 110206579U TW 110206579 U TW110206579 U TW 110206579U TW M619031 U TWM619031 U TW M619031U
Authority
TW
Taiwan
Prior art keywords
manchester
data
peripheral interface
signal
unit
Prior art date
Application number
TW110206579U
Other languages
Chinese (zh)
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 新唐科技股份有限公司
Publication of TWM619031U publication Critical patent/TWM619031U/en

Links

Images

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

The utility model provides an apparatus of Manchester transceiver, which includes a receiving unit and a transmitting unit. The receiving unit includes a comparator to receive a Manchester analog signal and convert into an input signal with pulse wave form. A SPI is set to an operation as a slave device. The input signal with pulse wave form is received by a signal input terminal and a timer capture terminal. The rising edge and the falling edge of the input signal is sequentially obtained due to internal operation of the SPI, wherein the SPI obtains a series of data for subsequent use according to the rising edges and the falling edges based on the internal clock. The transmitting unit includes: a processing unit to decode a to-be-transmitted data into digital data with Manchester wave form; a memory unit storing the digital data, triggered by a timing control in satisfying the Manchester wave form to transmitted to a DAC for conversion and transmission.

Description

曼徹斯特收發裝置Manchester Transceiver

本新型創作涉及一種曼徹斯特編碼與解碼技術,且特別是關於曼徹斯特收發裝置,使用序列周邊介面進行曼徹斯特解碼與編碼。The new creation relates to a Manchester encoding and decoding technology, and particularly to a Manchester transceiver device, which uses a serial peripheral interface to perform Manchester decoding and encoding.

隨著電子裝置的功能增加,對於兩端的電子設備之間通信的資料量也隨著大幅增加。因應大量資料的傳輸其會增加信號頻率來提升傳送速率。As the functions of electronic devices increase, the amount of data communicated between electronic devices at both ends also increases substantially. In response to a large amount of data transmission, it will increase the signal frequency to increase the transmission rate.

傳送速率的增加,相對的也需要更多的編碼以及解碼的處理。例如數位的資料先通過曼徹斯特的編碼後傳送給遠端的電子設備。在操作上,此遠端的電子設備也可以視為是從設備(slave device)。遠端的電子設備在接收到傳送的曼徹斯特信號後,需要進行曼徹斯特信號解碼,以取得所傳送的數位的資料串。資料串的數值是由“0”與“1”所組成一串資料,其分別對應信號的低水準與高水準。The increase in transmission rate requires more encoding and decoding processing. For example, digital data is first encoded in Manchester and then transmitted to the remote electronic device. In operation, the remote electronic device can also be regarded as a slave device. After receiving the transmitted Manchester signal, the remote electronic device needs to decode the Manchester signal to obtain the transmitted digital data string. The value of the data string is a string of data composed of "0" and "1", which respectively correspond to the low level and high level of the signal.

例如新一代5G利用在波分複用系統中,在發射端為每個波長上迭加一小幅度的低頻正弦或余弦調製作為標識,不同的波長採用不同的頻率標識。此低頻正弦或者余弦的信號迭加到光波長時,是對於光波長的頂部有一個調製幅度,故也可稱為調頂信號其編碼的方式是以曼徹斯特信號的方式來編碼。For example, the new generation of 5G uses a wavelength division multiplexing system to superimpose a small amplitude low-frequency sine or cosine modulation on each wavelength at the transmitting end as an identification, and different wavelengths use different frequency identifications. When the low-frequency sine or cosine signal is superimposed on the optical wavelength, there is a modulation amplitude for the top of the optical wavelength, so it can also be called a top-tuned signal. The coding method is the Manchester signal.

根據曼徹斯特信號的編碼方式,其資料值是與脈衝的寬度來表現,其有利於遠距離的傳送。如此,根據一般的方式,接收端的電子設備,即是從設備需要有處理單元例如中央處理單元來解析脈衝的寬度,進而決定資料的數值。也就是說,傳統的曼徹斯特解碼一般使用軟體插斷計算脈衝寬度來決定曼徹斯特碼,其包含“0” 或 “1”的檢測。對於需要檢測較高頻率的曼徹斯特信號,中央處理單元相對較大。According to the encoding method of Manchester signal, its data value is expressed by the width of the pulse, which is conducive to long-distance transmission. In this way, according to a general method, the electronic device at the receiving end, that is, the slave device, needs a processing unit, such as a central processing unit, to analyze the pulse width, and then determine the value of the data. That is to say, the traditional Manchester decoding generally uses software to interrupt and calculate the pulse width to determine the Manchester code, which includes the detection of "0" or "1". For Manchester signals that need to detect higher frequencies, the central processing unit is relatively large.

關於要發送的曼徹斯特信號,其也需要考慮減化編碼,使得編碼與解碼可以整合。Regarding the Manchester signal to be transmitted, it also needs to consider reduced coding so that coding and decoding can be integrated.

中央處理單元還會用於整體設備的操作,因此減少因為曼徹斯特信號的解碼而消耗中央處理單元的工作資源的議題,在設計上是需要進一步考慮。The central processing unit will also be used for the operation of the overall equipment, so reducing the issue of consuming the work resources of the central processing unit due to the decoding of Manchester signals requires further consideration in design.

本新型創作提供一種關於曼徹斯特信號的解碼與編碼的機制,其使用序列周邊介面的功能,適當調整後即可對曼徹斯特信號解碼,而不需要使用中央處理單元對信號脈衝寬度的解析來達到解碼。編碼的部分可以將數位資料,使用儲存方式解析為曼徹斯特的波形,其後依照時間的控制轉換成為類比的輸出信號。This new creation provides a mechanism for decoding and encoding Manchester signals. It uses the function of the peripheral interface of the sequence to decode Manchester signals after appropriate adjustments, without the need to use the central processing unit to analyze the signal pulse width to achieve decoding. The encoding part can parse the digital data into Manchester's waveform using the storage method, and then convert it into an analog output signal according to the control of time.

在一實施例,本新型創作提供一種曼徹斯特收發裝置,包括接收單元及發送單元。接收單元包括比較器用以接收曼徹斯特類比信號,並轉換成為方形波形式的輸入信號;以及序列周邊介面設定成為從設備的操作,通過信號接收端點以及定時捕捉端點,接收方形波形式的所述輸入信號,且通過所述序列周邊介面的內部運作,依序取得所述輸入信號的上升緣與下降緣,其中所述序列周邊介面根據內部時鐘,依照所述上升緣與所述下降緣取得串列資料,以供後續使用。發送單元包括:處理單元,將要發送的資料解析成為曼徹斯特波形的數位資料;記憶體單元,儲存所述數位資料;週邊直接記憶體存取單元;以及數位到類比轉換單元。所述週邊直接記憶體存取單元,依照符合曼徹斯特波形的時間控制被促發,將儲存在所述記憶體單元的所述數位資料傳送給所述數位到類比轉換單元以使轉換並發送。In one embodiment, the present invention provides a Manchester transceiver device, which includes a receiving unit and a sending unit. The receiving unit includes a comparator to receive the Manchester analog signal and convert it into an input signal in the form of a square wave; and the peripheral interface of the sequence is set to operate as a slave device, through the signal receiving end point and the timing capture end point, to receive the square wave form of the input signal. Input signal, and obtain the rising edge and falling edge of the input signal in sequence through the internal operation of the sequence peripheral interface, wherein the sequence peripheral interface obtains the sequence according to the internal clock according to the rising edge and the falling edge List the data for subsequent use. The sending unit includes: a processing unit that parses the data to be sent into digital data of Manchester waveform; a memory unit that stores the digital data; a peripheral direct memory access unit; and a digital-to-analog conversion unit. The peripheral direct memory access unit is activated according to the time control conforming to the Manchester waveform, and transmits the digital data stored in the memory unit to the digital-to-analog conversion unit for conversion and transmission.

在一實施例,對於所述曼徹斯特收發裝置,所述序列周邊介面還包括對所述串列資料進行反相處理,以得到輸入信號所攜帶的串列資料。In one embodiment, for the Manchester transceiver device, the serial peripheral interface further includes inverting the serial data to obtain the serial data carried by the input signal.

在一實施例,對於所述曼徹斯特收發裝置,序列周邊介面的片選端是接地,以將所述序列周邊介面設定成為所述從設備的操作。In one embodiment, for the Manchester transceiver device, the chip select terminal of the serial peripheral interface is grounded, so as to set the serial peripheral interface to be the operation of the slave device.

在一實施例,對於所述曼徹斯特收發裝置,所述序列周邊介面的主機輸出從機輸入接腳當作所述信號接收端點,接收所述輸入信號。In one embodiment, for the Manchester transceiver device, the host output slave input pin of the serial peripheral interface is used as the signal receiving end point to receive the input signal.

在一實施例,對於所述曼徹斯特收發裝置,所述序列周邊介面的時鐘輸入端點與內部時鐘端點連接,由所述序列周邊介面的所述內部時鐘提供給所述時鐘輸入端點。In one embodiment, for the Manchester transceiver device, the clock input terminal of the serial peripheral interface is connected to an internal clock terminal, and the internal clock of the serial peripheral interface is provided to the clock input terminal.

在一實施例,對於所述曼徹斯特收發裝置,所述序列周邊介面的解碼操作,不涉及處理單元的運作。In one embodiment, for the Manchester transceiver device, the decoding operation of the serial peripheral interface does not involve the operation of the processing unit.

在一實施例,對於所述曼徹斯特收發裝置,根據所述內部時鐘的上升緣時間點,檢測所述輸入信號的所述上升緣或所述下降緣,以決定資料“1”或是資料“0”的資料。In one embodiment, for the Manchester transceiver device, the rising edge or the falling edge of the input signal is detected according to the time point of the rising edge of the internal clock to determine the data "1" or the data "0". "data of.

在一實施例,對於所述曼徹斯特收發裝置,將資料反相,以得到所述輸入信號的資料串。In one embodiment, for the Manchester transceiver device, data is inverted to obtain the data string of the input signal.

在一實施例,對於所述曼徹斯特收發裝置,所述資料串以8個位資料構成一個字資料。In one embodiment, for the Manchester transceiver device, the data string uses 8 bits of data to form a word data.

在一實施例,對於所述曼徹斯特收發裝置,所述發送單元的所述處理單元,使用兩個16位來解析曼徹斯特的一個數位。In an embodiment, for the Manchester transceiver device, the processing unit of the sending unit uses two 16 bits to parse one digit of Manchester.

在一實施例,對於所述曼徹斯特收發裝置,曼徹斯特的“0”信號是以0x0及0xFFF轉換發送,曼徹斯特的“1”信號是以0xFFF及0x0轉換發送。In one embodiment, for the Manchester transceiver device, the "0" signal of Manchester is converted and sent from 0x0 and 0xFFF, and the "1" signal of Manchester is converted and sent from 0xFFF and 0x0.

包含附圖以便進一步理解本新型創作,且附圖併入本說明書中並構成本說明書的一部分。附圖說明本新型創作的實施例,並與描述一起用於解釋本新型創作的原理。The drawings are included in order to further understand the new creation, and the drawings are incorporated into this specification and constitute a part of this specification. The drawings illustrate the embodiments of the new creation, and together with the description are used to explain the principles of the new creation.

本新型創作是關於曼徹斯特信號的收發裝置,用於對曼徹斯特信號解碼,以及將發送的資料編碼成為曼徹斯特類比信號。上述曼徹斯特信號的收發裝置可為光調頂曼徹斯特信號收發裝置。解碼的處理可以不需要使用處理單元,例如中央處理單元,CPU,來解析信號的脈衝寬度。本新型創作的曼徹斯特收發裝置,在一實施例,解碼處理可以使用序列周邊介面(Serial Peripheral Interface,SPI)的硬體處理功能,在適當調整序列周邊介面的操作方式,可以接收曼徹斯特信號進行解碼。This new creation is about a Manchester signal transceiver, which is used to decode the Manchester signal and encode the transmitted data into a Manchester analog signal. The aforementioned Manchester signal transceiver device may be an optically modulated Manchester signal transceiver device. The decoding process may not need to use a processing unit, such as a central processing unit or a CPU, to analyze the pulse width of the signal. In one embodiment of the Manchester transceiver device created by the present invention, the decoding process can use the hardware processing function of the Serial Peripheral Interface (SPI), and after appropriately adjusting the operation mode of the serial peripheral interface, it can receive Manchester signals for decoding.

在一實施例,序列周邊介面所具備的功能進行曼徹斯特信號的解碼,如此曼徹斯特解碼裝置可以在序列周邊介面硬體架構下達成,不需要涉及中央處理單元的處理。In one embodiment, the function of the serial peripheral interface performs the decoding of Manchester signals, so that the Manchester decoding device can be achieved under the hardware architecture of the serial peripheral interface without involving the processing of the central processing unit.

以下舉多個實施例來說明,但是本新型創作不限於所舉的實施例。A number of embodiments are described below, but the present invention is not limited to the embodiments described.

圖1是本新型創作一實施例,使用序列周邊介面達成曼徹斯特收發裝置的結構示意圖。參閱圖1,在一實施例,曼徹斯特收發裝置50包括接收單元100以及發送單元200。接收單元100通過端點32接收曼徹斯特類比信號30進行解碼。發送單元200將所要發送的數位資料解析編碼成為符合曼徹斯特波形的數位資料,再依時間順序轉換成類比信號36,通過端點34傳送出去。FIG. 1 is a schematic diagram of an embodiment of the present invention, which uses a serial peripheral interface to achieve a Manchester transceiver device. Referring to FIG. 1, in one embodiment, the Manchester transceiver device 50 includes a receiving unit 100 and a sending unit 200. The receiving unit 100 receives the Manchester analog signal 30 through the endpoint 32 for decoding. The sending unit 200 parses and encodes the digital data to be sent into digital data conforming to the Manchester waveform, and then converts it into an analog signal 36 in chronological order, and transmits it through the endpoint 34.

以下再進一步說明接收單元100以及發送單元200的結構與操作機制。The structure and operation mechanism of the receiving unit 100 and the sending unit 200 are further described below.

先說明接收單元100的解碼機制,接收單元100可是當作曼徹斯特解碼裝置,例如是包括序列周邊介面的設備。序列周邊介面用於一串位元資料,由主設備傳送給從設備。在序列周邊介面具備的能力,是可以根據信號的上升緣或是下降緣,依照時鐘的週期來決定信號在對應週期的邏輯水準,其低水準與高水準而決定位元資料的數值是“0”或是“1”。First, the decoding mechanism of the receiving unit 100 will be explained. The receiving unit 100 can be used as a Manchester decoding device, for example, a device including a serial peripheral interface. The serial peripheral interface is used for a string of bit data, which is sent from the master device to the slave device. The ability of the serial peripheral interface is to determine the logic level of the signal in the corresponding cycle according to the rising or falling edge of the signal and the cycle of the clock. The low level and high level determine the value of the bit data as "0". "Or "1".

曼徹斯特的類比信號30由比較器52接收。比較器52的參考端接收類比參考信號,用以轉換成方形波的輸入信號112。The analog signal 30 of Manchester is received by the comparator 52. The reference terminal of the comparator 52 receives the analog reference signal for conversion into the square wave input signal 112.

在一實施例,在遠端設備要產生曼徹斯特的類比信號30,其例如是使用電/光轉換裝置或發光電晶體,依照 “0”或“1”對應發出兩種不同強度的光,再經過幅度的調製,也就是一般所謂的調頂處理,得到曼徹斯特編碼的類比信號30。於此,本新型創作的曼徹斯特收發裝置50所接收的類比信號30是在遠端設備已經曼徹斯特編碼的類比信號30。本新型創作不限定遠端設備如何產生類比信號30。In one embodiment, the remote device needs to generate the Manchester analog signal 30, which uses, for example, an electrical/optical conversion device or a light-emitting transistor, and emits two different intensities of light corresponding to "0" or "1", and then passes through The amplitude modulation, that is, the so-called top adjustment processing, obtains the Manchester coded analog signal 30. Here, the analog signal 30 received by the Manchester transceiver 50 created by the present invention is the analog signal 30 that has been Manchester-encoded at the remote device. The creation of the new model does not limit how the remote device generates the analog signal 30.

在一實施例,本新型創作使用比較器52,根據類比參考信號,將類比信號30轉換成方形波的輸入信號112,其後僅根據序列周邊介面的操作,直接將輸入信號112解碼,不需要消耗處理單元來處理脈衝寬度。In one embodiment, the novel creation uses a comparator 52 to convert the analog signal 30 into a square wave input signal 112 based on the analog reference signal. After that, the input signal 112 is directly decoded based on the operation of the peripheral interface of the sequence. The processing unit is consumed to process the pulse width.

從硬體的設置上來看,接收單元100的序列周邊介面包含多個端點,例如端點102是主機輸出從機輸入端點,以SPI_MOSI表示。其它的端點還包括端點104,是上升緣或下降緣捕捉端點,以Timer_capture表示,也稱為定時捕捉端點。在操作上,端點102與端點104同時接收曼徹斯特格式的輸入信號。端點106是內部時鐘端點,以GPIO表示。端點108是輸出時端點,以SPI_CLK。在操作上,在端點106提供的內部時鐘當作時鐘 114,回授到端點108,也就是直接採用序列周邊介面內部的時鐘來當作解碼的時鐘114。端點110是片選端點,以SPI_SS表示,可以設定序列周邊介面成為從設備的操作。From the perspective of the hardware configuration, the serial peripheral interface of the receiving unit 100 includes multiple endpoints. For example, the endpoint 102 is a host output and a slave input endpoint, represented by SPI_MOSI. Other endpoints also include endpoint 104, which is a rising edge or falling edge capture endpoint, represented by Timer_capture, and is also called a timing capture endpoint. In operation, the endpoint 102 and the endpoint 104 simultaneously receive input signals in Manchester format. The endpoint 106 is an internal clock endpoint and is represented by GPIO. The endpoint 108 is an output endpoint, using SPI_CLK. In operation, the internal clock provided by the endpoint 106 is used as the clock 114 and fed back to the endpoint 108, that is, the internal clock of the serial peripheral interface is directly used as the decoded clock 114. The endpoint 110 is a chip select endpoint, represented by SPI_SS, and the peripheral interface of the sequence can be set to operate as a slave device.

在一實施例,從整體來看,曼徹斯特收發裝置的接收單元100的解碼操作是將序列周邊介面設定成為從設備的操作,例如其片選端點SPI_SS接地,維持低電壓。所述序列周邊介面通過信號接收端點102以及上升緣或下降緣捕捉端點104,接收曼徹斯特格式的輸入信號112,且通過所述序列周邊介面的內部運作,依序取得所述輸入信號的上升緣與下降緣,其如圖2的機制。所述序列周邊介面根據在端點106內部時鐘,依照所述上升緣與所述下降緣取得串列資料,以供後續使用。還例如,將取得的串列資料反相後,得到輸入信號所攜帶的資料的位元數值,將其儲存後供其它後續操作的使用。In one embodiment, as a whole, the decoding operation of the receiving unit 100 of the Manchester transceiver is an operation of setting the serial peripheral interface as a slave device, for example, the chip select terminal SPI_SS is grounded to maintain a low voltage. The serial peripheral interface receives the Manchester format input signal 112 through the signal receiving terminal 102 and the rising or falling edge capture terminal 104, and sequentially obtains the rising of the input signal through the internal operation of the serial peripheral interface Edge and falling edge, the mechanism is shown in Figure 2. The serial peripheral interface obtains serial data according to the rising edge and the falling edge according to the internal clock in the terminal 106 for subsequent use. For another example, after inverting the obtained serial data, the bit value of the data carried by the input signal is obtained, which is stored for use in other subsequent operations.

圖2是本新型創作一實施例,使用序列周邊介面進行曼徹斯特解碼機制的信號關係示意圖。參見圖1和圖2,信號150代表一串序列的位元資料,例如是以8個位資料當作一個字資料的“01011001”。Fig. 2 is a schematic diagram of the signal relationship of the Manchester decoding mechanism using the sequence peripheral interface in an embodiment of the present invention. 1 and 2, the signal 150 represents a sequence of bit data, for example, "01011001" which uses 8 bit data as one word data.

根據曼徹斯特編碼的格式,其轉換成以脈衝寬度來代表位元資料的輸入信號112,以方形波的形式代表。輸入信號112包含上升緣與下降緣。上升緣後面的信號的邏輯水準是對應高水準的“1”。下降緣後面的信號的邏輯水準是對應低水準的“0”。從端點104輸入的輸入信號112,其上升緣與下降緣可以被檢測到。According to the Manchester encoding format, it is converted into an input signal 112 that represents bit data with a pulse width, which is represented in the form of a square wave. The input signal 112 includes a rising edge and a falling edge. The logical level of the signal behind the rising edge is "1" corresponding to the high level. The logic level of the signal behind the falling edge is "0" corresponding to the low level. The rising edge and falling edge of the input signal 112 input from the terminal 104 can be detected.

由於序列周邊介面從端點108輸入的時鐘114,修改為由端點106的內部時鐘提供。根據時鐘114的週期,可以檢測當下週期的輸入信號的信號前緣是上升緣或下降緣。上升緣代表信號的邏輯水準是對應高水準的“1”。 下降緣代表信號的邏輯水準是對應低水準的“0”。使用內部的時鐘114進行前述的解碼,可以得到此階段的串列資料116。信號118可以終止一串的資料,例如是8個位數的一個封包單元。The clock 114 input from the endpoint 108 is modified to be provided by the internal clock of the endpoint 106 because of the serial peripheral interface. According to the period of the clock 114, it can be detected whether the signal leading edge of the input signal of the current period is a rising edge or a falling edge. The rising edge represents the logical level of the signal is "1" corresponding to the high level. The falling edge represents the logic level of the signal is "0" corresponding to the low level. Using the internal clock 114 to perform the aforementioned decoding, the serial data 116 at this stage can be obtained. The signal 118 can terminate a string of data, for example, a packet unit of 8 digits.

於此可以注意到,串列資料116的內容是“10100110”,也就是輸入信號112的內容“01011001”的反相。因此在一實施例,可以在後續對串列資料116進行反相,得到輸入信號112的內容。於此,反相的操作不限於特定方式。例如輸入信號112也可以先反相後輸入。又或是在使用時鐘114解碼時,也可以直接反相。又或是在外部電路進行反相。本新型創作不限於反相的方式。It can be noted here that the content of the serial data 116 is "10100110", which is the inverse of the content of the input signal 112 "01011001". Therefore, in one embodiment, the serial data 116 can be inverted later to obtain the content of the input signal 112. Here, the operation of inversion is not limited to a specific method. For example, the input signal 112 may also be inverted and then input. Or when the clock 114 is used for decoding, it can also be directly inverted. Or it may be reversed in an external circuit. The new creation is not limited to the reversed approach.

本新型創作提出曼徹斯特信號的解碼裝置,其使用序列周邊介面的功能,通過適當調整後,依照序列周邊介面所具有的功能即可對曼徹斯特信號解碼,而不需要使用中央處理單元對信號脈衝寬度的解析來達到解碼。This new creation proposes a Manchester signal decoding device, which uses the function of the peripheral interface of the sequence. After proper adjustment, the Manchester signal can be decoded according to the function of the peripheral interface of the sequence, without the need to use the central processing unit to determine the pulse width of the signal. Analyze to achieve decoding.

對應高頻率的信號傳送的操作時,本新型創作可以不實質消耗中央處理單元的運算負載,而達成曼徹斯特信號的解碼。節省的中央處理單元的負載可以提升在高頻率信號傳送的操作條件下的整體效能。Corresponding to the operation of high-frequency signal transmission, the novel creation can achieve the decoding of Manchester signals without actually consuming the computational load of the central processing unit. The saved load of the central processing unit can improve the overall performance under the operating conditions of high-frequency signal transmission.

再參見圖1,以下說明發送單元200的編碼機制。在一實施例,發送單元200包括處理單元60,其例如是以中央處理單元CPU為例來代表。發送單元200還可以包括記憶體單元62,以靜態隨機存取記憶體SRAM為例來表示。發送單元200還可以包括週邊直接記憶體存取單元(peripheral direct memory access, PDMA) 64 及數位到類比轉換單元66。週邊直接記憶體存取單元64由發送單元200的時間控制單元ctrl 68促發,將記憶體單元62已經曼徹斯特編碼的數位資料傳送給數位到類比轉換單元66以轉換成類比的輸出信號36,通過端點34輸出。Referring to FIG. 1 again, the encoding mechanism of the sending unit 200 will be described below. In an embodiment, the sending unit 200 includes a processing unit 60, which is represented by, for example, a central processing unit CPU. The sending unit 200 may further include a memory unit 62, which is represented by a static random access memory SRAM as an example. The sending unit 200 may also include a peripheral direct memory access (PDMA) 64 and a digital-to-analog conversion unit 66. The peripheral direct memory access unit 64 is triggered by the time control unit ctrl 68 of the sending unit 200 to transmit the Manchester-encoded digital data of the memory unit 62 to the digital-to-analog conversion unit 66 for conversion into an analog output signal 36. Terminal 34 output.

曼徹斯特編碼的處理例如由處理單元60將要發送的資料解析成為曼徹斯特波形的數位資料,其例如圖2數位的信號150以及輸入信號112之間的關係。記憶體單元62儲存所述數位資料。週邊直接記憶體存取單元64依照符合曼徹斯特波形的時間控制,被時間控制單元68促發,將儲存在所述記憶體單元的所述數位資料傳送給所述數位到類比轉換單元66以使轉換並發送。For the Manchester encoding process, for example, the processing unit 60 analyzes the data to be sent into digital data of Manchester waveform, such as the relationship between the digital signal 150 and the input signal 112 in FIG. 2. The memory unit 62 stores the digital data. The peripheral direct memory access unit 64 is triggered by the time control unit 68 in accordance with the time control conforming to the Manchester waveform, and transmits the digital data stored in the memory unit to the digital-to-analog conversion unit 66 to convert And send.

還具體說明,在一實施例,所述發送單元200的所述處理單元60,使用兩個16位來解析曼徹斯特的一個數位。It is also specifically explained that, in one embodiment, the processing unit 60 of the sending unit 200 uses two 16 bits to parse one digit of Manchester.

在一實施例,對於所述曼徹斯特收發裝置50,曼徹斯特的“0”信號是以0x0及0xFFF轉換發送,曼徹斯特的“1”信號是以0xFFF及0x0轉換發送。換句話說,要傳送曼徹斯特的一個位的資料,例如會使用4個字的記憶體長度。In one embodiment, for the Manchester transceiver 50, the "0" signal of Manchester is converted and sent from 0x0 and 0xFFF, and the "1" signal of Manchester is converted and sent from 0xFFF and 0x0. In other words, to transmit one bit of Manchester data, for example, a memory length of 4 words will be used.

在一實施例,本新型創作的發送單元200的處理單元60,可以不需要設置在發送單元200的內部,而例如可以由外部電路處理,而後將資料儲存到記憶體單元62。In an embodiment, the processing unit 60 of the sending unit 200 created by the present invention does not need to be arranged inside the sending unit 200, but may be processed by an external circuit, and then the data is stored in the memory unit 62.

本新型創作因應資料快速且大量傳送,其所涉及的曼徹斯特編碼與解碼可以高效處理,其僅需要對序列周邊介面進行小幅度修改與作即可完成,減少對中央處理單元在編碼與解碼的整體負載,允許中央處理單元可以處理其它的操作,提升整體電子裝置的運作效率。In response to the rapid and large-scale transmission of data, the new creation can be processed efficiently with Manchester encoding and decoding involved. It can be completed by only minor modifications and operations on the peripheral interface of the sequence, reducing the overall encoding and decoding of the central processing unit. The load allows the central processing unit to process other operations, and improves the operating efficiency of the overall electronic device.

最後應說明的是:以上各實施例僅用以說明本新型創作的技術方案,而非對其限制;儘管參照前述各實施例對本新型創作進行了詳細的說明,本領域的普通技術人員應當理解:其依然可以對前述各實施例所記載的技術方案進行修改,或者對其中部分或者全部技術特徵進行等同替換;而這些修改或者替換,並不使相應技術方案的本質脫離本新型創作權利要求範圍。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the new creation, not to limit it; although the new creation is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand : It can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the new creation claims .

30:類比信號 32、34:端點 36:類比信號 50:曼徹斯特收發裝置 52:比較器 60:處理單元 62:記憶體單元 64:週邊直接記憶體存取單元 66:數位到類比轉換單元 68:時間控制單元 100:接收單元 102、104、106、108、110:端點 112:輸入信號 114:時鐘 116:串列資料 118:信號 150:信號 200:發送單元30: analog signal 32, 34: Endpoint 36: analog signal 50: Manchester Transceiver 52: Comparator 60: processing unit 62: memory unit 64: Peripheral direct memory access unit 66: Digital to analog conversion unit 68: Time Control Unit 100: receiving unit 102, 104, 106, 108, 110: endpoint 112: Input signal 114: clock 116: serial data 118: Signal 150: signal 200: sending unit

圖1是本新型創作一實施例,使用序列周邊介面達成曼徹斯特收發裝置的結構示意圖。 圖2是本新型創作一實施例,使用序列周邊介面進行曼徹斯特解碼機制的信號關係示意圖。 FIG. 1 is a schematic diagram of an embodiment of the present invention, which uses a serial peripheral interface to achieve a Manchester transceiver device. Fig. 2 is a schematic diagram of the signal relationship of the Manchester decoding mechanism using the sequence peripheral interface in an embodiment of the present invention.

30:類比信號 30: analog signal

32、34:端點 32, 34: Endpoint

36:類比信號 36: analog signal

50:曼徹斯特收發裝置 50: Manchester Transceiver

52:比較器 52: Comparator

60:處理單元 60: processing unit

62:記憶體單元 62: memory unit

64:週邊直接記憶體存取單元 64: Peripheral direct memory access unit

66:數位到類比轉換單元 66: Digital to analog conversion unit

68:時間控制單元 68: Time Control Unit

100:接收單元 100: receiving unit

102、104、106、108、110:端點 102, 104, 106, 108, 110: endpoint

112:輸入信號 112: Input signal

114:時鐘 114: clock

200:發送單元 200: sending unit

Claims (10)

一種曼徹斯特收發裝置,包括: 接收單元;以及 發送單元, 其中所述接收單元包括: 比較器,接收曼徹斯特類比信號,並轉換成為方形波形式的輸入信號;以及 序列周邊介面,設定成為從設備的操作,通過信號接收端點以及定時捕捉端點,接收方形波形式的所述輸入信號,且通過所述序列周邊介面的內部運作,依序取得所述輸入信號的上升緣與下降緣,其中所述序列周邊介面根據內部時鐘,依照所述上升緣與所述下降緣取得串列資料,以供後續使用, 其中所述發送單元包括: 處理單元,將要發送的資料解析成為曼徹斯特波形的數位資料; 記憶體單元,儲存所述數位資料; 週邊直接記憶體存取單元;以及 數位到類比轉換單元, 其中所述週邊直接記憶體存取單元,依照符合曼徹斯特波形的時間控制被促發,將儲存在所述記憶體單元的所述數位資料傳送給所述數位到類比轉換單元以使轉換並發送。 A Manchester transceiver device, including: Receiving unit; and Sending unit, The receiving unit includes: The comparator receives the Manchester analog signal and converts it into an input signal in the form of a square wave; and The serial peripheral interface is set as the operation of the slave device. It receives the input signal in the form of a square wave through the signal receiving endpoint and the timing capture endpoint, and obtains the input signal in sequence through the internal operation of the serial peripheral interface The serial peripheral interface obtains serial data according to the rising edge and the falling edge according to the internal clock for subsequent use, The sending unit includes: The processing unit analyzes the data to be sent into digital data of Manchester waveform; A memory unit storing the digital data; Peripheral direct memory access unit; and Digital to analog conversion unit, The peripheral direct memory access unit is activated according to time control conforming to the Manchester waveform, and transmits the digital data stored in the memory unit to the digital-to-analog conversion unit for conversion and transmission. 如請求項1所述的曼徹斯特收發裝置,其中所述序列周邊介面還包括對所述串列資料進行反相處理,以得到輸入信號所攜帶的串列資料。The Manchester transceiver device according to claim 1, wherein the serial peripheral interface further includes inverting the serial data to obtain the serial data carried by the input signal. 如請求項1所述的曼徹斯特收發裝置,其中序列周邊介面的片選端點是接地,以將所述序列周邊介面設定成為所述從設備的操作。The Manchester transceiver device according to claim 1, wherein the chip select terminal of the serial peripheral interface is grounded, so that the serial peripheral interface is set as the operation of the slave device. 如請求項1所述的曼徹斯特收發裝置,其中所述序列周邊介面的主機輸出從機輸入接腳當作所述信號接收端點,接收所述輸入信號。The Manchester transceiver device according to claim 1, wherein the host output slave input pin of the serial peripheral interface is used as the signal receiving end point to receive the input signal. 如請求項1所述的曼徹斯特收發裝置,其中所述序列周邊介面的時鐘輸入端點與內部時鐘端點連接,由所述序列周邊介面的所述內部時鐘提供給所述時鐘輸入端點。The Manchester transceiver device according to claim 1, wherein the clock input terminal of the serial peripheral interface is connected to an internal clock terminal, and the internal clock of the serial peripheral interface is provided to the clock input terminal. 如請求項1所述的曼徹斯特收發裝置,其中所述序列周邊介面的解碼操作,不涉及處理單元的運作。The Manchester transceiver device according to claim 1, wherein the decoding operation of the serial peripheral interface does not involve the operation of the processing unit. 如請求項1所述的曼徹斯特收發裝置,其中根據所述內部時鐘的上升緣時間點,檢測所述輸入信號的所述上升緣或所述下降緣,以決定資料“1”或是資料“0”的資料。The Manchester transceiver device according to claim 1, wherein the rising edge or the falling edge of the input signal is detected according to the time point of the rising edge of the internal clock to determine the data "1" or the data "0" "data of. 如請求項7所述的曼徹斯特收發裝置,其中將資料反相,以得到所述輸入信號的資料串。The Manchester transceiver device according to claim 7, wherein the data is inverted to obtain the data string of the input signal. 如請求項7所述的曼徹斯特收發裝置,其中所述序列周邊介面不涉及檢測脈衝寬度來決定資料值。The Manchester transceiver device according to claim 7, wherein the serial peripheral interface does not involve detecting the pulse width to determine the data value. 如請求項1所述的曼徹斯特收發裝置,其中所述發送單元的所述處理單元,使用兩個16位元的存儲單元來解析曼徹斯特的一個數位。The Manchester transceiver device according to claim 1, wherein the processing unit of the sending unit uses two 16-bit storage units to parse one digit of Manchester.
TW110206579U 2020-10-30 2021-06-07 Manchester transceiver TWM619031U (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202022468029.6U CN213783280U (en) 2020-10-30 2020-10-30 Manchester transceiver
CN202022468029.6 2020-10-30

Publications (1)

Publication Number Publication Date
TWM619031U true TWM619031U (en) 2021-11-01

Family

ID=76912633

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110206579U TWM619031U (en) 2020-10-30 2021-06-07 Manchester transceiver

Country Status (2)

Country Link
CN (1) CN213783280U (en)
TW (1) TWM619031U (en)

Also Published As

Publication number Publication date
CN213783280U (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US20210073164A1 (en) Semiconductor device and memory system
US10579581B2 (en) Multilane heterogeneous serial bus
TWI506449B (en) Re-driver power management
WO2020259721A2 (en) Truly random number generator and truly random number generation method for conversion of bridge voltage at random intervals in mcu
CN108400817A (en) A kind of visible light communication method for transmitting Manchester's code based on serial ports
CN111884660A (en) Huffman coding equipment
US20200242918A1 (en) Infrared protocol-based infrared code transmission circuit, chip, remote control device and air conditioner
JP2003264598A (en) Encoding and decoding techniques using variable length codes in wireless communication
TWM619031U (en) Manchester transceiver
TW202221681A (en) Light-emitting diode driver and light-emitting diode driving device
CN108768517B (en) PPM-based sending end, receiving end and visible light communication system
CN104467865A (en) Serial communication protocol controller, byte splitting circuit and 8b10b encoder
US11615048B2 (en) Adaptive serial general-purpose input output interface and signal receiver thereof
CN109347605B (en) Encoding method, decoding method and device, and computer readable storage medium
CN103001901B (en) Integrated circuit high-speed digital interface module based on modified difference pulse code modulation (MDPCM)
WO2021259324A1 (en) Clock sending apparatus and method, and clock receiving apparatus and method
CN213094183U (en) Serial encoding circuit
TW202215749A (en) Decoding method for induction type power supply system and related supplying-end module
CN215222165U (en) Manchester decoding device
CN113238610A (en) Counter signal synchronization method, device, equipment and storage medium
CN107256199B (en) Single bus circuit with low power consumption
TWI807519B (en) Adaptive serial general purpose input output interface and siganl receiver thereof
CN115037411B (en) Signal receiving and transmitting system and signal receiver thereof
US12015447B2 (en) Microcontroller and signal modulation method
US8175171B2 (en) Transmitter, receiver, transmitting method, receiving method, variable-length serial burst data transfer system, semiconductor device and hybrid semiconductor device