Signal edge position encoding
By encoding and decoding the signal edge position in the serial data stream between the motor controller and the drive power module, the complexity and cost of the isolation circuit in the existing technology is solved, and more efficient signal transmission and System simplification.
Patent Information
- Application Number
- CN201811652562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-12-29
- Filing Date
- 2018-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-12-29
AI Technical Summary
The isolation circuit between the existing motor controller module and the motor drive power module is costly and complex, resulting in a large number of isolation circuits transmitting control and timing information, which increases the complexity and cost of the system.
By encoding the signal edge position in the serial data stream, the serializer module is used to sample and encode the parallel signal into a packet frame, transmit the edge position and polarity, reduce the number of bits in the serial data stream, and deserialize The decoding module generates parallel output signals, reducing the number of isolation circuits.
Reducing the number of bits in the serial data stream improves channel transmission performance, reduces the number of isolation circuits, and reduces system complexity and cost while maintaining timing and synchronization between signals.
Smart Images

Figure CN109995378B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates generally to circuits and, more particularly, to encoding signal edge locations in a serial data stream. Background Art
[0002] A motor controller is a device, circuit or system that controls the performance of a motor in a predetermined manner. For example, in a three-phase alternating current (AC) motor, the individual phase windings of the motor are controlled and timed so that one phase is activated as another phase is deactivated in order to rotate the motor correctly. The motor controller is typically coupled to a motor power module to drive the individual phases of the motor. In some examples, the motor controller module is electrically isolated from the motor power module via an isolation circuit (e.g., an isolated gate driver), which couples the corresponding controller and power module. In the example of a three-phase motor system (including high-side and low-side drivers for each phase of the motor), if complete isolation is required between each driver, six isolation circuits will be provided to isolate each driver from each other and from a common circuit path (such as ground). In order to manufacture the corresponding controller and power module interface, it will be more expensive to isolate the driver circuit and related control signals separately to control and monitor the motor. Summary of the invention
[0003] In one example, a circuit includes: a serializer module, the serializer module including: an input stage, the input stage samples an input signal to capture an edge position for the input signal in a given time frame. An edge encoder encodes the edge position for the input signal into a packet frame to specify the position where the edge position for the input signal occurs in the given time frame. A transmitter receives the packet frame from the edge decoder and converts the packet frame into a serial data stream. The transmitter transmits the edge position for the input signal via the serial data stream.
[0004] In another example, a circuit includes: a deserializer module, the deserializer module including: a receiver receiving a serial data stream from a transmitter. The serial data stream includes: at least one packet frame to specify a corresponding edge position for an input signal from the transmitter in a given time frame. An output stage writes (one or more) packet frames from the receiver into a buffer. An edge decoder decodes the corresponding edge position from (one or more) packet frames in the buffer with respect to the given time frame to generate a parallel output signal to communicate control information with a motor power module or a motor controller module.
[0005] In yet another example, a method includes sampling an input signal to determine corresponding edge positions corresponding to transitions of the input signal in a given time frame. The method includes encoding the corresponding edge positions for the sampled input signal into at least one packet frame to specify where the corresponding edge positions for the sampled input signal occur in the given time frame. The method includes encoding the corresponding polarity into (one or more) packet frames to specify the direction of the signal transition at the corresponding edge position. The method includes converting the (one or more) packet frames into a serial data stream that transmits the corresponding edge positions and the corresponding polarity for the sampled input signal via the serial data stream. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 An example circuit for encoding signal edge locations in a serial data stream is described.
[0007] Figure 2 Example circuits are described that encode signal edge positions in a serial data stream for conveying timing and / or control information via packet frames.
[0008] Figure 3 An example input stage and edge encoder are described that encode signal edge positions in a serial data stream for conveying timing and / or control information.
[0009] Figure 4 An example of a time formatted packet frame sent as a serial data stream is illustrated.
[0010] Figure 5 An example output stage and edge decoder that decodes signal edge locations in a serial data stream for conveying timing and / or control information is described.
[0011] Figure 6 An alternative example output stage and edge decoder that decodes signal edge positions in a serial data stream for conveying timing and / or control information is described.
[0012] Figure 7 An example system for converting controller and power signals to serial signals is described.
[0013] Figure 8 An example of a serializer-deserializer (SER-DES) module for transmitting signals between a controller module and a driver power module is described.
[0014] 【 Fig. 9 An example method of communicating serial signals between a controller module and a motor drive module is described. DETAILED DESCRIPTION
[0015] The present specification relates to a circuit for encoding signal edge positions in a serial data stream for transmitting timing and control information. Parallel signals can be grouped and serialized into a serial data stream via an input stage at one end of the circuit, and deserialized into parallel signals via an output stage at the other end to reduce isolation circuits between a motor controller module and a motor drive power module. The circuit includes: a serializer module, which includes an input stage, an edge encoder, and a transmitter. The input stage samples input signals (e.g., parallel output signals from a motor controller or a motor power module) to capture edge positions for each input signal in a given time frame. For example, one or more pulse width modulation (PWM) signals can be sampled over time to capture the position where edge transitions (e.g., rising or falling edges) occur within a given set of samples. The position where the edge transition occurs defines the edge position. The edge encoder encodes the edge position for each input signal into a grouped frame that specifies the position where the edge position for each corresponding input signal occurs in a given time frame. For example, instead of providing all sampled signal information for a given signal, an edge encoder encodes the location where the transitions occur and transmits that location, which saves several bits in the serial stream that must be transmitted.
[0016] After encoding, the transmitter receives the packet frame from the edge encoder and converts the packet frame into a serial data stream. The transmitter transmits the edge position and polarity for each input signal via the serial data stream. The deserializer module can receive the serial data stream and includes: a receiver, an output stage and an edge decoder. The receiver receives the serial data stream from the transmitter, and the output stage stores the packet frame received in the serial data stream in a buffer. The edge decoder decodes the edge position from the packet frame for each input signal with respect to a given time frame to generate a parallel output signal to transmit control and timing information with a motor power module or a motor controller module.
[0017] For example, if a given signal is sampled and captured as a seven-bit sampled signal "0001111", the edge position is encoded as "100", indicating that the edge occurs at the fourth bit position, so the bandwidth transmitted in the serial data stream is reduced from 7 bits to 3 bits (saving 4 bits for other data). In addition, the polarity of the signal edge can also be transmitted in the packet frame (for example, whether the edge is from high to low or from low to high). This type of encoding reduces the number of bits sent in the serial data stream while improving the transmission performance of the serial channel.
[0018] In addition to the efficient encoding and decoding of edge positions, the timing between signals is maintained by encoding and decoding timing information related to multiple signals within the same packet frame. Regarding the motor drive example, if a PWM high signal and a PWM low signal are to be transmitted, it is desired that the two signals are not valid at the same time in order to mitigate surges in the motor windings. In order to maintain such timing during the serialization process, the high-side and low-side PWM signals can be sampled simultaneously and packaged in the same packet frame. The packet frame can then be serialized and decoded in a manner that maintains the timing relationship between the high-side signal and the low-side signal when decoding. In this way, the timing information and synchronization between the signals are maintained during the serialization and deserialization processes.
[0019] Each of the serializer and deserializer modules can be combined at both ends of the circuit to provide bidirectional serial transmission between the transmitter module and the receiver module. With timing maintained due to encoding multiple signals within a given packet frame, parallel signals at each end of the system are converted into serial signals to alleviate the requirements in the system, such as multiple independent isolation circuits. As an example, separate serializer deserializer (SER-DES) modules can be coupled to a motor controller module and a motor drive power module, respectively, where the corresponding SER-DES module converts the parallel signals from each module into a serial data stream that is multiplexed (e.g., via time division or frequency division multiplexing) to maintain synchronization between the controller and the power module.
[0020] As used herein, the term "circuit" may include a collection of active and / or passive elements that perform a circuit function, such as an analog circuit or a control circuit. Additionally or alternatively, for example, the term "circuit" may include an integrated circuit (IC) in which all and / or some circuit elements are fabricated on a common substrate (e.g., a semiconductor substrate such as a die or chip).
[0021] Figure 1An example circuit for encoding signal edge positions in a serial data stream to transmit timing and control information in a motor drive circuit 100 is described. The motor drive circuit 100 includes a serializer module 110, which includes an input stage 120, an edge encoder 124, and a transmitter 130. The input stage 110 samples the input signal to capture the edge position for each input signal 140 in a given time frame (e.g., within a number of sampling clock cycles). As used herein, the term edge position refers to the position where an edge transition occurs in a given sampling group for the input signal 140. For example, if a given input signal 140 is sampled in a shift register via a sampling clock and captured by the input stage 120 as a seven-bit sampled signal "0100000", the edge position can be encoded as "010" by the edge encoder 124, indicating that the edge transition occurs between the positions of the second bits of the sampled signal 140, thereby saving four bits that need to be sent in the serial data stream 150.
[0022] In addition, the polarity of the signal edge can be encoded and transmitted in the serial packet frame. Polarity in this context refers to whether the signal edge transitions from high to low (falling edge) or from low to high (rising edge). The edge encoder 124 encodes the edge position and polarity for each sample of the input signal 140 into a packet frame, which specifies the location and edge polarity of the edge position occurring in a given sample for each corresponding digital input signal. The transmitter 130 receives the packet frame from the edge decoder 124 and converts the packet frame into a serial data stream 150. The transmitter 130 transmits the edge position and edge polarity for each input signal 140 via the serial data stream 150. In one example, the input stage 120 may include a separate shift register to capture edge transitions in response to a sampling clock (sample_clk) for each corresponding input signal 140 (see, e.g. Figure 3 ).
[0023] In some examples, the sample size for each input sample is selected so that the edge transition specified in the packet frame of the serial data stream 150 includes one input signal transition from a high state to a low state or from a low state to a high state for each input sample. As described above, the edge encoder 124 provides an encoded packet frame that includes data specifying an edge position for a signal starting at a given time period (position) within the packet frame and an edge polarity specifying a rising edge or a falling edge for the signal at the corresponding edge position.
[0024] The deserializer module 160 receives the serial data stream 150. The deserializer 160 includes an output stage 170, an edge decoder 174, and a receiver 180. The receiver 180 receives the serial data stream 150 from the transmitter 130 via a transmission link (e.g., an electrically conductive or wireless link). In some examples, the link can provide galvanic isolation between the modules 110 and 160. The output stage 170 includes a storage buffer for holding packet frames received from the serial data stream 150. The edge decoder 174 decodes edge positions from the packet frames stored in the buffer for each input signal 140 with respect to a given time frame to generate parallel output signals 190 to transmit control information (see, e.g., Figure 7 Each of the serializer module 110 and the deserializer module 160 may include a phase-locked loop (PLL) (see, for example, Figure 2 ) to synchronize the serial data streams transmitted between the corresponding modules. In addition, each of the serializer module 110 and the deserializer module 160 can be implemented on an integrated circuit substrate.
[0025] Figure 2 An example circuit 200 is illustrated for encoding signal edge positions in a serial data stream for transmitting timing and control information via a packet frame. The circuit 200 includes a serializer 210 that includes an input stage 214 for encoding edge positions and edge polarities (e.g., via an edge encoder, not shown) for an input signal at 216. A transmitter 220, shown as a TX finite state machine (FSM), transmits serial data representing the encoded edge positions along with other data. A phase-locked loop 224 controls module timing. The transmitter 220 transmits via a serial data stream 230 to a receiver, shown as an RX FSM 234 in a deserializer module 240. The phase-locked loop 244 controls module timing of the deserializer 240. An output stage 250 includes an edge decoder (not shown) and converts a serialized signal received from the serial data stream 230 to a parallel output signal at 260.
[0026] An example packet frame is shown at 270 and the example packet frame includes a synchronization sequence 274 and a separate codeword representing the edge and polarity of the coding of the representation input signal 216. In this packet frame example, three codewords 1, 2 and 3 are shown, but more than or less than three codewords can be transmitted in other examples. Each codeword in this example includes four bits, wherein three bits specify edge positions, and one bit specifies edge polarity. In order to maintain the desired timing between the signals, the edge encoder described herein can encode multiple signal edge positions for multiple input signals, which are sampled simultaneously by the input stage, and then decoded simultaneously at the output stage. Therefore, timing is maintained between the input signal edge positions in the packet frame.
[0027] For example, to provide synchronization between modules, the serializer 210 sends a synchronization sequence 274, such as AAA hexadecimal (once or more times), followed by 000h. The sequence 274 synchronizes the PLL frequency to synchronize the transmit and receive counters, FSM, etc. At 280, the bandwidth of the transmission link between the modules can be related to the sampling clock frequency. For example, the 7-bit input stage example will provide a 12-bit + 1-bit PLL synchronization codeword length. The synchronization pulse can periodically update the PLL 2224 and / or 244. The transmission link can operate at (13 / 7*sampling frequency) in this example.
[0028] Figure 3 An example input stage 310 and edge encoder 320 are illustrated for encoding signal edge positions in a serial data stream to convey timing and control information in a motor drive circuit. The input stage samples input signals as shown as IN1 to IN3 to capture the edge position for each input signal in a given time frame. Separate shift registers SR1 to SR3 are provided to capture each respective input IN1 to IN3. By scaling the number of shift registers in the input stage 310 to match the number of inputs sampled, more or less than three inputs may be sampled than shown in this example. The number of registers in each shift register is defined so that the captured events from the inputs have a maximum frequency of occurrence. Thus, the shift register length of the number and therefore the sampling size may be determined by design guidelines so that the events on the inputs have a maximum frequency of occurrence. Figure 3 In the example of , seven registers are configured for each shift register to accommodate a priori design information applied to the corresponding shift register, that is, a given input signal should not transition more than once within seven sampling clock cycles. Other shift register lengths can be selected in other examples, such as depending on the frequency of the input signal and the sampling clock frequency.
[0029] The edge encoder 320 encodes the edge position for each input signal IN1 to IN3 into a grouped frame that specifies the position where the edge position for each corresponding input signal occurs in a given time frame. At 330, three example signal captures are illustrated. For IN1, the captured signal is "1110000". For IN2, the captured signal is "0111111". For IN3, the captured signal is "0000011". The edge encoder 320 can be a processor and / or logic circuit that analyzes the captured encoded samples that have been loaded into the shift register represented at 330 to generate a version of the encoding at 340. In this example, the encoded version includes 3 bits for the edge position and 1 bit for the edge polarity. For the input sample IN1, the edge position is encoded as "100" and the edge polarity is zero, indicating that the edge transition is from a high state to a low state. For input sample IN2, the edge position is encoded as "010" and the edge polarity is 1, indicating that the edge transition is from a low state to a high state. For input sample IN3, the edge position is encoded as "110" and the edge polarity is 1, indicating that the edge transition is from a low state to a high state. Other encoding schemes can be used in other examples.
[0030] Figure 4 An example of a time formatted packet frame 400 sent as a serial data stream in a motor drive circuit is described. In this example, each of the three pulse width modulated (PWM) motor drive signals PWM1, PWM2, and PWM3 is sampled by a 500MHz clock. This will provide an edge resolution of approximately 2 nanoseconds (nsec). However, in other examples, other sampling times may be used. A serial signal SERIAL may be sampled by a 500 / 7=71.4MHz clock, providing an edge resolution of approximately 14nsec. For each signal, three bits are used to specify the position where the edge in the frame 400 begins. For example, a bit pattern 010 would specify the edge position for PWM1 in the time slot index 2 of the frame. A bit pattern 100 would indicate that the edge of PWM2 would start at the time slot index 4 of the frame, and so on. Each of the corresponding channels may also specify edge polarity via a single additional bit per channel, where for a signal specified in time via the time slot index of the frame, a "0" may specify a falling edge and a "1" may specify a rising edge. Thus, in this example with three PWM channels and one serial channel, 10 bits are used to specify the edge position for each respective channel within the frame 400, and 4 bits are used to specify the edge polarity for each channel within the frame.
[0031] As another example, the packet frame 400 can be sent at about 1Gbps across the isolation boundary. Protocols can be developed across both sides (e.g., using serial channels) to coordinate and send low bit rate feedback and other general purpose input / output (GPIO) data. If a 14-bit frame is formatted and sent in this example, the delay will be less than about 50nsec (e.g., about at least 28nsec). When there is no edge to be sent, the polarity bit is redundant and can be used for exception handling, but when there is no edge, a full zero transmission can be sent to save energy in the channel and reduce power. Even if the PWM signal may be about 100KHz, there can still be a frame where no bit is being sent. This achieves exemplary jitter targets (e.g., + / -2nsec), delays (e.g., <50nsec), and power efficiency.
[0032] Figure 5 An example serializer circuit 500 is illustrated, which includes: an output stage 510, a receiver 520, and an edge decoder 530 to decode the signal edge position in the serial data stream for transmitting timing and control information in the motor drive circuit. The receiving shift register 520 captures the packet frame from the serial data stream (SERIAL DIN) in response to the receiving clock signal (receive_clk) to shift the serial data stream into the receiving shift register. The output stage 510 includes: a parallel storage register (also called a buffer) for storing the individual output codes captured by the receiving shift register 520. The output code represents the edge position (pos) and polarity (edge) for each input signal specified in the packet frame of the serial data stream. The output stage includes: individual comparators 540, 544 and 550, and a counter 560 for decoding each individual output code from the storage buffer 510. For example, the corresponding comparator compares one of the individual output codes with the counter value of the counter 560 to determine the edge position from the packet frame stored in the parallel storage register. In response to the corresponding comparator matching the counter value with the output code, the edge polarity bit in the packet frame is clocked to the output of the output stage via flip-flops 572, 574 and 580. As an example, comparators 540-550 can be implemented as XOR comparators that: produce a logic one if the inputs between the counter and the corresponding comparator are different; and produce a logic zero if the inputs between the counter and the corresponding comparator are the same. Phase-locked loop 590 controls circuit timing.
[0033] Figure 6Another example deserializer circuit 600 is described, which includes an output stage 610, a receiver 620 and an edge decoder 630 to decode the signal edge position in the serial data stream for transmitting timing and control information in the motor drive circuit. The receiving shift register 620 captures the packet frame from the serial data stream (SERIAL DIN) in response to the receiving clock signal (receive_clk) to shift the serial data stream into the receiving shift register. The output stage 610 may also include a parallel storage register to store the individual output encoding captured by the receiving shift register 620. The output encoding represents the edge position and polarity (as shown by edges 1, 2 and 3) for each input signal specified in the packet frame of the serial data stream. The edge decoder 630 includes separate decoders 640, 644 and 650 and output shift registers 660, 664 and 670 to decode each individual output encoding. The respective decoder receives one of the individual output codes and generates an output bit pattern that simulates the sampled input signal of the input stage based on the packet frame stored in the parallel storage register of the output stage 510. The output bit pattern is loaded from the respective decoder into the respective output shift register and is clocked to the output of the output stage.
[0034] Figure 7 An example serializer-deserializer (SER-DES) system 700 for converting and transmitting controller and / or timing signals of a motor drive circuit is illustrated. The system 700 includes a motor controller module 704 having motor controller outputs shown as CM_O1 to CM_OM and motor controller inputs shown as CM_I1 to CM_IN, where N and M are positive integers. The motor controller module 704 communicates with a motor drive power module 712 via a motor drive transmission circuit 708. The motor drive power module 712 includes motor drive power outputs shown as PM_O1 to PM_ON and motor drive power inputs shown as PM_I1 to PM_IM.
[0035] Example outputs of the motor controller module 704 include pulse width modulated (PWM) drive signals to drive the high-side and low-side drivers of the three-phase motor and clock signals to be used by the power module ADC circuit, which digitizes motor feedback information (such as the phase current detected in a given winding of the three-phase motor). One or more groups (e.g., groups) of outputs from the motor controller module 704 can be serialized and deserialized by the motor drive transmission circuit 708 and received as input by the motor drive power module 712 to control the three-phase motor. Additionally or alternatively, one or more output groups from the motor drive power module 712 can be serialized and deserialized by the motor drive transmission circuit 708 and received as input by the power module 712. Example outputs from the power module 712 can include: serial analog-to-digital (ADC) signals representing phase currents and / or voltages, including diagnostic information of phase fault status and motor power status.
[0036] The motor drive transmission circuit 708 includes: a first SER-DES module 716, which converts a first SER-DES input serial data stream (FSDM RX IN) into a first SER-DES output signal (FSDM O1 to FSDM ON), which in turn drives the input of the motor controller module 704. Additionally or alternatively, the first SER-DES module 716 converts the first SER-DES input signal (FSDM I1 to FSDM IM) into a first SER-DES output serial data stream (FSDM XMIT OUT). As shown, the first SER-DES output signal (FSDM O1 to FSDM ON) is associated with the motor controller input, and the first SER-DES input signal (FSDM I1 to FSDM IM) is associated with the motor controller output.
[0037] The second SER-DES module 720 converts the second SER-DES input serial data stream (SSDM RX IN) into a second SER-DES output signal (SSDM O1 to SSDM OM), which provides a corresponding input of the power module 712. Additionally or alternatively, the second SER-DES module 720 converts the second SER-DES input signal (SSDM I1 to SSDM IN) into a second SER-DES output serial data stream (SSDM XMIT OUT). The second SER-DES output signal (SSDM O1 to SSDM OM) is associated with the motor drive power input, and the second SER-DES input signal (SSDM I1 to SSDM IN) is associated with the motor drive power output. Each of the SER-DES modules 716 and 720 can include: a configuration input (CONFIG) that allows a user to program which connections of the motor controller module 704 and the motor drive power module 712 are connected to the corresponding SER-DES module as input or output.
[0038] One or more serial isolation channels 724 and 728 provide transmission through the galvanic isolation barrier 730 between the first SER-DES module 716 and the second SER-DES module 720. The serial isolation channel 724 transmits the first SER-DES output serial data stream (FSDM XMIT OUT) in one direction across the galvanic isolation barrier 730 to provide the second SER-DES input serial data stream (SSDM RX IN). The serial isolation channel 728 transmits the second SER-DES output serial data stream (SSDM XMIT OUT) in another direction across the galvanic isolation barrier 730 to provide the first SER-DES input serial data stream (FSDM RX IN). The isolation channels 724 and 728 may include substantially any type of circuit that allows signals to be transmitted from one side of the galvanic isolation barrier 730 to the other side without sharing a common direct current (DC) path, such as ground. Example isolation channels may include capacitive isolators, transformers, Hall effect isolators, and optical isolators. In one example, the first SER-DES module 716 and the second SER-DES module 720 and the serial isolation channels 724 and 728 may be implemented on an integrated circuit substrate, or in another example, may be implemented on a printed circuit board substrate. Figure 8 The examples illustrate and describe other example aspects of the corresponding SER-DES modules.
[0039] Figure 8An example of a SER-DES module 800 for reducing isolation circuits between a motor controller module (e.g., module 704) and a motor drive power module (e.g., module 712) is illustrated. The SER-DES module 800 may be connected to either the motor controller module or the motor drive power module for cross-connection. Figure 7 800 transmits a signal through the current barrier shown in . For example, the SER-DES module 800 may include: a processor 804 and a memory 808 to perform the corresponding SER-DES functions described herein. In another example where a separate processor and memory are not used, the SER-DES module 800 processing function can be implemented as a state machine. The SER-DES module 800 includes: a configuration register 812 for receiving a configuration input (CONFIG) for programming the SER-DES module. For example, if connected to a controller module, the CONFIG input programs the number of controller module inputs and / or outputs to connect from the controller module, and if connected to a power module, the CONFIG input programs the number of power module inputs and / or outputs to connect from the power module. The configuration register 812 controls which controller / power module output is connected to an input circuit 816 (e.g., a buffer for storing data) and which controller / power module input is connected to an output circuit (e.g., a driver) of a driver module input.
[0040] The SER-DES module 800 includes an input stage 824 for encoding data received from the input circuit 816 into an output serial data stream XMIT SERIAL OUT. A transmit shift register 828 is coupled to the input stage 824 to transmit the output serial data stream XMIT SERIAL OUT via a serial isolation channel as described herein. A receive shift register 832 receives the input serial data stream RX SERIAL IN from the isolation channel as described herein. An output stage 836 is coupled to the receive shift register 832 to decode the serial input data stream RX SERIAL IN and provide parallel signals to the output circuit 820, which drives the module input of the corresponding controller or power module. The input stage 824 decodes the packet frames to be transmitted in the output serial data stream (see, e.g., Figure 3 ) for encoding and formatting.
[0041] As an example, the packet frame includes: data, which specifies the edge position of the signal starting at a given time period within the packet frame, and edge polarity, which specifies the rising edge or falling edge of the signal at the edge position. The packet frame can be formatted according to a time division multiplexing (TDM) protocol in one example or a frequency division multiplexing (FDM) protocol in another example. A phase locked loop (PLL) 840 can be provided to synchronize the timing sent within the serial data stream transmitted between the corresponding modules. The PLL 840 receives a clock input CLK IN from a corresponding controller or power module and generates a clock output CLK OUT to drive the SER-DES module 800.
[0042] In view of the aforementioned structural and functional characteristics described above, reference Fig. 9 An example method is described. To simplify explanation, the method is shown and described as being performed sequentially, but the method is not limited to the order illustrated, as portions of the method may occur in a different order than shown and described herein and / or may occur simultaneously. This method may be performed by various hardware circuits and components, for example, configured to execute machine-readable instructions stored in a memory and executable by an integrated circuit, a controller, or a processor.
[0043] Fig. 9 An example method 900 for transmitting serial signals between a motor controller module and a motor drive power module in a motor drive circuit is illustrated. At 910, the method 900 includes: sampling input signals to determine edge positions corresponding to transitions in each input signal in a given time frame (e.g., via Figure 1 At 920, method 900 includes encoding the edge position for each sample of the input signal into a packet frame that specifies where the edge position for each respective input signal occurs in a given time frame (e.g., via Figure 1 At 930, method 900 includes encoding polarity in a packet frame that specifies the direction of a signal transition at an edge position for each input signal (eg, via Figure 1 At 940, method 900 includes converting each packet frame into a serial data stream that transmits edge positions and polarities for each input signal via the serial data stream (e.g., via Figure 1 The method 900 may also include decoding edge positions and polarities from the packet frames with respect to a given time frame to generate parallel output signals to communicate control information with a motor power module or a motor controller module.
[0044] In this specification, the term "based on" means based at least in part on. Modifications may be made in the described embodiments, and other embodiments are possible within the scope of the claims.
Claims
1. A circuit for signal edge position encoding, the circuit comprising: Serializer module, including: an input stage having an input stage input and an input stage output, the input stage being configured to sample an input signal at the input stage input and to capture edge positions for the input signal in a time frame and to provide the edge positions at the input stage output; an edge encoder having an encoder input and an encoder output, the encoder input being coupled to the input stage output and the edge encoder being configured to encode the edge positions at the encoder output into a packet frame, the packet frame specifying where the edge positions occur in the time frame; as well as a transmitter having a transmitter input and a transmitter output, the transmitter input being coupled to the encoder output and the transmitter being configured to receive the packet frame at the transmitter input and convert the packet frame into a serial data stream and transmit the edge position at the transmitter output via the serial data stream; as well as Deserializer module, including: a receiver having a receiver input and a receiver output, the receiver input being coupled to the transmitter output and the receiver being configured to receive the serial data stream at the receiver input and to provide the packet frame at the receiver output; buffer; an output stage having an output stage input coupled to the receiver output and an output stage output coupled to the buffer, and the output stage being configured to receive the packet frame at the output stage input and write the packet frame to the buffer; and an edge decoder having a decoder input coupled to the buffer and a decoder output adapted to be coupled to a motor power module or a motor controller module, and configured to decode the edge position from the packet frame in the buffer with respect to the time frame and to generate an output signal at the decoder output for communicating control information with the motor power module or the motor controller module. 2 . The circuit of claim 1 , wherein the input stage comprises a shift register configured to capture edge transitions in response to a sampling clock for the input signal.
3. The circuit of claim 2, wherein the edge transition comprises an input signal transition from a high state to a low state or from a low state to a high state within a clock transition of the sampling clock.
4. The circuit of claim 1 , wherein the packet frame comprises: data specifying said edge locations for signal transitions commencing at time periods within said packet frames; and specifying an edge polarity of a rising edge or a falling edge for the signal transition at the edge location.
5. The circuit of claim 1 , wherein the receiver comprises a receive shift register configured to capture the packet frame from the serial data stream at the receiver input in response to a receive clock signal and shift the serial data stream into the receive shift register.
6. The circuit of claim 5 , wherein the buffer in the output stage comprises a parallel storage register configured to store an output code captured by the receive shift register, the output code representing the edge position and polarity for the input signal as specified in the packet frame of the serial data stream.
7. The circuit of claim 6 , wherein the edge decoder comprises a comparator and a counter, the comparator and the counter being configured to include analyzing the output code by comparing the output code with a counter value by the comparator to determine the edge position from the grouped frame stored in the parallel storage register, and in response to the comparator matching the counter value with the output code, an edge polarity bit in the grouped frame is clocked to the output of the output stage.
8. The circuit of claim 6 , wherein the edge decoder comprises a decoder and an output shift register, the decoder and the output shift register being configured to include receiving the output code by the decoder and generating an output bit pattern to decode the output code to simulate the sampled input signal of the input stage based on the grouped frame stored in the parallel storage register, the output bit pattern being loaded from the decoder into the output shift register and being clocked to the output of the output stage.
9. The circuit of claim 1, wherein each of the serializer module and the deserializer module includes a respective phase-locked loop (PLL) configured to synchronize the serial data stream transmitted between the respective modules.
10. The circuit of claim 1, wherein the edge encoder is configured to encode a plurality of signal edge positions for a plurality of input signals sampled simultaneously by the input stage while maintaining timing between input signal edge positions within the packet frame.
11. A circuit for signal edge position encoding, the circuit comprising: A deserializer module, comprising: a receiver having a receiver input and a receiver output, the receiver being configured to receive a serial data stream from the receiver input, the serial data stream comprising at least one packet frame, the at least one packet frame specifying respective edge positions in a time frame for an input signal; buffer; an output stage having an output stage input coupled to the receiver output and an output stage output coupled to the buffer, and the output stage being configured to receive the packet frames at the output stage input and write one or more packet frames into the buffer; as well as an edge decoder having a decoder input coupled to the buffer and a decoder output adapted to be coupled to a motor power module or a motor controller module, and configured to decode the corresponding edge positions from the one or more packet frames in the buffer with respect to the time frame and to generate parallel output signals at the decoder output for communicating control information with the motor power module or the motor controller module; as well as Serializer module, including: an input stage having an input stage input and an input stage output, the input stage being configured to sample the input signal at the input stage input and determine the corresponding edge positions for the input signal in the time frame and provide the corresponding edge positions at the input stage output; an edge encoder having an encoder input coupled to the input stage output and an encoder output, the encoder input being configured to encode the corresponding edge positions at the encoder output into the one or more packet frames, the packet frames specifying locations in the time frame at which the corresponding edge positions occur; and A transmitter having a transmitter input and a transmitter output, wherein the transmitter input is coupled to the encoder output, the transmitter output is coupled to the receiver input, and the transmitter is configured to receive the one or more packet frames at the transmitter input and to transmit the one or more packet frames as the serial data stream to the receiver input.
12. The circuit of claim 11, wherein the one or more packet frames comprise: data specifying the respective edge locations for signal transitions commencing at time periods within the one or more packet frames; and specifying a corresponding edge polarity for a rising edge or a falling edge of the signal transition at the corresponding edge position.
13. The circuit of claim 11, wherein the receiver comprises a receive shift register configured to capture the one or more packet frames from the serial data stream at the receiver input in response to a receive clock signal and to shift the serial data stream to the receive shift register.
14. The circuit of claim 13 , wherein the buffer in the output stage comprises a parallel storage register configured to store an output code captured by the receive shift register, the output code representing the corresponding edge position and the corresponding polarity for the input signal specified in the one or more packet frames of the serial data stream.
15. The circuit of claim 14 , wherein the edge decoder comprises corresponding comparators and counters, the corresponding comparators and counters being configured to decode the output code including by each corresponding comparator comparing a corresponding one of the output codes with a corresponding counter value to determine one of the corresponding edge positions from the one or more grouping frames stored in the parallel storage register, and in response to the corresponding comparator matching the corresponding counter value with the corresponding one of the output codes, the edge polarity bit in the one or more grouping frames being clocked to the output of the output stage.
16. The circuit of claim 14, wherein the edge decoder comprises corresponding decoders and an output shift register, the corresponding decoders and the output shift register being configured to include decoding the output code by each corresponding decoder receiving a corresponding one of the output codes and generating a corresponding output bit pattern to simulate the sampled input signal of the input stage based on the one or more grouped frames stored in the parallel storage register, the output bit pattern being loaded from the decoder into the output shift register and being clocked to the output of the output stage.
