US8654870B2 - Communication method, communication system and communication device - Google Patents

Communication method, communication system and communication device Download PDF

Info

Publication number
US8654870B2
US8654870B2 US13/359,648 US201213359648A US8654870B2 US 8654870 B2 US8654870 B2 US 8654870B2 US 201213359648 A US201213359648 A US 201213359648A US 8654870 B2 US8654870 B2 US 8654870B2
Authority
US
United States
Prior art keywords
data bits
communication
bit
level
check bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related, expires
Application number
US13/359,648
Other versions
US20120207230A1 (en
Inventor
Yoshinori Hirose
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsumi Electric Co Ltd
Original Assignee
Mitsumi Electric Co Ltd
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 Mitsumi Electric Co Ltd filed Critical Mitsumi Electric Co Ltd
Assigned to MITSUMI ELECTRIC CO., LTD. reassignment MITSUMI ELECTRIC CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HIROSE, YOSHINORI
Publication of US20120207230A1 publication Critical patent/US20120207230A1/en
Application granted granted Critical
Publication of US8654870B2 publication Critical patent/US8654870B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4917Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using multilevel codes
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system

Definitions

  • the present invention generally relates to a communication method, a communication system and a communication device. More specifically, the present invention relates to a communication method for performing a bidirectional serial communication, a communication system and a communication device.
  • Patent Document 1 discloses that data and clocks are subjected to time-division so as to be multiplexed and transmitted by one bus line, another bus line for determining receipt and sending is used, and data are mutually sent and received by these two bus lines.
  • Patent Document 1 discloses that, at the sending time, a latch circuit outputs a power supply voltage Vcc of an IN terminal at data H received from a data input unit to a contact point a of a switch in synchronization with a clock signal from a clock circuit, the contact point a is divided with resistors R 1 and R 2 by data L to obtain divided voltage values, the switch is changed over by the clock signal to a or b, the data are output at a, and the clock signal is output at b. It further discloses that, at the receiving time, a signal input into a separation circuit from a sending and receiving changeover switch is separated by a level determination to data and a clock signal, the data are latched and wave-shaped by a latch and shaping circuit and then output.
  • a decoder operates a level of the send and receive determining line and a receive request input H, outputs H, changes over the sending and receiving changeover switch to a sending side to set the send and receive determining line to be L, and the data and the clock signal are subjected to time-division and transmitted by a bus line.
  • Patent Document 2 discloses that an information block is divided into plural sub blocks including plural segments, plural inverted sub blocks obtained by inverting all information allocated to each of the plural segments included in the original sub blocks are generated in association with the original sub blocks, and the plural original blocks and the generated inverted sub blocks are integrated in order to convert information blocks to code blocks.
  • the example of the communication system has a problem that a data and clock transmission line and a send and receive determining line are necessary for the Serial communication and the serial communication cannot be achieved using only one signal line.
  • Patent Document 1 Japanese Laid-open Patent Publication No. H07-95248
  • Patent Document 2 Japanese Laid-open Patent Publication No. 2000-124960
  • embodiments of the present invention may provide a novel and useful communication method, a communication system and a communication device, in which bidirectional serial communication is performed using only one signal line between a first device and a second device to detect an error of information sent from a first device by the second device, solving one or more of the problems discussed above.
  • a communication system for performing serial communication using a first level, a second level different from the first level and a middle level between the first level and the second level, including a first device; a second device; and a signal line connecting the first device to the second device, wherein the serial communication is performed by a first communication format signal sent together with a clock from the first device to the second device under a first mode, and a second communication format signal sent from the second device to the first device under a second mode, wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.
  • FIG. 1 illustrates an exemplary block chart of a communication system of an embodiment
  • FIG. 2 illustrates an exemplary circuit structure of signal input and output units of a battery monitoring IC and a protection IC
  • FIG. 3 illustrates exemplary signal timing charts in a control command sending mode
  • FIG. 4 illustrates exemplary signal timing charts in a command receiving mode
  • FIG. 5 illustrates exemplary signal timing charts in an interrupt receiving mode
  • FIG. 6 illustrates an exemplary state transition diagram in a battery monitoring IC
  • FIG. 7 illustrates an exemplary circuit structure of the signal input and output unit of the protection IC
  • FIG. 8 illustrates exemplary signal waveform diagrams obtained from various portions of FIG. 7 ;
  • FIG. 9 illustrates an exemplary structure of a shift register
  • FIG. 10 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the control command sending mode
  • FIG. 11 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the state inquiry command sending mode
  • FIG. 12 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the interrupt receiving mode
  • FIG. 13 illustrates an exemplary flowchart of a signal output process performed by the protection IC
  • FIG. 14 illustrates an exemplary waveform diagram in a signal line
  • FIG. 15 illustrates an exemplary signal format in a control command sending mode
  • FIG. 16 illustrates an exemplary flowchart of an error detecting process of a First Embodiment
  • FIG. 17 illustrates exemplary signal formats in a control command sending mode of a Second Embodiment.
  • FIG. 18 illustrates an exemplary flowchart of an error detecting process of the Second Embodiment.
  • FIG. 1 schematically illustrates a communication system of an embodiment.
  • a secondary battery such as a lithium ion battery is located between terminals B+ and B ⁇ , the terminal B+ is connected to a terminal P+, the terminal B ⁇ is connected to a terminal P ⁇ via a resistor R 4 and MOS transistors M 2 and M 1 , and a load or a charging circuit is connected between the terminals P+, P ⁇ .
  • Voltages at respective ends of the resistor R 4 are supplied to terminals VRSM and VRSF of a battery monitoring IC (an integrated circuit) 11 being a first device.
  • a charging and a discharging current of the secondary battery is detected from the difference in potential between VRSM and VRSF.
  • the battery voltage of the secondary battery 10 is supplied to a terminal VBAT via an IC protection IC 12 .
  • the IC battery monitoring IC 11 detects the voltage of the terminal VBAT as the voltage of the secondary battery 10 .
  • a terminal VDD of the IC battery monitoring IC 11 is supplied with power stabilized by the protection IC 12 .
  • the battery monitoring IC 11 has a built-in microcomputer to calculate a battery energy remaining quantity by adding the charging and discharging currents of the secondary battery 10 and perform an overvoltage detection of the secondary battery 10 and an overcurrent detection in charging and discharging, thereby controlling the protection IC 12 based on results of the overvoltage detection and the overcurrent detection.
  • the protection IC 12 as a second device stabilizes the voltage supplied from the secondary battery 10 via a resistor R 3 and supplies the stabilized voltage to the battery monitoring IC 11 via a terminal VREGOUT.
  • the battery voltage of the secondary battery 10 is supplied via the resistor R 1 to a terminal VSENSE.
  • the battery voltage is divided by the protection IC 12 and the divided voltage is supplied to the battery monitoring IC 11 via the terminal VBAT.
  • the protection IC 12 compares the voltage of the terminal VSENSE with an overcharge threshold and an overdischarge threshold. If the voltage of the terminal VSENSE exceeds the overcharge threshold, it is determined to be in an abnormal state and the MOS transistor M 1 is turned off.
  • the protection IC 12 stores a control command from the battery monitoring IC 11 in a control register built into the protection IC 12 .
  • the protection IC 12 controls charging and discharging of the secondary battery 10 by switching on and off the MOS transistors M 1 and M 2 in conformity with a content of the control register.
  • a terminal ICOM of the battery monitoring IC 11 and a terminal ICOM of the protection IC 12 are connected by a signal line 13 to enable bidirectional three-valued serial communication between the battery monitoring IC 11 and the protection IC 12 .
  • FIG. 2 is an exemplary circuit diagram of a signal input and output unit of the battery monitoring IC 11 and the protection IC 12 .
  • an input and output circuit 21 of the battery monitoring IC 11 is connected to the terminal ICOM of the battery monitoring IC 11 .
  • the terminal ICOM of the battery monitoring IC 11 is connected to a power supply VDD via a resistor R 11 and also connected to the drain of an n-channel MOS transistor M 11 via a resistor R 12 .
  • the source of the n-channel MOS transistor M 11 is connected to an electronic power supply VSS.
  • a middle level output signal is supplied from the communication controlling circuit 22 to a gate of the MOS transistor M 11 .
  • the terminal ICOM of the battery monitoring IC 11 is connected to the drain of an n-channel MOS transistor M 12 .
  • the source of the MOS transistor M 12 is connected to the electronic power supply VSS.
  • a low level output signal is supplied from the communication controlling circuit 22 inside the battery monitoring IC 11 to the gate of the MOS transistor M 12 .
  • the terminal ICOM of the battery monitoring IC 11 is connected to the communication controlling circuit 22 via an inverter 23 .
  • the inverter 23 has a first threshold value being a midpoint potential between a middle level and a low level. When the terminal ICOM is in the low level, the inverter 23 supplies the high level to the communication controlling circuit 22 . When the terminal ICOM is in the middle level or the high level, the inverter 23 supplies the low level to the communication controlling circuit 22 .
  • An input and output circuit 31 is connected to the terminal ICOM of the protection IC 12 .
  • the terminal ICOM of the protection IC 31 is connected to the drain of the n-channel MOS transistor M 13 in the input and output circuit 31 .
  • the source of the MOS transistor M 13 is connected to the electronic power supply VSS inside the protection IC 31 .
  • a low level output signal is supplied from a communication controlling circuit 32 inside the battery monitoring IC 12 to the gate of the MOS transistor M 13 .
  • the terminal ICOM of the battery monitoring IC 12 is connected to the communication controlling circuit 32 via inverters 33 and 34 .
  • the inverter 33 has a first threshold value being a midpoint potential between the middle level and the low level. When the terminal ICOM is in the low level, the inverter 33 supplies the high level to the communication controlling circuit 32 . When the terminal ICOM is in the middle level or greater, the inverter 33 supplies the low level to the communication controlling circuit 32 .
  • the inverter 34 has a second threshold value being a midpoint potential between the high level and the middle level. When the terminal ICOM is in the middle level or smaller, the inverter 34 supplies the high level to the communication controlling circuit 32 . When the terminal ICOM is in the high level, the inverter 33 supplies the low level to the communication controlling circuit 32 .
  • the battery monitoring IC 11 supplies a signal having a value of 0 to the MOS transistors M 11 and M 12 in order to output a signal of the high level from the terminal ICOM, and supplies a signal having a value of 0 to the MOS transistor M 11 and a signal having a value of 1 to the MOS transistor M 12 in order to output a signal of the low level from the terminal ICOM.
  • the battery monitoring IC 11 supplies a signal having a value of 1 to the MOS transistor M 11 and a signal having a value of 0 to the MOS transistor M 12 in order to output a signal of the middle level from the terminal ICOM.
  • the protection IC 12 supplies the signal having the value 1 to the MOS transistor M 13 .
  • FIG. 3 illustrates exemplary timing charts of signals in a control command sending mode in which a control command is sent from the battery monitoring IC 11 to the protection IC 12 .
  • the battery monitoring IC 11 sets the terminal ICOM to be in the middle level at a start bit for a predetermined period ⁇ /2 (e.g., several tens of ⁇ s), and then sets the terminal ICOM to be in the high level for a predetermined period ⁇ /2 as illustrated in (A) of FIG. 3 .
  • the battery monitoring IC 11 set to be in the middle level reports the control command sending mode to the protection IC 12 , and reports a one clock cycle in the period ⁇ of the middle level and the high level. Hatched portions in FIG. 3 indicate one of the middle level and the low level.
  • a control command having 14 bits of the middle or low level illustrated as ( 1 ) to ( 14 ) of (A) of FIG. 3 is sent.
  • the value of the middle level of the bits is 1, and the value of the low level of the bits is 0.
  • the odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ) and ( 11 ) among the 14 bits have values of the bits (data bits) themselves, and the even bits ( 2 ), ( 4 ), ( 6 ), ( 8 ), ( 10 ) and ( 12 ) have values inverse to the values of the odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ) and ( 11 ).
  • the odd bit ( 13 ) is a check bit for an odd parity of the odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ) and ( 11 ), and an even bit ( 14 ) is an inversion check bit obtained by inverting the check bit.
  • the control command is practically formed by seven bits including the check bit.
  • the control command includes an on/off control of the MOS transistor M 1 and an on/off control of the MOS transistor M 2 .
  • the protection IC 12 makes the terminal ICOM be the high or low level for a predetermined period ⁇ / 2 and reports a parity bit ( 15 ) to the battery monitoring IC 11 as illustrated in (B) of FIG. 3 .
  • the parity bit ( 15 ) has the value of an odd parity generated from the received odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ) and ( 11 ). For example, if the control command is normally received, the parity bit ( 15 ) is set to be in the low level, and if not, the parity bit ( 15 ) is set to be in the high level. With this, the signal state (the signal format) in the signal line 13 (i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12 ) become as illustrated in (C) of FIG. 3 .
  • FIG. 4 illustrates exemplary timing charts of a command receiving mode in which a state is inquired about from the battery monitoring IC 11 to the protection IC 12 , and the state response sent from the protection IC 12 is received by the battery monitoring IC 11 .
  • the battery monitoring IC 11 sets the terminal ICOM to be in the low level for a predetermined period ⁇ /2, and then sets the terminal ICOM to be in the high level for a predetermined period ⁇ /2 as illustrated in (A) of FIG. 4 .
  • the start bit of the low level is sent to report the state inquiry command receiving mode to the protection IC 12 , and then one clock cycle is reported during the period ⁇ in the middle or high level.
  • the predetermined period of the middle level and the predetermined period of the high level for several times, for example 14 times, are used to send clocks.
  • the protection IC 12 sends a status of 14 bits in the high or low level illustrated in ( 1 ) to ( 14 ) of (B) of FIG. 4 .
  • the value of the high level of the bits is 1, and the value of the low level of the bits is 0.
  • the bits ( 1 ) to ( 13 ) among the 14 bits have values of the bits (data bits) themselves of the status, and the bit ( 14 ) is a check bit as an odd parity of the bits ( 1 ) to ( 13 ). Said differently, the control command is practically formed by 14 bits including the check bit.
  • the signal state (the signal format) in the signal line 13 i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12 ) become as illustrated in (C) of FIG. 4 .
  • FIG. 5 illustrates exemplary timing charts in an interrupt receiving mode in which the protection IC 12 interrupts the battery monitoring IC 11 to receive a state report sent for the protection IC 12 by the battery monitoring IC 11 .
  • the protection IC 12 makes the terminal ICOM to be in the low level for the predetermined period ⁇ /2 as illustrated in (B) of FIG. 5 .
  • the protection IC 12 reports the interrupt receiving mode to the battery monitoring IC 11 by making the start bit in the low level.
  • the battery monitoring IC 11 sets the terminal ICOM to be in the low level for a predetermined period ⁇ /2, and then sets the terminal ICOM to be in the high level for a predetermined period ⁇ /2 as illustrated in (A) of FIG. 5 .
  • the protection IC 12 sends a status of 14 bits in the high or low level illustrated in ( 1 ) to ( 14 ) of (B) of FIG. 5 .
  • the value of the high level of the bits is 1, and the value of the low level of the bits is 0.
  • the bits ( 1 ) to ( 13 ) among the 14 bits have values of the bits (data bits) themselves of the status, and the bit ( 14 ) is a check bit as an odd parity of the bits ( 1 ) to ( 13 ).
  • the control command is practically formed by 14 bits including the check bit.
  • the signal state (the signal format) in the signal line 13 i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12 ) becomes as illustrated in (C) of FIG. 5 .
  • FIG. 6 is an exemplary state transition diagram in the battery monitoring IC 11 .
  • an initial state is a sequence 0 .
  • the sequence 0 changes to a sequence T 1 . If there is no problem, a sequence T 1 to a sequence TEND are sequentially transited by the battery monitoring IC 11 at clock periods, and the battery monitoring IC 11 returns to the sequence 0 .
  • the sequence 0 changes to a sequence R 1 . If there is no problem, the sequence R 1 to a sequence REND are sequentially transited by the battery monitoring IC 11 at clock periods, and the battery monitoring IC 11 returns to the sequence 0 .
  • the mode changes to the interrupt receiving mode. Then, the battery monitoring IC 11 moves from the sequence 0 to a sequence I 1 , and transits the sequence I 1 , a sequence I 2 , and the sequence R 3 to the sequence REND to return to the sequence 0 .
  • the battery monitoring IC 11 transits to a sequence J 1 .
  • the transition to the sequence J 1 is generated when the control command sending mode or the state inquiry command receiving mode competes against the interrupt receiving mode.
  • priority of the interrupt receiving mode is set higher than the control command sending mode or the state inquiry command receiving mode.
  • the battery monitoring IC 11 transits from the sequence J 1 to the sequence 12 , sequentially transits the sequence R 3 to the sequence REND, and returns to the sequence 0 .
  • FIG. 7 illustrates an exemplary circuit structure of the signal input and output unit of the protection IC 12 .
  • the same reference symbols as those in FIG. 2 are attached to the same portions.
  • the terminal ICOM of the protection IC 12 is connected to the communication controlling circuit 32 via the inverters 33 and 34 .
  • the communication controlling circuit 32 separates a clock of the input signal supplied from the inverter 33 and outputs a pulse signal having the high level period of ⁇ /2 (see (A) of FIG. 8 ) at a timing of the low level output among the status of 14 bits in synchronization with the separated clock.
  • the signal output by the communication controlling circuit 32 is supplied to a NOR circuit 46 via inverters 42 , 43 , 44 and 45 and a NOR circuit 47 .
  • a connection point between the inverters 43 and 44 is grounded via a capacitor C 1 , and the voltage of the capacitor C 1 receiving the pulse signal is shaped like a ramp, as illustrated in (B) of FIG. 8 . With this, the pulse width of the output signal of the inverter 45 is reduced as illustrated in (C) of FIG. 8 .
  • the output of the NOR circuit 46 is supplied to the gate of the MOS transistor M 13 and also supplied to an input terminal of the NOR circuit 47 .
  • the output of the NOR circuit 47 is supplied to an input terminal of the NOR circuit 46 . Therefore, the pulse width of the output of the NOR circuit 46 becomes narrower than that of the output pulse signal from the communication controlling circuit 32 as illustrated in (D) of FIG. 8 .
  • the MOS transistor M 13 is turned on at the high level period of the pulse signal output by the NOR circuit 46 thereby causing the terminal ICOM to be in the low level in synchronization with the clock as illustrated in (E) of FIG. 8 . Said differently, in the low level period illustrated in (E) of FIG.
  • the pulse width in the ICOM becomes smaller than the pulse width ( ⁇ /2) of the output pulse signal. If the low level period of (E) of FIG. 8 output by the protection IC is ⁇ /2, all information pieces in the middle level of the clock output by the battery monitoring IC 11 disappear. In order to prevent the clock information in the middle level disappearing, the low level period of (E) of FIG. 8 is made narrower than ⁇ /2.
  • the communication controlling circuit 32 illustrated in FIG. 7 includes a shift register illustrated in FIG. 9 .
  • the shift register includes n-stage D-type flip-flops 100 - 1 to 100 - n and switches 101 - 1 to 101 - n respectively connected to the D input terminals of the n-stage D-type flip-flops 100 - 1 to 100 - n .
  • the switches 101 - 1 to 101 - n are switched to terminals 103 - 1 to 103 - n when a signal having a value of 0 is supplied to a terminal 102 , and statuses of n bits supplied from the terminals 103 - 1 to 103 - n are set in the n-stage D-type flip-flops 100 - 1 to 100 - n along with an input of a clock from a terminal 105 .
  • the value of the terminal 102 becomes a value 1.
  • the switch 101 - 1 connects the D input terminal of the flip-flop 100 - 1 to the terminal 104
  • the switches 101 - 2 to 101 - n connect the D input terminals of the flip-flops 100 - 2 to 100 - n to Q input terminals of the flip-flops 100 - 1 to 100 - n - 1 on the previous stages, thereby forming a shift register.
  • a clock separated by the communication controlling circuit 32 from the input signal into the terminal ICOM is input into the terminal 105 and is supplied to clock input terminals of the flip-flops 100 - 1 to 100 - n . With the input of the clock, the status of n bits set in the flip-flops 100 - 1 to 100 - n is sequentially shifted by the flip-flops 100 - 1 to 100 - n and output from the terminal 106 in series.
  • exemplary waveforms of (A) to (E) correspond to the input into the inverter 42 , the voltage of the capacitor C 1 , the output from the inverter 45 , the output from the NOR circuit 47 and the terminal ICOM in the command sending mode, respectively illustrated in FIG. 7 .
  • the protection IC 12 supplies a pulse of the high level P 1 illustrated in (A) of FIG. 10 to the inverter 42 in order to cause the terminal ICOM to output the low level
  • the terminal ICOM is in the low level during a first half of the period ⁇ /2 of the pulse P 1 and in the middle level in the second half as illustrated in (E) of FIG. 10 .
  • exemplary waveforms of (A) to (E) correspond to the input into the inverter 42 , the voltage of the capacitor C 1 , the output from the inverter 45 , the output from the NOR circuit 47 and the terminal ICOM in the state inquiry command receiving mode, respectively illustrated in FIG. 7 .
  • the protection IC 12 supplies pulses of the high level P 2 to P 5 illustrated in (A) of FIG. 11 to the inverter 42 in order to cause the terminal ICOM to output the low level
  • the terminal ICOM is in the low level during first halves of the periods ⁇ /2 of the pulses P 2 to P 5 and in the middle level in the second halves as illustrated in (E) of FIG. 11 .
  • exemplary waveforms of (A) to (E) correspond to the input into the inverter 42 , the voltage of the capacitor C 1 , the output from the inverter 45 , the output from the NOR circuit 47 and the terminal ICOM in the interrupt receiving mode, respectively illustrated in FIG. 7 .
  • the protection IC 12 supplies pulses of the high level P 6 to P 9 illustrated in (A) of FIG. 12 to the inverter 42 in order to cause the terminal to output the low level
  • the terminal ICOM is in the low level during first halves of the periods ⁇ /2 of the pulses P 6 to P 9 and in the middle level in the second halves as illustrated in (E) of FIG. 12 .
  • FIG. 13 is an exemplary flowchart of a signal output process performed by the protection IC 12 .
  • a guard state is changed in step S 1 ; said differently, whether the guard state is changed from the steady state to an abnormal state or the like. If there is no change in the guard state, it is determined whether there is an input signal from the terminal ICOM. If there is no input signal, the process goes to step S 1 .
  • step S 1 If it is determined that the guard state is changed in step S 1 , the first pulse of the low level is output from the terminal ICOM in step S 3 so that the interrupt receiving mode is reported from the protection IC 12 to the battery monitoring IC 11 . Then, the process goes to step S 2 . If there is the input signal in step S 2 , it is determined in step S 4 whether the first pulse in the terminal ICOM is the middle level.
  • the mode is the status inquiry command receiving mode or the interrupt receiving mode. Therefore, an output of the status is recognized in step S 5 , and bits of the status are sent in synchronization with the clock in step S 6 .
  • step S 3 If there is no next pulse input after the predetermined period, the low level output in step S 3 is considered to be not recognized by the battery monitoring IC 11 . Then, the process goes again to step S 3 to repeat the process in step S 3 . If there is a next pulse input within the predetermined period, the pulses of the high level are counted up to 15 pulses and the status transmission is completed to return to the steady state in step S 8 .
  • step S 10 it is determined in step S 10 whether odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ), ( 11 ) and ( 13 ) respectively match even bits ( 2 ), ( 4 ), ( 6 ), ( 8 ), ( 10 ), ( 12 ) and ( 14 ) and whether an odd parity calculated from the odd bits ( 1 ), ( 3 ), ( 5 ), ( 7 ), ( 9 ), ( 11 ) and ( 13 ) matches a check bit of the odd bit ( 13 ).
  • the low level is output from the terminal ICOM to report to the battery monitoring IC 11 . Then, the steady state is retrieved. If the odd parity does not match the check bit, the low level is output from the terminal ICOM in step S 12 to a report reception failure to the battery monitoring IC 11 . Then, the steady state is retrieved. With this, bidirectional serial communication is realized by one signal line.
  • the bidirectional communication is realized by sending the clocks in the high and middle levels from the battery monitoring IC 11 and sending the low level signal from the protection IC 12 in the above, the clocks in the low and middle levels from the battery monitoring IC 11 and may be sent and the high level signal may be sent from the protection IC 12 to perform the bidirectional communication.
  • FIG. 14 is an exemplary waveform in the signal line 13 .
  • the battery monitoring IC 11 erroneously recognizes that the interrupt receiving mode starts, and the protection IC 12 erroneously recognizes that the state inquiry command receiving mode is started.
  • the battery monitoring IC 11 automatically outputs clocks at a predetermined interval until the communication is completed, and the protection IC 12 outputs the status in conformity with the middle level period of the clock.
  • noise N 2 is mixed between the first middle level M 1 and the second middle level M 2 output from the battery monitoring IC 11 .
  • the battery monitoring IC 11 does not perform the sequence due to the existence of the noise N 2 .
  • the protection IC 12 may perform the sequence by erroneously recognizing the noise N 2 as an output of the middle level from the battery monitoring IC 11 . This is because the protection IC 12 recognizes a voltage of the signal line 13 being the second threshold value or smaller as the middle level and communicates in synchronization with the middle level.
  • the battery monitoring IC 11 outputs the clocks until the end of the communication in the interrupt receiving mode, and thereafter recognizes the state is the non-communication state. Because the protection IC 12 detects the middle level output from the signal line 13 to be one greater than the clock pulse number output by the battery monitoring IC 11 , the protection IC 12 recognizes the non-communication state after outputting the 14th middle level M 14 from the battery monitoring IC 11 , and erroneously recognizes the middle level M 15 output from the battery monitoring IC 11 as the start signal for the control command sending mode.
  • the protection IC 12 may recognize that not the state inquiry command receiving mode but the control command sending mode is active. With the above-described phenomenon, a control command having an erroneous value may be written in the register of the protection IC 12 .
  • the register of the protection IC 12 is prevented from being erroneously written by performing the error detecting process described below.
  • the value of the parity bit in the control command sending mode constantly becomes 0 if the protection IC 12 properly receives data. However, if the data are erroneously received by an influence of noise during communication, the value of the parity bit may become 1. Therefore, if the battery monitoring IC 11 receives the parity bit having the value 1 in the control command sending mode, the battery monitoring IC 11 recognizes that the parity bit having the value 1 indicates a communication error.
  • FIG. 15 is an exemplary signal format in the control command sending mode of a First Embodiment.
  • FIG. 15 corresponds to (C) of FIG. 3 .
  • the first middle level output by the battery monitoring IC 11 is a start bit S
  • an odd bit ( 1 ) is a data bit D 1
  • an even bit ( 2 ) is an inverted data bit /D 1 (“/” means inversion).
  • odd bits and even bits ( 3 ) to ( 12 ) are data bits D 2 to D 6 and inverted data bits /D 2 to /D 6 , respectively.
  • an odd bit ( 13 ) is a check bit C and an even bit ( 14 ) is an inversion check bit /C.
  • a parity bit ( 15 ) output by the protection IC 12 is a parity bit P.
  • FIG. 16 is a flowchart of the error detecting process performed by the protection IC 12 of the First Embodiment.
  • the bit D 1 is received and retained in step S 21 .
  • the bit /D 1 is received in step S 22 .
  • step S 23 it is determined whether the value of the bit /D 1 is the same as a value obtained by inverting the value retained in a register # 1 . If the value of the bit /D 1 is the same as the value obtained by inverting the value retained in the register # 1 , the process goes to step S 24 . If not, the process goes to step S 36 .
  • step S 24 the bit D 2 is received and retained in a register # 2 .
  • the bit /D 2 is received in step S 25 .
  • step S 26 it is determined whether the value of the bit /D 2 is the same as a value obtained by inverting the value retained in a register # 2 . If the value of the bit /D 2 is not the same as the value obtained by inverting the value retained in the register # 2 , the process goes to step S 36 .
  • step S 26 If the value of the bit /D 2 is the same as the value obtained by inverting the value retained in the register # 2 in step S 26 , processes similar to those in steps S 21 to S 23 are performed. If values of the bits /D 3 , /D 4 and /D 5 are the same as values obtained by inverting values retained in a register # 3 to a register # 5 , the process goes to step S 27 . If not, the process goes to step S 36 .
  • step S 27 the bit D 6 is received and retained in a register # 6 .
  • the bit /D 6 is received in step S 28 .
  • step S 29 it is determined whether the value of the bit /D 6 is the same as a value obtained by inverting the value retained in a register # 6 . If the value of the bit /D 6 is the same as the value obtained by inverting the value retained in the register # 6 , the process goes to step S 30 . If not, the process goes to step S 36 .
  • step S 30 the bit C is received and retained in a register # 7 .
  • the bit /C is received in step S 31 .
  • step S 32 it is determined whether the value of the bit /C is the same as a value obtained by inverting the value retained in a register # 7 . If the value of the bit /C is the same as the value obtained by inverting the value retained in the register # 7 , the process goes to step S 33 . If not, the process goes to step S 36 .
  • step S 33 it is determined whether the value retained in the register # 7 is the same as the value of an odd parity of the values retained in the registers # 1 to # 6 . If the value retained in the register # 7 is the same as the value of the odd parity of the values retained in the registers # 1 to # 6 , the process goes to step S 34 . If not, the process goes to step S 36 .
  • step S 34 the values retained in the registers # 1 to # 6 are transferred to a control register of the protection IC 12 .
  • step S 35 the low level is output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11 , and the process ends.
  • step S 36 the process waits until the clock is supplied from the battery monitoring IC 11 by 15 pulses.
  • step S 37 the low level is not output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11 , and the process ends. As described, it is possible to prevent the control register of the protection IC 12 from being erroneously written in.
  • pairs of the data bits D 1 to D 6 (original signals) and the inverted data bits /D 1 to /D 6 (inversion signals) are output from the battery monitoring IC 11 . Therefore, it is possible to prevent the control register from being written in by detecting abnormal communication on the side of the protection IC 12 .
  • FIG. 17 is an exemplary signal format in the control command sending mode of a Second Embodiment.
  • the battery monitoring IC 11 sequentially outputs a star bit S, data bits D 1 to D 6 , and a check bit C being an odd parity of data bits D 1 to D 6 . Thereafter, a constant bit of a value of 0 (the low level) is output. Further, the data D 1 is output again. Thereafter, inverted data bit /D 2 to inverted data bit /D 6 are output and an inversion check bit /C being an inverted odd parity is output. Thereafter, the protection IC 12 outputs the received data bits D 1 to D 6 and a parity bit P being the odd parity of the check bit C.
  • a modified structure of (A) may be employed.
  • the data bits D 2 to D 6 , C and D 1 are sequentially output, the constant bit 0 is output, and the data bit D 2 , the inverted data bits /D 3 to /D 6 , the inversion check bit /C and the inverted data bit /D 1 are sequentially output as illustrated in (B) of FIG. 17 .
  • FIG. 18 is a flowchart of the error detecting process performed by the protection IC 12 of the Second Embodiment. This process corresponds to the signal format illustrated in (A) of FIG. 17 .
  • the bits D 1 to D 6 are received and retained in the registers # 1 to # 6 .
  • the bit C is received and retained in the registers # 1 to # 6 .
  • the bit 0 is received and retained in the register # 8 .
  • the bit D 1 following the bit 0 is received.
  • step S 45 it is determined whether the value of the bit D 1 received in step S 44 is the same as a value retained in the register # 1 . If the value of the bit D 1 received in step S 44 is the same as the value retained in the register # 1 , the process goes to step S 46 . If not, the process goes to step S 55 .
  • step S 46 The bits /D 2 to /D 6 are received in step S 46 .
  • step S 47 it is determined whether the values of the bits /D 2 to /D 6 are the same as values obtained by inverting the values retained in the registers # 2 to # 6 . If the values of the bits /D 2 to /D 6 are the same as the values obtained by inverting the values retained in the registers # 2 to # 6 , the process goes to step S 48 . If not, the process goes to step S 55 .
  • step S 48 the bit /C is received.
  • step S 49 it is determined whether the value of the bit /C is the same as a value obtained by inverting the value retained in the register # 7 . If the value of the bit /C is the same as the value obtained by inverting the value retained in the register # 7 , the process goes to step S 51 . If not, the process goes to step S 55 .
  • step S 51 it is determined whether the value retained in the register # 7 is the same as the value of an odd parity of the values retained in the registers # 1 to # 6 . If the value retained in the register # 7 is the same as the value of the odd parity of the values retained in the registers # 1 to # 6 , the process goes to step S 52 . If not, the process goes to step S 55 . In step S 52 , it is determined whether the value retained in the register # 8 is 0. If the value retained in the register # 8 is 0, the process goes to step S 53 . If not, the process goes to step S 55 .
  • step S 53 the values retained in the registers # 1 to # 6 are transferred to the control register of the protection IC 12 .
  • step S 54 the low level is output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11 , and the process ends.
  • step S 55 the process waits until the clock is supplied from the battery monitoring IC 11 by 16 pulses.
  • step S 56 the low level is not output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11 , and the process ends. As described, it is possible to prevent the control register of the protection IC 12 from being erroneously written in.
  • bidirectional serial communication can be performed using only one signal line and an error of information sent from a first device to a second device can be detected by the second device.

Abstract

A communication system for performing serial communication using a first level, a second level and a middle level includes a first device; a second device; and a signal line, wherein the serial communication is performed by a first communication format signal sent together with a clock from the first device to the second device under a first mode, and a second communication format signal sent from the second device to the first device under a second mode, wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS
This patent application is based upon and claims the benefit of priority of Japanese Patent Application No. 2011-030413 filed on Feb. 16, 2011, the entire contents of which are incorporated herein by reference.
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention generally relates to a communication method, a communication system and a communication device. More specifically, the present invention relates to a communication method for performing a bidirectional serial communication, a communication system and a communication device.
2. Description of the Related Art
There is an example of a communication system for performing bidirectional serial communications. Patent Document 1 discloses that data and clocks are subjected to time-division so as to be multiplexed and transmitted by one bus line, another bus line for determining receipt and sending is used, and data are mutually sent and received by these two bus lines.
Patent Document 1 discloses that, at the sending time, a latch circuit outputs a power supply voltage Vcc of an IN terminal at data H received from a data input unit to a contact point a of a switch in synchronization with a clock signal from a clock circuit, the contact point a is divided with resistors R1 and R2 by data L to obtain divided voltage values, the switch is changed over by the clock signal to a or b, the data are output at a, and the clock signal is output at b. It further discloses that, at the receiving time, a signal input into a separation circuit from a sending and receiving changeover switch is separated by a level determination to data and a clock signal, the data are latched and wave-shaped by a latch and shaping circuit and then output. It further discloses that, at the sending time, a decoder operates a level of the send and receive determining line and a receive request input H, outputs H, changes over the sending and receiving changeover switch to a sending side to set the send and receive determining line to be L, and the data and the clock signal are subjected to time-division and transmitted by a bus line.
Patent Document 2 discloses that an information block is divided into plural sub blocks including plural segments, plural inverted sub blocks obtained by inverting all information allocated to each of the plural segments included in the original sub blocks are generated in association with the original sub blocks, and the plural original blocks and the generated inverted sub blocks are integrated in order to convert information blocks to code blocks.
The example of the communication system has a problem that a data and clock transmission line and a send and receive determining line are necessary for the Serial communication and the serial communication cannot be achieved using only one signal line.
[Patent Document 1] Japanese Laid-open Patent Publication No. H07-95248
[Patent Document 2] Japanese Laid-open Patent Publication No. 2000-124960
SUMMARY OF THE INVENTION
Accordingly, embodiments of the present invention may provide a novel and useful communication method, a communication system and a communication device, in which bidirectional serial communication is performed using only one signal line between a first device and a second device to detect an error of information sent from a first device by the second device, solving one or more of the problems discussed above.
According to an aspect of an embodiment, there is provided a communication system for performing serial communication using a first level, a second level different from the first level and a middle level between the first level and the second level, including a first device; a second device; and a signal line connecting the first device to the second device, wherein the serial communication is performed by a first communication format signal sent together with a clock from the first device to the second device under a first mode, and a second communication format signal sent from the second device to the first device under a second mode, wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.
Additional objects and advantages of the embodiments are set forth in part in the description which follows, and in part will become obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention as claimed.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates an exemplary block chart of a communication system of an embodiment;
FIG. 2 illustrates an exemplary circuit structure of signal input and output units of a battery monitoring IC and a protection IC;
FIG. 3 illustrates exemplary signal timing charts in a control command sending mode;
FIG. 4 illustrates exemplary signal timing charts in a command receiving mode;
FIG. 5 illustrates exemplary signal timing charts in an interrupt receiving mode;
FIG. 6 illustrates an exemplary state transition diagram in a battery monitoring IC;
FIG. 7 illustrates an exemplary circuit structure of the signal input and output unit of the protection IC;
FIG. 8 illustrates exemplary signal waveform diagrams obtained from various portions of FIG. 7;
FIG. 9 illustrates an exemplary structure of a shift register;
FIG. 10 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the control command sending mode;
FIG. 11 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the state inquiry command sending mode;
FIG. 12 illustrates exemplary signal waveform diagrams of various portions in FIG. 7 in the interrupt receiving mode;
FIG. 13 illustrates an exemplary flowchart of a signal output process performed by the protection IC;
FIG. 14 illustrates an exemplary waveform diagram in a signal line;
FIG. 15 illustrates an exemplary signal format in a control command sending mode;
FIG. 16 illustrates an exemplary flowchart of an error detecting process of a First Embodiment;
FIG. 17 illustrates exemplary signal formats in a control command sending mode of a Second Embodiment; and
FIG. 18 illustrates an exemplary flowchart of an error detecting process of the Second Embodiment.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
A description is given below, with reference to the FIG. 1 through FIG. 18 of embodiments of the present invention.
A description is given below, with reference to the FIG. 1 through FIG. 18 of embodiments of the present invention. Reference symbols typically designate as follows:
  • 10: secondary battery;
  • 11: battery monitoring IC;
  • 12: protection IC;
  • 21, 31: input and output circuit;
  • 24, 33, 42, 43, 44, 45: inverter;
  • 41: logic circuit;
  • 46, 47: NOR circuit;
  • M11, M12, M13: MOS transistor; and
  • R11, R12: resistor.
    <Structure of Communication System>
FIG. 1 schematically illustrates a communication system of an embodiment. Referring to FIG. 1, a secondary battery such as a lithium ion battery is located between terminals B+ and B−, the terminal B+ is connected to a terminal P+, the terminal B− is connected to a terminal P− via a resistor R4 and MOS transistors M2 and M1, and a load or a charging circuit is connected between the terminals P+, P−.
Voltages at respective ends of the resistor R4 are supplied to terminals VRSM and VRSF of a battery monitoring IC (an integrated circuit) 11 being a first device. A charging and a discharging current of the secondary battery is detected from the difference in potential between VRSM and VRSF. The battery voltage of the secondary battery 10 is supplied to a terminal VBAT via an IC protection IC 12. The IC battery monitoring IC 11 detects the voltage of the terminal VBAT as the voltage of the secondary battery 10. A terminal VDD of the IC battery monitoring IC 11 is supplied with power stabilized by the protection IC 12. The battery monitoring IC 11 has a built-in microcomputer to calculate a battery energy remaining quantity by adding the charging and discharging currents of the secondary battery 10 and perform an overvoltage detection of the secondary battery 10 and an overcurrent detection in charging and discharging, thereby controlling the protection IC 12 based on results of the overvoltage detection and the overcurrent detection.
The protection IC 12 as a second device stabilizes the voltage supplied from the secondary battery 10 via a resistor R3 and supplies the stabilized voltage to the battery monitoring IC 11 via a terminal VREGOUT. The battery voltage of the secondary battery 10 is supplied via the resistor R1 to a terminal VSENSE. The battery voltage is divided by the protection IC 12 and the divided voltage is supplied to the battery monitoring IC 11 via the terminal VBAT. The protection IC 12 compares the voltage of the terminal VSENSE with an overcharge threshold and an overdischarge threshold. If the voltage of the terminal VSENSE exceeds the overcharge threshold, it is determined to be in an abnormal state and the MOS transistor M1 is turned off. If the voltage of the terminal VSENSE is smaller than the overdischarge threshold, it is determined to be in an abnormal state and the MOS transistor M2 is turned off. At the same time, the protection IC 12 stores a control command from the battery monitoring IC 11 in a control register built into the protection IC 12. The protection IC 12 controls charging and discharging of the secondary battery 10 by switching on and off the MOS transistors M1 and M2 in conformity with a content of the control register.
A terminal ICOM of the battery monitoring IC 11 and a terminal ICOM of the protection IC 12 are connected by a signal line 13 to enable bidirectional three-valued serial communication between the battery monitoring IC 11 and the protection IC 12.
<Structure of Input and Output Circuit of Communication System>
FIG. 2 is an exemplary circuit diagram of a signal input and output unit of the battery monitoring IC 11 and the protection IC 12. Referring to FIG. 2, an input and output circuit 21 of the battery monitoring IC 11 is connected to the terminal ICOM of the battery monitoring IC 11. Inside the input and output circuit 21, the terminal ICOM of the battery monitoring IC 11 is connected to a power supply VDD via a resistor R11 and also connected to the drain of an n-channel MOS transistor M11 via a resistor R12. The source of the n-channel MOS transistor M11 is connected to an electronic power supply VSS. A middle level output signal is supplied from the communication controlling circuit 22 to a gate of the MOS transistor M11.
The terminal ICOM of the battery monitoring IC 11 is connected to the drain of an n-channel MOS transistor M12. The source of the MOS transistor M12 is connected to the electronic power supply VSS. A low level output signal is supplied from the communication controlling circuit 22 inside the battery monitoring IC 11 to the gate of the MOS transistor M12. Further, the terminal ICOM of the battery monitoring IC 11 is connected to the communication controlling circuit 22 via an inverter 23. The inverter 23 has a first threshold value being a midpoint potential between a middle level and a low level. When the terminal ICOM is in the low level, the inverter 23 supplies the high level to the communication controlling circuit 22. When the terminal ICOM is in the middle level or the high level, the inverter 23 supplies the low level to the communication controlling circuit 22.
An input and output circuit 31 is connected to the terminal ICOM of the protection IC 12. The terminal ICOM of the protection IC 31 is connected to the drain of the n-channel MOS transistor M13 in the input and output circuit 31. The source of the MOS transistor M13 is connected to the electronic power supply VSS inside the protection IC 31. A low level output signal is supplied from a communication controlling circuit 32 inside the battery monitoring IC 12 to the gate of the MOS transistor M13.
Further, the terminal ICOM of the battery monitoring IC 12 is connected to the communication controlling circuit 32 via inverters 33 and 34. The inverter 33 has a first threshold value being a midpoint potential between the middle level and the low level. When the terminal ICOM is in the low level, the inverter 33 supplies the high level to the communication controlling circuit 32. When the terminal ICOM is in the middle level or greater, the inverter 33 supplies the low level to the communication controlling circuit 32. The inverter 34 has a second threshold value being a midpoint potential between the high level and the middle level. When the terminal ICOM is in the middle level or smaller, the inverter 34 supplies the high level to the communication controlling circuit 32. When the terminal ICOM is in the high level, the inverter 33 supplies the low level to the communication controlling circuit 32.
The battery monitoring IC 11 supplies a signal having a value of 0 to the MOS transistors M11 and M12 in order to output a signal of the high level from the terminal ICOM, and supplies a signal having a value of 0 to the MOS transistor M11 and a signal having a value of 1 to the MOS transistor M12 in order to output a signal of the low level from the terminal ICOM. The battery monitoring IC 11 supplies a signal having a value of 1 to the MOS transistor M11 and a signal having a value of 0 to the MOS transistor M12 in order to output a signal of the middle level from the terminal ICOM.
If the low level signal is output from the terminal ICOM while the ICOM is in the middle level, the protection IC 12 supplies the signal having the value 1 to the MOS transistor M13.
<Control Command Sending Mode>
FIG. 3 illustrates exemplary timing charts of signals in a control command sending mode in which a control command is sent from the battery monitoring IC 11 to the protection IC 12.
The battery monitoring IC 11 sets the terminal ICOM to be in the middle level at a start bit for a predetermined period τ/2 (e.g., several tens of μs), and then sets the terminal ICOM to be in the high level for a predetermined period τ/2 as illustrated in (A) of FIG. 3. The battery monitoring IC 11 set to be in the middle level reports the control command sending mode to the protection IC 12, and reports a one clock cycle in the period τ of the middle level and the high level. Hatched portions in FIG. 3 indicate one of the middle level and the low level.
Thereafter, by repeating a predetermined period of the middle level or the low level and a predetermined period of the high level several times, for example 14 times, a control command having 14 bits of the middle or low level illustrated as (1) to (14) of (A) of FIG. 3 is sent. The value of the middle level of the bits is 1, and the value of the low level of the bits is 0. The odd bits (1), (3), (5), (7), (9) and (11) among the 14 bits have values of the bits (data bits) themselves, and the even bits (2), (4), (6), (8), (10) and (12) have values inverse to the values of the odd bits (1), (3), (5), (7), (9) and (11). The odd bit (13) is a check bit for an odd parity of the odd bits (1), (3), (5), (7), (9) and (11), and an even bit (14) is an inversion check bit obtained by inverting the check bit. Said differently, the control command is practically formed by seven bits including the check bit. The control command includes an on/off control of the MOS transistor M1 and an on/off control of the MOS transistor M2.
Thereafter, at the time where the battery monitoring IC 11 makes the terminal ICOM be in the middle level, the protection IC 12 makes the terminal ICOM be the high or low level for a predetermined period τ/2 and reports a parity bit (15) to the battery monitoring IC 11 as illustrated in (B) of FIG. 3. The parity bit (15) has the value of an odd parity generated from the received odd bits (1), (3), (5), (7), (9) and (11). For example, if the control command is normally received, the parity bit (15) is set to be in the low level, and if not, the parity bit (15) is set to be in the high level. With this, the signal state (the signal format) in the signal line 13 (i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12) become as illustrated in (C) of FIG. 3.
<State Inquiry Command Receiving Mode>
FIG. 4 illustrates exemplary timing charts of a command receiving mode in which a state is inquired about from the battery monitoring IC 11 to the protection IC 12, and the state response sent from the protection IC 12 is received by the battery monitoring IC 11.
The battery monitoring IC 11 sets the terminal ICOM to be in the low level for a predetermined period τ/2, and then sets the terminal ICOM to be in the high level for a predetermined period τ/2 as illustrated in (A) of FIG. 4. In the battery monitoring IC 11, the start bit of the low level is sent to report the state inquiry command receiving mode to the protection IC 12, and then one clock cycle is reported during the period τ in the middle or high level. Thereafter, the predetermined period of the middle level and the predetermined period of the high level for several times, for example 14 times, are used to send clocks.
Thereafter, at the timing when the terminal ICOM of the battery monitoring IC 11 is in the middle level, the protection IC 12 sends a status of 14 bits in the high or low level illustrated in (1) to (14) of (B) of FIG. 4. The value of the high level of the bits is 1, and the value of the low level of the bits is 0. The bits (1) to (13) among the 14 bits have values of the bits (data bits) themselves of the status, and the bit (14) is a check bit as an odd parity of the bits (1) to (13). Said differently, the control command is practically formed by 14 bits including the check bit. With this, the signal state (the signal format) in the signal line 13 (i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12) become as illustrated in (C) of FIG. 4. There are an on/off state of the MOS transistor M1 and an on/off state of the MOS transistor M2.
<Interrupt Receiving Mode>
FIG. 5 illustrates exemplary timing charts in an interrupt receiving mode in which the protection IC 12 interrupts the battery monitoring IC 11 to receive a state report sent for the protection IC 12 by the battery monitoring IC 11.
The protection IC 12 makes the terminal ICOM to be in the low level for the predetermined period τ/2 as illustrated in (B) of FIG. 5. The protection IC 12 reports the interrupt receiving mode to the battery monitoring IC 11 by making the start bit in the low level.
In response, the battery monitoring IC 11 sets the terminal ICOM to be in the low level for a predetermined period τ/2, and then sets the terminal ICOM to be in the high level for a predetermined period τ/2 as illustrated in (A) of FIG. 5.
Thereafter, at the timing when the terminal ICOM of the battery monitoring IC 11 is in the middle level, the protection IC 12 sends a status of 14 bits in the high or low level illustrated in (1) to (14) of (B) of FIG. 5. The value of the high level of the bits is 1, and the value of the low level of the bits is 0. The bits (1) to (13) among the 14 bits have values of the bits (data bits) themselves of the status, and the bit (14) is a check bit as an odd parity of the bits (1) to (13). Said differently, the control command is practically formed by 14 bits including the check bit. With this, the signal state (the signal format) in the signal line 13 (i.e., the terminals ICOM of the battery monitoring IC 11 and the protection IC 12) becomes as illustrated in (C) of FIG. 5.
<State Transition Diagram of Battery Monitoring IC>
FIG. 6 is an exemplary state transition diagram in the battery monitoring IC 11. Referring to FIG. 6, an initial state is a sequence 0. When the control command sending mode is started in the battery monitoring IC 11, the sequence 0 changes to a sequence T1. If there is no problem, a sequence T1 to a sequence TEND are sequentially transited by the battery monitoring IC 11 at clock periods, and the battery monitoring IC 11 returns to the sequence 0.
When the state inquiry command receiving mode is started in the battery monitoring IC 11, the sequence 0 changes to a sequence R1. If there is no problem, the sequence R1 to a sequence REND are sequentially transited by the battery monitoring IC 11 at clock periods, and the battery monitoring IC 11 returns to the sequence 0.
When the battery monitoring IC 11 detects the low level in the terminal ICOM, the mode changes to the interrupt receiving mode. Then, the battery monitoring IC 11 moves from the sequence 0 to a sequence I1, and transits the sequence I1, a sequence I2, and the sequence R3 to the sequence REND to return to the sequence 0.
If the low level of the terminal ICOM is detected by the battery monitoring IC in any of the sequence T1, a sequence T2, the sequence R1 and a sequence R2, the battery monitoring IC 11 transits to a sequence J1. The transition to the sequence J1 is generated when the control command sending mode or the state inquiry command receiving mode competes against the interrupt receiving mode.
With the embodiment, in order to avoid the competition, priority of the interrupt receiving mode is set higher than the control command sending mode or the state inquiry command receiving mode. With this, the battery monitoring IC 11 transits from the sequence J1 to the sequence 12, sequentially transits the sequence R3 to the sequence REND, and returns to the sequence 0.
<Signal Input and Output Unit of Protection IC>
FIG. 7 illustrates an exemplary circuit structure of the signal input and output unit of the protection IC 12. Referring to FIG. 7, the same reference symbols as those in FIG. 2 are attached to the same portions. Further, the terminal ICOM of the protection IC 12 is connected to the communication controlling circuit 32 via the inverters 33 and 34.
The communication controlling circuit 32 separates a clock of the input signal supplied from the inverter 33 and outputs a pulse signal having the high level period of τ/2 (see (A) of FIG. 8) at a timing of the low level output among the status of 14 bits in synchronization with the separated clock. The signal output by the communication controlling circuit 32 is supplied to a NOR circuit 46 via inverters 42, 43, 44 and 45 and a NOR circuit 47.
A connection point between the inverters 43 and 44 is grounded via a capacitor C1, and the voltage of the capacitor C1 receiving the pulse signal is shaped like a ramp, as illustrated in (B) of FIG. 8. With this, the pulse width of the output signal of the inverter 45 is reduced as illustrated in (C) of FIG. 8.
The output of the NOR circuit 46 is supplied to the gate of the MOS transistor M13 and also supplied to an input terminal of the NOR circuit 47. The output of the NOR circuit 47 is supplied to an input terminal of the NOR circuit 46. Therefore, the pulse width of the output of the NOR circuit 46 becomes narrower than that of the output pulse signal from the communication controlling circuit 32 as illustrated in (D) of FIG. 8. Then, the MOS transistor M13 is turned on at the high level period of the pulse signal output by the NOR circuit 46 thereby causing the terminal ICOM to be in the low level in synchronization with the clock as illustrated in (E) of FIG. 8. Said differently, in the low level period illustrated in (E) of FIG. 8, the pulse width in the ICOM becomes smaller than the pulse width (τ/2) of the output pulse signal. If the low level period of (E) of FIG. 8 output by the protection IC is τ/2, all information pieces in the middle level of the clock output by the battery monitoring IC 11 disappear. In order to prevent the clock information in the middle level disappearing, the low level period of (E) of FIG. 8 is made narrower than τ/2.
The communication controlling circuit 32 illustrated in FIG. 7 includes a shift register illustrated in FIG. 9. The shift register includes n-stage D-type flip-flops 100-1 to 100-n and switches 101-1 to 101-n respectively connected to the D input terminals of the n-stage D-type flip-flops 100-1 to 100-n. For example, the switches 101-1 to 101-n are switched to terminals 103-1 to 103-n when a signal having a value of 0 is supplied to a terminal 102, and statuses of n bits supplied from the terminals 103-1 to 103-n are set in the n-stage D-type flip-flops 100-1 to 100-n along with an input of a clock from a terminal 105.
Thereafter, the value of the terminal 102 becomes a value 1. Then, the switch 101-1 connects the D input terminal of the flip-flop 100-1 to the terminal 104, and the switches 101-2 to 101-n connect the D input terminals of the flip-flops 100-2 to 100-n to Q input terminals of the flip-flops 100-1 to 100-n-1 on the previous stages, thereby forming a shift register. A clock separated by the communication controlling circuit 32 from the input signal into the terminal ICOM is input into the terminal 105 and is supplied to clock input terminals of the flip-flops 100-1 to 100-n. With the input of the clock, the status of n bits set in the flip-flops 100-1 to 100-n is sequentially shifted by the flip-flops 100-1 to 100-n and output from the terminal 106 in series.
Referring to FIG. 10, exemplary waveforms of (A) to (E) correspond to the input into the inverter 42, the voltage of the capacitor C1, the output from the inverter 45, the output from the NOR circuit 47 and the terminal ICOM in the command sending mode, respectively illustrated in FIG. 7. If the protection IC 12 supplies a pulse of the high level P1 illustrated in (A) of FIG. 10 to the inverter 42 in order to cause the terminal ICOM to output the low level, the terminal ICOM is in the low level during a first half of the period τ/2 of the pulse P1 and in the middle level in the second half as illustrated in (E) of FIG. 10.
Referring to FIG. 11, exemplary waveforms of (A) to (E) correspond to the input into the inverter 42, the voltage of the capacitor C1, the output from the inverter 45, the output from the NOR circuit 47 and the terminal ICOM in the state inquiry command receiving mode, respectively illustrated in FIG. 7. If the protection IC 12 supplies pulses of the high level P2 to P5 illustrated in (A) of FIG. 11 to the inverter 42 in order to cause the terminal ICOM to output the low level, the terminal ICOM is in the low level during first halves of the periods τ/2 of the pulses P2 to P5 and in the middle level in the second halves as illustrated in (E) of FIG. 11.
Referring to FIG. 12, exemplary waveforms of (A) to (E) correspond to the input into the inverter 42, the voltage of the capacitor C1, the output from the inverter 45, the output from the NOR circuit 47 and the terminal ICOM in the interrupt receiving mode, respectively illustrated in FIG. 7. If the protection IC 12 supplies pulses of the high level P6 to P9 illustrated in (A) of FIG. 12 to the inverter 42 in order to cause the terminal to output the low level, the terminal ICOM is in the low level during first halves of the periods τ/2 of the pulses P6 to P9 and in the middle level in the second halves as illustrated in (E) of FIG. 12.
<Signal Output Process of Protection IC>
FIG. 13 is an exemplary flowchart of a signal output process performed by the protection IC 12. Referring to FIG. 13, under a steady state, it is determined whether a guard state is changed in step S1; said differently, whether the guard state is changed from the steady state to an abnormal state or the like. If there is no change in the guard state, it is determined whether there is an input signal from the terminal ICOM. If there is no input signal, the process goes to step S1.
If it is determined that the guard state is changed in step S1, the first pulse of the low level is output from the terminal ICOM in step S3 so that the interrupt receiving mode is reported from the protection IC 12 to the battery monitoring IC 11. Then, the process goes to step S2. If there is the input signal in step S2, it is determined in step S4 whether the first pulse in the terminal ICOM is the middle level.
If the first pulse is not in the middle level in step S4, the mode is the status inquiry command receiving mode or the interrupt receiving mode. Therefore, an output of the status is recognized in step S5, and bits of the status are sent in synchronization with the clock in step S6. Next, it is determined whether there is a next pulse after a lapse of a predetermined period (e.g., several times to several tens of times of τ) from the immediately preceding pulse input in step S7.
If there is no next pulse input after the predetermined period, the low level output in step S3 is considered to be not recognized by the battery monitoring IC 11. Then, the process goes again to step S3 to repeat the process in step S3. If there is a next pulse input within the predetermined period, the pulses of the high level are counted up to 15 pulses and the status transmission is completed to return to the steady state in step S8.
On the other hand, if the first pulse is in the middle level in step S4, the mode is the control command sending mode. Therefore, the bits of the control command sent from the battery monitoring IC 11 are received and input in step S9. Then, it is determined in step S10 whether odd bits (1), (3), (5), (7), (9), (11) and (13) respectively match even bits (2), (4), (6), (8), (10), (12) and (14) and whether an odd parity calculated from the odd bits (1), (3), (5), (7), (9), (11) and (13) matches a check bit of the odd bit (13). If the odd parity matches the check bit, the low level is output from the terminal ICOM to report to the battery monitoring IC 11. Then, the steady state is retrieved. If the odd parity does not match the check bit, the low level is output from the terminal ICOM in step S12 to a report reception failure to the battery monitoring IC 11. Then, the steady state is retrieved. With this, bidirectional serial communication is realized by one signal line.
Although the bidirectional communication is realized by sending the clocks in the high and middle levels from the battery monitoring IC 11 and sending the low level signal from the protection IC 12 in the above, the clocks in the low and middle levels from the battery monitoring IC 11 and may be sent and the high level signal may be sent from the protection IC 12 to perform the bidirectional communication.
<Noise Contamination>
FIG. 14 is an exemplary waveform in the signal line 13. Referring to FIG. 14, if a noise N1 of a negative pulse is mixed when there is no communication, the battery monitoring IC 11 erroneously recognizes that the interrupt receiving mode starts, and the protection IC 12 erroneously recognizes that the state inquiry command receiving mode is started. With this, the battery monitoring IC 11 automatically outputs clocks at a predetermined interval until the communication is completed, and the protection IC 12 outputs the status in conformity with the middle level period of the clock.
The following description is given on the premise that noise N2 is mixed between the first middle level M1 and the second middle level M2 output from the battery monitoring IC 11. The battery monitoring IC 11 does not perform the sequence due to the existence of the noise N2. However, the protection IC 12 may perform the sequence by erroneously recognizing the noise N2 as an output of the middle level from the battery monitoring IC 11. This is because the protection IC 12 recognizes a voltage of the signal line 13 being the second threshold value or smaller as the middle level and communicates in synchronization with the middle level.
The battery monitoring IC 11 outputs the clocks until the end of the communication in the interrupt receiving mode, and thereafter recognizes the state is the non-communication state. Because the protection IC 12 detects the middle level output from the signal line 13 to be one greater than the clock pulse number output by the battery monitoring IC 11, the protection IC 12 recognizes the non-communication state after outputting the 14th middle level M14 from the battery monitoring IC 11, and erroneously recognizes the middle level M15 output from the battery monitoring IC 11 as the start signal for the control command sending mode.
The following description is given on the premise that the battery monitoring IC 11 starts the state inquiry command receiving mode after several clocks after outputting the middle level M15. At this time, the protection IC 12 may recognize that not the state inquiry command receiving mode but the control command sending mode is active. With the above-described phenomenon, a control command having an erroneous value may be written in the register of the protection IC 12.
However, with the embodiment, the register of the protection IC 12 is prevented from being erroneously written by performing the error detecting process described below.
The value of the parity bit in the control command sending mode constantly becomes 0 if the protection IC 12 properly receives data. However, if the data are erroneously received by an influence of noise during communication, the value of the parity bit may become 1. Therefore, if the battery monitoring IC 11 receives the parity bit having the value 1 in the control command sending mode, the battery monitoring IC 11 recognizes that the parity bit having the value 1 indicates a communication error.
<First Embodiment of Error Detecting Process>
FIG. 15 is an exemplary signal format in the control command sending mode of a First Embodiment. FIG. 15 corresponds to (C) of FIG. 3. Referring to FIG. 15, the first middle level output by the battery monitoring IC 11 is a start bit S, an odd bit (1) is a data bit D1, and an even bit (2) is an inverted data bit /D1 (“/” means inversion). In a manner similar to the above, odd bits and even bits (3) to (12) are data bits D2 to D6 and inverted data bits /D2 to /D6, respectively. Further, an odd bit (13) is a check bit C and an even bit (14) is an inversion check bit /C. Furthermore, a parity bit (15) output by the protection IC 12 is a parity bit P.
FIG. 16 is a flowchart of the error detecting process performed by the protection IC 12 of the First Embodiment. Referring to FIG. 16, the bit D1 is received and retained in step S21. The bit /D1 is received in step S22. In step S23, it is determined whether the value of the bit /D1 is the same as a value obtained by inverting the value retained in a register # 1. If the value of the bit /D1 is the same as the value obtained by inverting the value retained in the register # 1, the process goes to step S24. If not, the process goes to step S36.
In step S24, the bit D2 is received and retained in a register # 2. The bit /D2 is received in step S25. In step S26, it is determined whether the value of the bit /D2 is the same as a value obtained by inverting the value retained in a register # 2. If the value of the bit /D2 is not the same as the value obtained by inverting the value retained in the register # 2, the process goes to step S36.
If the value of the bit /D2 is the same as the value obtained by inverting the value retained in the register # 2 in step S26, processes similar to those in steps S21 to S23 are performed. If values of the bits /D3, /D4 and /D5 are the same as values obtained by inverting values retained in a register # 3 to a register # 5, the process goes to step S27. If not, the process goes to step S36.
In step S27, the bit D6 is received and retained in a register # 6. The bit /D6 is received in step S28. In step S29, it is determined whether the value of the bit /D6 is the same as a value obtained by inverting the value retained in a register # 6. If the value of the bit /D6 is the same as the value obtained by inverting the value retained in the register # 6, the process goes to step S30. If not, the process goes to step S36.
In step S30, the bit C is received and retained in a register # 7. The bit /C is received in step S31. In step S32, it is determined whether the value of the bit /C is the same as a value obtained by inverting the value retained in a register # 7. If the value of the bit /C is the same as the value obtained by inverting the value retained in the register # 7, the process goes to step S33. If not, the process goes to step S36. Next, in step S33, it is determined whether the value retained in the register # 7 is the same as the value of an odd parity of the values retained in the registers # 1 to #6. If the value retained in the register # 7 is the same as the value of the odd parity of the values retained in the registers # 1 to #6, the process goes to step S34. If not, the process goes to step S36.
In step S34, the values retained in the registers # 1 to #6 are transferred to a control register of the protection IC 12. Next, in step S35, the low level is output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11, and the process ends.
Meanwhile, in step S36, the process waits until the clock is supplied from the battery monitoring IC 11 by 15 pulses. Next, in step S37, the low level is not output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11, and the process ends. As described, it is possible to prevent the control register of the protection IC 12 from being erroneously written in.
Meanwhile, when the battery monitoring IC 11 starts the control command sending mode and the protection IC 12 simultaneously starts the interrupt receiving mode, a competition occurs. Then, communication between the battery monitoring IC 11 and the protection IC 12 may be stopped while the protection IC 12 recognizes that the communication is being done because frame lengths in the control command sending mode and the interrupt receiving mode are different. This phenomenon is similar to that in the noise contamination in FIG. 14. At this time, when other communication is started, there is a probability that erroneous data are written in the control bit of the protection IC 12. However, as to the signal format illustrated in FIG. 3 of the embodiment, only in the control command sending mode, pairs of the data bits D1 to D6 (original signals) and the inverted data bits /D1 to /D6 (inversion signals) are output from the battery monitoring IC 11. Therefore, it is possible to prevent the control register from being written in by detecting abnormal communication on the side of the protection IC 12.
<Second Embodiment of Error Detecting Process>
FIG. 17 is an exemplary signal format in the control command sending mode of a Second Embodiment. Referring to (A) of FIG. 17, the battery monitoring IC 11 sequentially outputs a star bit S, data bits D1 to D6, and a check bit C being an odd parity of data bits D1 to D6. Thereafter, a constant bit of a value of 0 (the low level) is output. Further, the data D1 is output again. Thereafter, inverted data bit /D2 to inverted data bit /D6 are output and an inversion check bit /C being an inverted odd parity is output. Thereafter, the protection IC 12 outputs the received data bits D1 to D6 and a parity bit P being the odd parity of the check bit C.
Instead of (A) of FIG. 17, a modified structure of (A) may be employed. In this modified structure, the data bits D2 to D6, C and D1 are sequentially output, the constant bit 0 is output, and the data bit D2, the inverted data bits /D3 to /D6, the inversion check bit /C and the inverted data bit /D1 are sequentially output as illustrated in (B) of FIG. 17.
FIG. 18 is a flowchart of the error detecting process performed by the protection IC 12 of the Second Embodiment. This process corresponds to the signal format illustrated in (A) of FIG. 17. Referring to FIG. 18, the bits D1 to D6 are received and retained in the registers # 1 to #6. In step S42, the bit C is received and retained in the registers # 1 to #6. In step S43, the bit 0 is received and retained in the register # 8. In step S44, the bit D1 following the bit 0 is received.
In step S45, it is determined whether the value of the bit D1 received in step S44 is the same as a value retained in the register # 1. If the value of the bit D1 received in step S44 is the same as the value retained in the register # 1, the process goes to step S46. If not, the process goes to step S55.
The bits /D2 to /D6 are received in step S46. In step S47, it is determined whether the values of the bits /D2 to /D6 are the same as values obtained by inverting the values retained in the registers # 2 to #6. If the values of the bits /D2 to /D6 are the same as the values obtained by inverting the values retained in the registers # 2 to #6, the process goes to step S48. If not, the process goes to step S55.
In step S48, the bit /C is received. In step S49, it is determined whether the value of the bit /C is the same as a value obtained by inverting the value retained in the register # 7. If the value of the bit /C is the same as the value obtained by inverting the value retained in the register # 7, the process goes to step S51. If not, the process goes to step S55.
Next, in step S51, it is determined whether the value retained in the register # 7 is the same as the value of an odd parity of the values retained in the registers # 1 to #6. If the value retained in the register # 7 is the same as the value of the odd parity of the values retained in the registers # 1 to #6, the process goes to step S52. If not, the process goes to step S55. In step S52, it is determined whether the value retained in the register # 8 is 0. If the value retained in the register # 8 is 0, the process goes to step S53. If not, the process goes to step S55.
In step S53, the values retained in the registers # 1 to #6 are transferred to the control register of the protection IC 12. Next, in step S54, the low level is output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11, and the process ends.
Meanwhile, in step S55, the process waits until the clock is supplied from the battery monitoring IC 11 by 16 pulses. Next, in step S56, the low level is not output from the terminal ICOM in synchronization with the clock supplied from the battery monitoring IC 11, and the process ends. As described, it is possible to prevent the control register of the protection IC 12 from being erroneously written in.
With the signal format illustrated in FIG. 15, if the data bits D1 to D6 are in an alternating pattern of 0 and 1 and a sequential shift occurs between the battery monitoring IC 11 and the protection IC 12, there is a probability that the sequential shift is detected. However, by using the signal formats illustrated in (A) or (B) of FIG. 17, even if the sequential shift occurs between the battery monitoring IC 11 and the protection IC 12, the error (the sequential shift) can be securely detected.
According to the embodiments, bidirectional serial communication can be performed using only one signal line and an error of information sent from a first device to a second device can be detected by the second device.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority or inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.

Claims (12)

What is claimed is:
1. A communication system for performing serial communication using a first level, a second level different from the first level and a middle level between the first level and the second level, the communication system comprising:
a first device;
a second device; and
a signal line connecting the first device to the second device,
wherein the serial communication is performed by
a first communication format signal sent together with a clock from the first device to the second device under a first mode, and
a second communication format signal sent from the second device to the first device under a second mode,
wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and
the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.
2. The communication system according to claim 1,
wherein the first data bits and the first inverted data bits are alternately arranged in the first communication format signal.
3. The communication system according to claim 1,
wherein the first communication format signal is formed by arranging the first start bit, the first data bits and the first inverted data bits in this order, and
the first check bit, a first constant bit, and the first inversion check bit are embedded in this order in the first data bits and the first inverted data bits.
4. The communication system according to claim 1,
wherein the first communication format signal is formed by sequentially arranging the first data bits, the first check bit, a first constant bit, a part of the first data bits, the first inverted data bits corresponding to another part of the first data bits, and the first inversion check bit.
5. A communication method for performing serial communication using a first level, a second level different from the first level and a middle level between the first level and the second level, the communication method comprising:
performing the serial communication by
sending a first communication format signal together with a clock from a first device to a second device via a signal line connecting the first device to the second device under a first mode, and
sending a second communication format signal from the second device to the first device via the signal line under a second mode,
wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and
the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.
6. The communication method according to claim 5,
wherein the first data bits and the first inverted data bits are alternately arranged in the first communication format signal.
7. The communication method according to claim 5,
wherein the first communication format signal is formed by arranging the first start bit, the first data bits and the first inverted data bits in this order, and
the first check bit, a first constant bit, and the first inversion check bit are embedded in this order in the first data bits and the first inverted data bits.
8. The communication method according to claim 5,
wherein the first communication format signal is formed by sequentially arranging the first data bits, the first check bit, a first constant bit, a part of the first data bits, the first inverted data bits corresponding to another part of the first data bits, and the first inversion check bit.
9. A communication device of a communication system for performing serial communication using a first level, a second level different from the first level and a middle level between the first level and the second level, the communication system including the communication device as a first device, a second device, and a signal line connecting the first device to the second device, the communication device comprising:
a sending unit configured to send a first communication format signal together with a clock to the second device; and
a receiving unit configured to receive a second communication format signal from the second device,
wherein the first communication format signal includes a first start bit, a plurality of first data bits, a plurality of first inverted data bits, a first check bit generated from the first data bits and a first inversion check bit, and
the second communication format signal includes a second start bit, a plurality of second data bits, and a second check bit generated from the second data bits.
10. The communication device according to claim 9,
wherein the first data bits and the first inverted data bits are alternately arranged in the first communication format signal.
11. The communication device according to claim 9,
wherein the first communication format signal is formed by arranging the first start bit, the first data bits and the first inverted data bits in this order, and
the first check bit, a first constant bit, and the first inversion check bit are embedded in this order in the first data bits and the first inverted data bits.
12. The communication device according to claim 9,
wherein the first communication format signal is formed by sequentially arranging the first data bits, the first check bit, a first constant bit, a part of the first data bits, the first inverted data bits corresponding to another part of the first data bits, and the first inversion check bit.
US13/359,648 2011-02-16 2012-01-27 Communication method, communication system and communication device Expired - Fee Related US8654870B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011030413A JP5644570B2 (en) 2011-02-16 2011-02-16 COMMUNICATION METHOD, COMMUNICATION SYSTEM AND DEVICE THEREOF
JP2011-030413 2011-02-16

Publications (2)

Publication Number Publication Date
US20120207230A1 US20120207230A1 (en) 2012-08-16
US8654870B2 true US8654870B2 (en) 2014-02-18

Family

ID=46636863

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/359,648 Expired - Fee Related US8654870B2 (en) 2011-02-16 2012-01-27 Communication method, communication system and communication device

Country Status (4)

Country Link
US (1) US8654870B2 (en)
JP (1) JP5644570B2 (en)
KR (1) KR101819710B1 (en)
CN (1) CN102684826B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112017000698B4 (en) 2016-02-08 2024-03-21 Sony Corporation Transmitting device and communication system
CN106385304B (en) * 2016-08-31 2019-10-25 华为技术有限公司 Data transmission method, equipment and system
CN106528484A (en) * 2016-10-28 2017-03-22 中国科学院上海微系统与信息技术研究所 Serial communication method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5157599A (en) * 1985-03-13 1992-10-20 Canon Kabushiki Kaisha Serial data communication system and apparatus
JPH0795248A (en) 1993-09-20 1995-04-07 Fujitsu General Ltd Time-division data communication system
US5548711A (en) * 1993-08-26 1996-08-20 Emc Corporation Method and apparatus for fault tolerant fast writes through buffer dumping
JP2000124960A (en) 1998-10-19 2000-04-28 Yazaki Corp Converting method, demodulating method, converter and demodulator
US20020114409A1 (en) * 2001-02-22 2002-08-22 Yasunori Shingaki Serial data communication apparatus and detection method for communication error
US20020152041A1 (en) * 2001-02-13 2002-10-17 Loughry Robert Joseph System & method for addressing optical emanations from an information processing device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5829671B2 (en) * 1975-03-25 1983-06-24 日本電気株式会社 data
JPS57123750A (en) * 1981-01-23 1982-08-02 Hitachi Ltd Signal transmitting and receiving device
JPS57135538A (en) * 1981-02-14 1982-08-21 Omron Tateisi Electronics Co Series data transmission system
JP2502491B2 (en) * 1983-09-16 1996-05-29 株式会社日立製作所 Communication processing circuit
JP2500801B2 (en) * 1983-09-21 1996-05-29 株式会社日立製作所 Terminal processing device
JPS61253941A (en) * 1985-05-07 1986-11-11 Japanese National Railways<Jnr> 1:n time division fail/safe transmitting method
CN1010647B (en) * 1985-05-23 1990-11-28 D.A.V.I.D.系统公司 High-speed digital loop transceiver
JPH04255141A (en) * 1991-02-06 1992-09-10 Yamatake Honeywell Co Ltd Data transmission method
JPH07264250A (en) * 1994-03-17 1995-10-13 Nissan Motor Co Ltd Serial data transmitter
DE19651126A1 (en) * 1996-12-09 1998-06-18 Siemens Audiologische Technik Serial, bi-directional data transmission method
JP2010258985A (en) * 2009-04-28 2010-11-11 Sony Corp Signal processor, and error correction process

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5157599A (en) * 1985-03-13 1992-10-20 Canon Kabushiki Kaisha Serial data communication system and apparatus
US5548711A (en) * 1993-08-26 1996-08-20 Emc Corporation Method and apparatus for fault tolerant fast writes through buffer dumping
JPH0795248A (en) 1993-09-20 1995-04-07 Fujitsu General Ltd Time-division data communication system
JP2000124960A (en) 1998-10-19 2000-04-28 Yazaki Corp Converting method, demodulating method, converter and demodulator
US6373405B1 (en) 1998-10-19 2002-04-16 Yazaki Corporation Conversion method, restoration method, conversion device, and restoration device
US20020152041A1 (en) * 2001-02-13 2002-10-17 Loughry Robert Joseph System & method for addressing optical emanations from an information processing device
US20020114409A1 (en) * 2001-02-22 2002-08-22 Yasunori Shingaki Serial data communication apparatus and detection method for communication error

Also Published As

Publication number Publication date
KR20120094438A (en) 2012-08-24
CN102684826B (en) 2016-08-17
KR101819710B1 (en) 2018-02-28
US20120207230A1 (en) 2012-08-16
CN102684826A (en) 2012-09-19
JP2012169953A (en) 2012-09-06
JP5644570B2 (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US9589720B2 (en) Signal transmission device and switching power supply
US20120206091A1 (en) Communication system and devices in the communication system
JP3939327B2 (en) Data transmission and reception method, data transmission and reception device
KR20070006764A (en) Data communication module providing fault tolerance and increased stability
US11245267B2 (en) Battery system, battery module and battery control circuit thereof
US8654870B2 (en) Communication method, communication system and communication device
CN107077448A (en) Upset immune circuit in edge while for multi-mode bus
US7009913B2 (en) Sequence controller
CN110266303B (en) Refreshing circuit, refreshing method, chip and data transmission system
US20100271251A1 (en) Serial Interface, Apparatus Including the Same, and Method of Using the Same
US10496576B2 (en) Communication apparatus
JP2014068466A (en) Charge device
US8611456B2 (en) Isolated communication system
CN105226810A (en) Many ups systems power supply synchronization system and method
CN102244623A (en) Isolated communication system, and transmission unit and receiving unit applied to isolated communication system
WO2023286517A1 (en) Failure detecting device, and failure detecting method
JP6232313B2 (en) Synchronous serial communication method and slave device
US11487600B2 (en) Electronic circuit
US20230308309A1 (en) Insulated communication system
JP5388196B2 (en) DC balanced code generation circuit, serial data transmission apparatus, DC balanced code generation method, program thereof, and recording medium
JP6435250B2 (en) Contact input control device
US20180341608A1 (en) Communication device
KR100240248B1 (en) Data transmit/receive apparatus and data transmit/receive method
US8023603B2 (en) Interface circuit including a shift clock generator to generate a shift clock having different cycles according to data sequence of data string
JPH05199245A (en) Information transmission system

Legal Events

Date Code Title Description
AS Assignment

Owner name: MITSUMI ELECTRIC CO., LTD., JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HIROSE, YOSHINORI;REEL/FRAME:027606/0188

Effective date: 20120126

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

FPAY Fee payment

Year of fee payment: 4

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20220218