FR2965373A1 - Method for communication between master and slave circuits on open drain bus in master-slave transmission system, involves simultaneously transmitting opposite identifiers, where each slave circuit exploits combinations to determine order - Google Patents

Method for communication between master and slave circuits on open drain bus in master-slave transmission system, involves simultaneously transmitting opposite identifiers, where each slave circuit exploits combinations to determine order Download PDF

Info

Publication number
FR2965373A1
FR2965373A1 FR1057752A FR1057752A FR2965373A1 FR 2965373 A1 FR2965373 A1 FR 2965373A1 FR 1057752 A FR1057752 A FR 1057752A FR 1057752 A FR1057752 A FR 1057752A FR 2965373 A1 FR2965373 A1 FR 2965373A1
Authority
FR
France
Prior art keywords
slave
circuit
master
bus
circuits
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.)
Granted
Application number
FR1057752A
Other languages
French (fr)
Other versions
FR2965373B1 (en
Inventor
Francois Tailliet
Yvon Bahout
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.)
STMicroelectronics Rousset SAS
Original Assignee
STMicroelectronics Rousset SAS
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 STMicroelectronics Rousset SAS filed Critical STMicroelectronics Rousset SAS
Priority to FR1057752A priority Critical patent/FR2965373B1/en
Publication of FR2965373A1 publication Critical patent/FR2965373A1/en
Application granted granted Critical
Publication of FR2965373B1 publication Critical patent/FR2965373B1/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • G06F12/0653Configuration or reconfiguration with centralised address assignment
    • G06F12/0661Configuration or reconfiguration with centralised address assignment and decentralised selection

Abstract

The method involves simultaneously transmitting identifiers (UID1, UID2) and reverse identifiers (NUIDI, NUID2) at same time by slave circuits, where each slave circuit exploits combinations present on bus for determining a communication order between the slave circuits. Preceding steps are triggered by a master circuit by sending a specific command on bus. The command is preceded by sending slave address (ADD1) common to the slave circuits. Relation i.e. order relation, between one of the identifiers of the slave circuit and another identifier of another slave circuit is determined. Independent claims are also included for the following: (1) a master-slave transmission system, comprising an electronic transmission circuit to implement (2) a method of communication between a master circuit and slave circuit.

Description

B10602 - 10-RO-292 1 IDENTIFICATION, PAR UN CIRCUIT MAÎTRE, DE DEUX CIRCUITS ESCLAVES CONNECTÉS SUR UN MÊME BUS Domaine de l'invention La présente invention concerne les transmissions électroniques et, plus particulièrement, la transmission de données numériques dans un système maître-esclave. L'invention s'applique plus particulièrement aux communications sur un bus, dit à drain ouvert ou à collecteur ouvert (selon la technologie MOS ou bipolaire), selon un protocole où la vitesse de transmission est indépendante des états des bits transmis. L'invention s'applique, par exemple, à des trans- missions sur bus bifilaire véhiculant des données et un signal de synchronisation, par exemple de type I2C. Exposé de l'art antérieur Dans un bus à drain ouvert (ou collecteur ouvert), le conducteur de données du bus est, au repos, à un potentiel différent de la masse (généralement un potentiel positif). Les données sont codées, puis transmises en tirant le bus à la masse selon un codage préétabli permettant au récepteur de décoder les données. On connaît de nombreux protocoles de communication exploitant un bus à drain ouvert (ou collecteur ouvert). Qu'il s'agisse de protocoles sur bus unifilaire (par exemple, un B10602 - 10-RO-292 FIELD OF THE INVENTION The present invention relates to electronic transmissions and, more particularly, to the transmission of digital data in a master system. -slave. The invention applies more particularly to communications on a bus, said open-drain or open collector (according to MOS or bipolar technology), according to a protocol where the transmission speed is independent of the states of the transmitted bits. The invention applies, for example, to two-wire bus transmissions conveying data and a synchronization signal, for example of the I2C type. DISCUSSION OF THE PRIOR ART In an open-drain bus (or open collector), the data conductor of the bus is, at rest, at a potential different from the ground (generally a positive potential). The data is encoded and then transmitted by pulling the bus to ground according to a pre-established encoding enabling the receiver to decode the data. Many communication protocols are known operating an open drain bus (or open collector). Be it single-wire bus protocols (for example, a B10602 - 10-RO-292

2 protocole connu sous la dénomination SWP) ou sur bus multifilaire (par exemple, des protocoles bifilaire de type I2C), lorsque plusieurs circuits esclaves sont connectés sur un même bus et sont susceptibles de communiquer avec un même circuit maître, le circuit maître doit envoyer sur le bus une adresse ou un identifiant du circuit esclave permettant à celui-ci de se reconnaître et de répondre. Les autres circuits esclaves ne se reconnaissant pas d'après l'adresse restent muets. 2 protocol known under the name SWP) or on a multi-wire bus (for example, two-wire type I2C protocols), when several slave circuits are connected on the same bus and are capable of communicating with the same master circuit, the master circuit must send on the bus an address or an identifier of the slave circuit allowing it to recognize and respond. Other slave circuits that do not recognize themselves from the address remain silent.

Dans les systèmes usuels, il est donc nécessaire que le circuit maître connaisse les adresses des différents circuits esclaves, faute de quoi plusieurs circuits esclaves sont susceptibles de répondre en même temps, ce qui rend la transmission ininterprétable. In the usual systems, it is therefore necessary for the master circuit to know the addresses of the different slave circuits, otherwise several slave circuits may respond at the same time, which renders the transmission uninterpretable.

Résumé Un objet d'un mode de réalisation de la présente invention est de pallier tout ou partie des inconvénients des systèmes de communication sur bus à drain ouvert (ou collecteur ouvert). SUMMARY An object of an embodiment of the present invention is to overcome all or part of the disadvantages of communication systems on open drain bus (or open collector).

Un autre objet d'un mode de réalisation de la présente invention est de permettre à deux circuits esclaves de s'identifier auprès d'un circuit maître. Un autre objet d'un mode de réalisation de la présente invention est de proposer une solution plus particulièrement destinée à des protocoles de communication dans lesquels des bits sont transmis sur des périodes de durées indépendantes des états respectifs des bits. Un autre objet d'un mode de réalisation de la présente invention est de proposer une solution permettant une communication simultanée entre un circuit maître et deux circuits esclaves. Pour atteindre tout ou partie de ces objets ainsi que d'autres, il est prévu un procédé de communication entre un circuit maître et deux circuits esclaves sur un bus série dans lequel : B10602 - 10-RO-292 Another object of an embodiment of the present invention is to allow two slave circuits to identify themselves to a master circuit. Another object of an embodiment of the present invention is to propose a solution more particularly intended for communication protocols in which bits are transmitted over periods of durations independent of the respective states of the bits. Another object of an embodiment of the present invention is to propose a solution allowing simultaneous communication between a master circuit and two slave circuits. To achieve all or part of these objects as well as others, there is provided a method of communication between a master circuit and two slave circuits on a serial bus in which: B10602 - 10-RO-292

3 les deux circuits esclaves transmettent en même temps des identifiants qui leurs sont associés ; les deux circuits esclaves transmettent en même temps l'inverse de ces identifiants ; et chaque circuit esclave exploite les combinaisons présentes sur le bus pour déterminer un ordre de communication entre les deux circuits. Selon un mode de réalisation de la présente invention, le circuit maître déclenche les étapes précédentes par l'envoi 10 d'une commande spécifique sur le bus. Selon un mode de réalisation de la présente invention, ladite commande est précédée par l'envoi, par le circuit maître d'une adresse commune aux deux circuits esclaves. Selon un mode de réalisation de la présente invention, 15 chaque circuit esclave détermine une relation entre son propre identifiant et celui de l'autre circuit esclave. Selon un mode de réalisation de la présente invention, la relation entre les identifiants est une relation d'ordre. Selon un mode de réalisation de la présente invention, 20 chaque circuit esclave transmet, au circuit maître, une adresse le concernant, l'ordre de transmission étant fixé par la relation entre les identifiants respectifs des circuits esclaves. Selon un mode de réalisation de la présente invention, 25 chaque circuit esclave transmet, au circuit maître, son identifiant en guise d'adresse. Selon un mode de réalisation de la présente invention, le bus est un bus à drain ouvert (ou collecteur ouvert) dans lequel un bit est transmis sur une période de durée indépendante 30 de l'état du bit. On prévoit également un circuit électronique de transmission sur bus série. On prévoit également un système de transmission maître-esclave entre un maître et deux esclaves. The two slave circuits at the same time transmit identifiers associated with them; the two slave circuits transmit at the same time the inverse of these identifiers; and each slave circuit exploits the combinations present on the bus to determine a communication order between the two circuits. According to one embodiment of the present invention, the master circuit triggers the preceding steps by sending a specific command on the bus. According to one embodiment of the present invention, said command is preceded by the sending by the master circuit of an address common to the two slave circuits. According to an embodiment of the present invention, each slave circuit determines a relationship between its own identifier and that of the other slave circuit. According to an embodiment of the present invention, the relationship between the identifiers is a relation of order. According to an embodiment of the present invention, each slave circuit transmits, to the master circuit, an address relating to it, the transmission order being fixed by the relation between the respective identifiers of the slave circuits. According to an embodiment of the present invention, each slave circuit transmits, to the master circuit, its identifier as an address. According to one embodiment of the present invention, the bus is an open drain bus (or open collector) in which a bit is transmitted over a period of time independent of the state of the bit. An electronic circuit for transmission over a serial bus is also provided. There is also provided a master-slave transmission system between a master and two slaves.

B10602 - 10-RO-292 B10602 - 10-RO-292

4 Brève description des dessins Ces objets, caractéristiques et avantages, ainsi que d'autres seront exposés en détail dans la description suivante de modes de réalisation particuliers faite à titre non-limitatif en relation avec les figures jointes parmi lesquelles : la figure 1 représente, partiellement et sous forme de blocs, deux circuits susceptibles de communiquer dans un protocole maître-esclave de type I2C ; les figures 2A, 2B, 2C et 2D illustrent une communi-10 cation entre les deux circuits de la figure 1 ; la figure 3 représente, de façon schématique et sous forme de blocs, un exemple de système de communication selon un mode de réalisation de la présente invention ; la figure 4 illustre une trame de communication 15 usuelle selon le protocole I2C ; la figure 5 représente, de façon très schématique, le conducteur de données d'un bus à drain ouvert (ou collecteur ouvert) et ses connexions dans un système du type de celui de la figure 3 ; 20 la figure 6 illustre, de façon très schématique et sous forme de blocs, un mode de réalisation du procédé d'identification de circuits esclaves par un circuit maître selon un mode de réalisation de la présente invention ; la figure 7 illustre une trame selon le procédé de la 25 figure 6 ; et la figure 8 est un chronogramme illustrant un exemple de protocole de communication auquel s'applique la présente invention. Description détaillée 30 De mêmes éléments ont été désignés par de mêmes références aux différentes figures. Par souci de clarté, seuls les étapes et éléments utiles à la compréhension des modes de réalisation exposés seront décrits. En particulier, l'exploitation faite des données dans chacun des circuits 35 communiquant n'a pas été détaillée, les modes de réalisation B10602 - 10-RO-292 BRIEF DESCRIPTION OF THE DRAWINGS These and other objects, features, and advantages will be set forth in detail in the following non-limiting description of particular embodiments in connection with the accompanying figures in which: FIG. partially and in the form of blocks, two circuits capable of communicating in a master-slave I2C protocol; Figures 2A, 2B, 2C and 2D illustrate a communi-10 cation between the two circuits of Figure 1; Fig. 3 schematically shows in block form an example of a communication system according to an embodiment of the present invention; FIG. 4 illustrates a usual communication frame according to the I2C protocol; FIG. 5 very schematically represents the data conductor of an open-drain bus (and open collector) and its connections in a system of the type of FIG. 3; FIG. 6 very schematically illustrates in block form an embodiment of the method of identifying slave circuits by a master circuit according to an embodiment of the present invention; Figure 7 illustrates a frame according to the method of Figure 6; and Fig. 8 is a timing diagram illustrating an example of a communication protocol to which the present invention applies. DETAILED DESCRIPTION The same elements have been designated with the same references in the various figures. For the sake of clarity, only the steps and elements useful for understanding the exposed embodiments will be described. In particular, the exploitation of the data in each of the communicating circuits has not been detailed, the embodiments B10602-10-RO-292

décrits étant compatibles avec les utilisations usuelles de ces données. De plus, le codage des signaux à transmettre par les différents circuits communiquant n'a pas non plus été détaillé, l'invention étant là encore compatible avec des circuits usuels 5 de codage de tels signaux. Les modes de réalisation feront par la suite référence à une communication exploitant les fonctionnalités d'un protocole connu sous la dénomination I2C. L'invention s'applique toutefois plus généralement à tout protocole de communication utilisant au moins un fil de transmission de données dans un protocole à drain ouvert (ou collecteur ouvert), et dans lequel les durées des périodes sur lesquelles sont transmis les bits sont indépendantes de leurs états (la transmission d'un 1 occupe la même durée que la transmission d'un 0). described being compatible with the usual uses of these data. In addition, the coding of the signals to be transmitted by the various communicating circuits has not been detailed either, the invention being again compatible with conventional coding circuits for such signals. Embodiments will subsequently reference a communication exploiting the functionality of a protocol known as I2C. The invention more generally applies to any communication protocol using at least one data transmission wire in an open-drain protocol (or open collector), and in which the durations of the periods on which the bits are transmitted are independent. of their states (the transmission of a 1 occupies the same duration as the transmission of a 0).

La figure 1 est un schéma bloc d'un mode de réalisation d'un système de communication entre un dispositif maître 1 et un dispositif esclave 3 selon le protocole I2C. Dans l'exemple de la figure 1, le circuit 1 est un circuit maître (MD) et est susceptible de communiquer, par un bus I2C, avec un ou plusieurs dispositifs esclaves 3 (SD). Les différents circuits du système peuvent être alimentés indépendamment les uns des autres ou, comme cela est représenté, par un bus d'alimentation susceptible de véhiculer au moins un potentiel d'alimentation VDD et un potentiel de référence (GND), par exemple la masse. Chaque circuit 1, 3 comporte, par exemple, un circuit d'émission (SEND) 11, 31 et un circuit de réception (DEI) 12, 32. Les circuits 1 et 3 sont reliés l'un à l'autre par le bus I2C ainsi que par les deux fils VDD et GND du bus d'alimentation. Un premier fil 42 du bus I2C véhicule un signal d'horloge (SCL) entre deux bornes CK des circuits 1 et 3. Typiquement, ce signal d'horloge est imposé par le circuit maître 1. Un deuxième fil 44 du bus I2C véhicule les données (SDA) entre les deux circuits. Le bus I2C est bidirectionnel. FIG. 1 is a block diagram of an embodiment of a communication system between a master device 1 and a slave device 3 according to the I2C protocol. In the example of FIG. 1, the circuit 1 is a master circuit (MD) and is capable of communicating, via an I2C bus, with one or more slave devices 3 (SD). The various circuits of the system may be powered independently of each other or, as shown, by a power supply bus capable of carrying at least one VDD supply potential and a reference potential (GND), for example ground . Each circuit 1, 3 comprises, for example, a transmission circuit (SEND) 11, 31 and a receiving circuit (DEI) 12, 32. The circuits 1 and 3 are connected to each other by the bus I2C as well as the two VDD and GND wires of the power bus. A first wire 42 of the I2C bus carries a clock signal (SCL) between two terminals CK circuits 1 and 3. Typically, this clock signal is imposed by the master circuit 1. A second wire 44 of the I2C bus conveys the data (SDA) between the two circuits. The I2C bus is bidirectional.

B10602 - 10-RO-292 B10602 - 10-RO-292

6 Les figures 2A, 2B, 2C et 2D sont des chronogrammes illustrant un exemple de transmission d'un mot de données (typiquement un octet) du circuit maître vers le circuit esclave 3. FIGS. 2A, 2B, 2C and 2D are timing diagrams illustrating an example of transmission of a data word (typically a byte) from the master circuit to the slave circuit 3.

Pour clarifier la description, les figures 2A, 2B, 2C et 2D représentent l'allure de signaux correspondant respectivement au signal (SDAM) positionné par le circuit d'émission 11 du circuit maître sur le fil 44, au signal d'horloge (SCL) imposé par le circuit maître, au signal (SDAS) positionné par le circuit 31 sur le fil 44, et au niveau (SDA) résultant de ce fil. Malgré la représentation simplifiée de la figure 1, on considère que les circuits de réception respectifs 12 et 32 des circuits 1 et 3 observent l'état du fil 44 indépendamment des niveaux imposés SDAM et SDAS par leurs circuits d'émission 11 et 31. De même, pour simplifier, on néglige les chutes de tension par rapport au potentiel d'alimentation et on considère que les niveaux haut correspondent à la tension VDD et que les niveaux bas correspondent à la masse. To clarify the description, FIGS. 2A, 2B, 2C and 2D show the signal curve corresponding respectively to the signal (SDAM) set by the transmission circuit 11 of the master circuit on the wire 44, to the clock signal (SCL ) imposed by the master circuit, the signal (SDAS) positioned by the circuit 31 on the wire 44, and the (SDA) resulting from this wire. Despite the simplified representation of FIG. 1, it is considered that the respective reception circuits 12 and 32 of the circuits 1 and 3 observe the state of the wire 44 independently of the imposed levels SDAM and SDAS by their transmission circuits 11 and 31. even, for simplicity, we neglect the voltage drops with respect to the supply potential and we consider that the high levels correspond to the voltage VDD and that the low levels correspond to the mass.

Au repos, les deux fils 42 et 44 du bus I2C sont au niveau haut. C'est ce qui caractérise un bus dit à drain ouvert (ou collecteur ouvert) où le bus est tiré à la tension d'alimentation et est ensuite forcé à un état inférieur (dans cet exemple, la masse) par les différents dispositifs communiquant. En supposant que le circuit veuille transmettre une trame de données au circuit 3, il prend le contrôle du bus en imposant un niveau bas sur le signal SDA (instant t1) alors que le signal SDL reste au niveau haut. Cette condition de départ (Start) est détectée par le circuit esclave 3 connecté sur le bus. Une fois cette condition de départ effectuée, le circuit 1 génère le signal d'horloge SCL. Puis, le circuit 1 impose un niveau 1 ou 0 sur le fil 44 (signaux SDAM et SDA) en fonction du premier bit D7 de l'octet à transmettre. Ce positionnement du fil 44 doit intervenir avant le front montant du signal B10602 - 10-RO-292 At rest, the two son 42 and 44 of the bus I2C are high. This is what characterizes a so-called open-drain bus (or open collector) where the bus is pulled to the supply voltage and is then forced to a lower state (in this example, ground) by the different communicating devices. Assuming that the circuit wants to transmit a data frame to the circuit 3, it takes control of the bus by imposing a low level on the SDA signal (time t1) while the SDL signal remains high. This start condition is detected by the slave circuit 3 connected on the bus. Once this initial condition is completed, the circuit 1 generates the clock signal SCL. Then, the circuit 1 imposes a level 1 or 0 on the wire 44 (SDAM and SDA signals) as a function of the first bit D7 of the byte to be transmitted. This positioning of the wire 44 must take place before the rising edge of the signal B10602 - 10-RO-292

7 d'horloge (instant t2) qui valide la donnée transmise. Lorsque le signal SCL revient au niveau bas (instant t3), le circuit maître peut imposer le niveau correspondant à l'état du bit suivant D6 sur le fil 44, et ainsi de suite. Une fois le dernier bit DO transmis, le circuit maître place le signal SDAM au niveau haut, pour surveiller l'arrivée d'un accusé réception. Son circuit de détection 12 surveille en même temps l'état réel du fil 44. Pour indiquer une réception correcte, le circuit esclave 3 impose un niveau bas (figure 2C) sur le fil 44 (signaux SDAS et SDA). Le circuit maître vérifie l'état du fil 44 au front montant (instant t4) du signal SCL qui suit son positionnement à l'état haut du signal SDAM. Si le fil 44 est au niveau bas (comme illustré en figure 2), cela signifie une transmission réussie. Dans le cas contraire, le circuit maître peut réémettre la donnée (une condition de départ (Start) doit pour cela être émise sur le bus I2C). Une fin de transmission (libération du bus) s'effectue par le circuit maître en commutant le signal SDA au niveau haut alors que le signal SCL est également au niveau haut (instant t5). Une fois cette condition d'arrêt (Stop) effectuée, le bus I2C est libre pour démarrer une autre trame I2C. Il peut s'agir, par exemple, d'une transmission du circuit 3 vers le circuit 1. Le protocole de communication I2C fixe différentes conditions additionnelles dans la transmission selon qu'elle concerne une adresse, une donnée, une écriture ou une lecture dans le circuit esclave, etc. En particulier, une adresse est généralement prévue lorsque plusieurs circuits esclaves sont susceptibles d'être connectés sur le même bus. 7 clock (time t2) that validates the data transmitted. When the signal SCL returns to the low level (time t3), the master circuit can impose the level corresponding to the state of the next bit D6 on the wire 44, and so on. Once the last bit DO has been transmitted, the master circuit places the SDAM signal high, to monitor the arrival of an acknowledgment. Its detection circuit 12 simultaneously monitors the actual state of the wire 44. To indicate a correct reception, the slave circuit 3 imposes a low level (FIG. 2C) on the wire 44 (SDAS and SDA signals). The master circuit checks the state of the wire 44 at the rising edge (time t4) of the SCL signal which follows its position in the high state of the SDAM signal. If the wire 44 is low (as shown in Figure 2), it means a successful transmission. In the opposite case, the master circuit can re-transmit the data (a start condition must be sent on the I2C bus). A transmission end (bus release) is performed by the master circuit by switching the SDA signal high while the SCL signal is also high (instant t5). Once this Stop condition has been completed, the I2C bus is free to start another I2C frame. It may be, for example, a transmission of the circuit 3 to the circuit 1. The communication protocol I2C sets different additional conditions in the transmission depending on whether it relates to an address, data, writing or reading in the slave circuit, etc. In particular, an address is generally provided when several slave circuits are likely to be connected on the same bus.

La figure 3 représente, de façon très schématique et sous forme de blocs, un exemple de système de transmission maître-esclave dans lequel un circuit maître 1 est susceptible de communiquer avec deux circuits esclaves 3 (S1) et 3' (S2), et le cas échéant avec encore d'autres circuits esclaves, connectés sur le bus I2C. Pour simplifier la représentation de la figure B10602 - 10-RO-292 FIG. 3 very schematically shows in the form of blocks an example of a master-slave transmission system in which a master circuit 1 is capable of communicating with two slave circuits 3 (S1) and 3 '(S2), and if necessary with still other slave circuits connected on the I2C bus. To simplify the representation of Figure B10602 - 10-RO-292

8 3, on a considéré que les circuits esclaves étaient alimentés séparément et individuellement les uns par rapport aux autres. La figure 4 représente de façon très schématique une trame T de transmission habituelle selon le protocole I2C. Suite au bit de démarrage (S en figure 4), le circuit maître positionne sur le bus I2C l'adresse d'un circuit esclave (Slave address). Généralement, cette adresse est sur un ou deux octets mais toute autre configuration peut convenir. L'adresse est suivie d'un bit R/W indiquant au circuit esclave concerné si le maître souhaite écrire ou récupérer des données dans celui-ci. Ce bit R/W est suivi d'un bit d'accusé réception A positionné par le circuit esclave concerné (symbolisé avec des hachures pour faire ressortir qu'il provient du circuit esclave). Puis, le circuit maître envoie des octets de données D1,..., Dn, chacune suivie d'un accusé réception de la part du circuit esclave. On suppose ici l'envoi de données du maître vers l'esclave. Dans le cas d'une récupération de données, le circuit esclave envoie les données et le circuit maître accuse réception à la fin de chaque octet. La transmission se termine par le bit d'arrêt P. 8 3, it was considered that slave circuits were powered separately and individually with respect to each other. FIG. 4 very schematically shows a usual transmission frame T according to the I2C protocol. Following the start bit (S in FIG. 4), the master circuit sets the address of a slave circuit (Slave address) on the I2C bus. Generally, this address is on one or two bytes but any other configuration may be suitable. The address is followed by an R / W bit indicating to the slave circuit concerned whether the master wishes to write or retrieve data therein. This R / W bit is followed by an acknowledgment bit A positioned by the slave circuit concerned (symbolized with hatching to make it stand out that it comes from the slave circuit). Then, the master circuit sends bytes of data D1, ..., Dn, each followed by an acknowledgment from the slave circuit. Here we assume the sending of data from the master to the slave. In the case of a data recovery, the slave circuit sends the data and the master circuit acknowledges receipt at the end of each byte. The transmission ends with the P stop bit.

Ce système fonctionne correctement à condition que le circuit maître soit capable d'adresser un seul circuit esclave à un instant donné. En effet, dans le cas contraire, deux circuits esclaves se considèrent adressés, ce qui engendre un conflit sur le bus. This system works properly provided that the master circuit is able to address a single slave circuit at a given time. In fact, in the opposite case, two slave circuits consider themselves addressed, which generates a conflict on the bus.

Or, dans certaines applications, des circuits esclaves sont susceptibles d'être connectés au bus alors que le circuit maître n'en connaît pas l'adresse. Un exemple d'application concerne le cas de dispositifs électroniques dans lesquels deux circuits esclaves sont susceptibles d'être connectés sur un même bus série et doivent être accessibles par un circuit maître. C'est le cas, par exemple, d'un système dans lequel plusieurs batteries d'alimentation d'un dispositif électronique sont susceptibles d'être connectées sur un même bus pour authentification. However, in some applications, slave circuits may be connected to the bus while the master circuit does not know the address. An example of application concerns the case of electronic devices in which two slave circuits may be connected on the same serial bus and must be accessible by a master circuit. This is the case, for example, of a system in which several power supply batteries of an electronic device may be connected to the same bus for authentication.

B10602 - 10-RO-292 B10602 - 10-RO-292

9 L'invention sera décrite par la suite en faisant plus particulièrement référence à un bus I2C. On notera toutefois qu'elle s'applique plus généralement à toute communication entre un circuit maître et plusieurs circuits esclaves sur un bus série de type à drain ouvert (ou collecteur ouvert), dans lequel la période de transmission d'un bit est identique quel que soit l'état de ce bit. La figure 5 représente schématiquement et partiellement un bus série 44 (par exemple le conducteur SDA d'un bus I2C) et ses connexions à un circuit maître 1 et à deux circuits esclaves 3 et 3'. Chaque circuit 1, 3, 3' comporte un interrupteur 14, 34 ou 34' reliant à la masse une borne, respectivement 15, 35 ou 35', destinée à être connectée au bus 44. Par ailleurs, comme déjà mentionné, le conducteur 44 est, au repos, tiré au potentiel VDD, par exemple par un élément résistif R. En pratique, les interrupteurs 14, 34 et 34' sont le plus souvent réalisés sous la forme de transistors MOS à canal N, c'est pourquoi on fait référence à un bus série à drain ouvert (ou collecteur ouvert). L'interrupteur 14 du circuit maître 1 est commandé par son circuit d'émission 11 (non représenté en figure 5). Les interrupteurs 34 et 34' des circuits 3 et 3' sont respectivement commandés par les circuits d'émission 31 et 31' (SEND). Comme déjà illustré en relation avec la figure 1, les bornes 35 et 35' sont en outre reliées en entrée de détecteurs 32 et 32' (DET) permettant à chaque circuit esclave de décoder les signaux présents sur le bus. La représentation de la figure 5 est partielle et d'autres circuits, en particulier de traitement des données transmises et à transmettre, équipent les dispositifs maître et esclaves. The invention will be described later with particular reference to an I2C bus. It will be noted, however, that it applies more generally to any communication between a master circuit and several slave circuits on an open-drain (or open collector) type serial bus, in which the transmission period of a bit is the same. whatever the state of this bit. FIG. 5 schematically and partially shows a serial bus 44 (for example the SDA conductor of an I2C bus) and its connections to a master circuit 1 and to two slave circuits 3 and 3 '. Each circuit 1, 3, 3 'comprises a switch 14, 34 or 34' connecting a terminal, respectively 15, 35 or 35 ', to be connected to the bus 44. Moreover, as already mentioned, the driver 44 is, at rest, pulled to the potential VDD, for example by a resistive element R. In practice, the switches 14, 34 and 34 'are most often made in the form of N-channel MOS transistors, which is why reference to an open-drain serial bus (or open collector). The switch 14 of the master circuit 1 is controlled by its transmission circuit 11 (not shown in FIG. 5). The switches 34 and 34 'of the circuits 3 and 3' are respectively controlled by the transmission circuits 31 and 31 '(SEND). As already illustrated in connection with FIG. 1, the terminals 35 and 35 'are furthermore connected to the input of detectors 32 and 32' (DET) enabling each slave circuit to decode the signals present on the bus. The representation of FIG. 5 is partial and other circuits, in particular for processing the data transmitted and transmitted, equip the master and slave devices.

Pour être capable de communiquer avec les deux circuits esclaves, le circuit maître 1 a besoin de les identifier afin de leur adresser les trames qui les concernent respectivement. Dans le mode de réalisation de la figure 5, on suppose 35 que les deux circuits esclaves 3 et 3' partagent la même adresse B10602 - 10-RO-292 To be able to communicate with the two slave circuits, the master circuit 1 needs to identify them in order to address the frames that concern them respectively. In the embodiment of FIG. 5, it is assumed that both slave circuits 3 and 3 'share the same address B10602 - 10-RO-292

10 et ne sont donc, lorsqu'ils sont raccordés au bus, pas identifiables par le circuit maître. Par exemple, il s'agit de deux batteries différentes qui ont besoin d'être authentifiées par le circuit maître. Il peut également s'agir d'autres consommables de type cartouches d'encre connectées à un même bus. Plus généralement, ce mode de réalisation s'applique dès que deux circuits esclaves sont susceptibles d'être connectés sur le bus en étant adressés au moyen d'une même adresse par le circuit maître. 10 and are therefore, when connected to the bus, not identifiable by the master circuit. For example, there are two different batteries that need to be authenticated by the master circuit. It may also be other consumables like ink cartridges connected to the same bus. More generally, this embodiment applies as soon as two slave circuits are likely to be connected on the bus being addressed by means of the same address by the master circuit.

Dans un mode de réalisation simplifié où seul deux circuits esclaves sont connectés sur le bus, cela revient à pouvoir connecter, sur ce bus, deux circuits esclaves sans adresse. La figure 6 est un organigramme simplifié illustrant 15 un mode d'identification par un circuit maître de deux circuits esclaves partageant la même adresse. La figure 7 illustre un exemple de trame de communication correspondant à ce processus d'identification. Dans une première étape optionnelle (bloc 41, SEND 20 SA), le circuit maître M envoie, sur le bus, l'adresse correspondant aux deux circuits esclaves. Cette adresse (bloc 42, SA) présente esclaves S1 et S2, sur le bus est détectée par les circuits ce qui provoque leur réveil (blocs 43 et 43', 25 WUP) ou correspondre connectés un Le leur ou deux circuits esclaves. à circuit maître envoie ensuite une commande de activation. En pratique, cette adresse peut celle d'un port du bus sur lequel peuvent être demande d'identifiant (bloc 44, GET UID). Dans le mode de réalisation simplifié où seuls deux 30 esclaves sont connectés sur le bus, les étapes 41 et 42 peuvent être omises et l'envoi de la commande 44 provoque le réveil des deux circuits esclaves connectés sur le bus. Comme l'illustre la figure 7, du point de vue de la trame de communication, le circuit maître initie comme 35 précédemment une communication à l'aide d'un bit de démarrage S, B10602 - 10-RO-292 In a simplified embodiment where only two slave circuits are connected on the bus, this amounts to being able to connect, on this bus, two slave circuits without address. Figure 6 is a simplified flowchart illustrating a mode of identification by a master circuit of two slave circuits sharing the same address. Figure 7 illustrates an example of a communication frame corresponding to this identification process. In a first optional step (block 41, SEND 20 SA), the master circuit M sends, on the bus, the address corresponding to the two slave circuits. This address (block 42, SA) has slaves S1 and S2, on the bus is detected by the circuits which causes them to wake up (blocks 43 and 43 ', 25 WUP) or correspond connected to one or two slave circuits. The master circuit then sends an activation command. In practice, this address can be that of a bus port on which can be requested identifier (block 44, GET UID). In the simplified embodiment where only two slaves are connected on the bus, steps 41 and 42 can be omitted and sending command 44 causes the two slave circuits connected on the bus to wake up. As shown in FIG. 7, from the point of view of the communication frame, the master circuit initiates as previously a communication using a start bit S, B10602-10-RO-292

11 puis envoie l'adresse de l'esclave. Le protocole peut être ici modifié par rapport à un processus I2C classique dans la mesure où le bit R/W n'est, pour la phase d'identification, pas nécessaire. De préférence, le circuit maître attend un bit d'accusé réception A, même s'il n'est pas capable d'identifier quel est celui des circuits esclaves qui l'a émis. Cela le renseigne au moins sur le fait que ces circuits esclaves ont eu le temps d'être activés. Le circuit maître envoie ensuite la commande GET UID et détecte un accusé réception correspondant, provenant là encore de l'un ou l'autre ou des deux circuits esclaves. Chaque circuit S1, S2 envoie ensuite sur le bus un identifiant unique le concernant (bloc 45, UID1 et bloc 45', UID2). Cet identifiant est unique en ce sens qu'il doit permettre de distinguer le circuit esclave de tout autre circuit esclave susceptible d'être connecté sur le port accessible par l'adresse AD. Un tel identifiant est, par exemple, mémorisé en mémoire non volatile à la fabrication du circuit esclave. Dans l'exemple de la figure 7, on suppose que l'identifiant est sur huit octets (BO à B7). Du point de vue du bus I2C, l'envoi des deux identifiants se traduit par une combinaison de type ET (AND) de ces identifiants. En effet, si le bit courant d'un des identifiants est un état 1, c'est-à-dire le niveau haut VDD, l'interrupteur 34 ou 34' correspondant reste ouvert. Si le bit courant est un état 0, la commutation de l'interrupteur 34 ou 34' force l'état du bus à la masse. Par conséquent, le 0 l'emporte sur le 1. On notera que l'affectation d'une valeur 0 ou 1 du bit de l'identifiant par rapport au potentiel haut ou bas est une convention, la combinaison opérée sur le bus de façon automatique revenant donc, selon la convention adoptée, à un ET ou à un OU logique. Cette addition bit à bit des identifiants ne sert à rien au circuit maître. Il peut toutefois le cas échéant envoyer un bit d'accusé réception (bloc 47, ACK). Cela permet, le cas B10602 - 10-RO-292 11 then sends the address of the slave. The protocol can be modified here with respect to a conventional I2C process insofar as the R / W bit is not necessary for the identification phase. Preferably, the master circuit waits for an acknowledgment bit A, even if it is not able to identify which of the slave circuits that sent it. This tells us at least that these slave circuits have had time to be activated. The master circuit then sends the command GET UID and detects a corresponding acknowledgment, again coming from one or the other or both slave circuits. Each circuit S1, S2 then sends on the bus a unique identifier concerning it (block 45, UID1 and block 45 ', UID2). This identifier is unique in that it must make it possible to distinguish the slave circuit from any other slave circuit that can be connected to the port accessible by the address AD. Such an identifier is, for example, stored in non-volatile memory during manufacture of the slave circuit. In the example of Figure 7, it is assumed that the identifier is eight bytes (BO to B7). From the point of view of the I2C bus, the sending of the two identifiers results in a combination of AND type (AND) of these identifiers. Indeed, if the current bit of one of the identifiers is a state 1, that is to say the high level VDD, the corresponding switch 34 or 34 'remains open. If the current bit is a state 0, switching of the switch 34 or 34 'forces the state of the bus to ground. Therefore, the 0 overrides the 1. It will be noted that the assignment of a value of 0 or 1 of the bit of the identifier with respect to the high or low potential is a convention, the combination operated on the bus so automatic, therefore, according to the adopted convention, to an AND or to a logical OR. This bitwise addition of identifiers is useless to the master circuit. However, it may, if necessary, send an acknowledgment bit (block 47, ACK). This allows, the case B10602 - 10-RO-292

12 échéant de synchroniser la transmission. Par contre, chaque circuit esclave reçoit la combinaison UID1*UID2 et la mémorise. Puis, chaque circuit esclave S1 et S2 envoie (bloc 48 et 48') l'inverse NUID1, respectivement NUID2, de son identifiant. Il en résulte sur le bus une combinaison logique de type NON-OU (ou NON-ET selon le codage) des identifiants (bloc 49, NUID1*NUID2). De façon similaire à la transmission des identifiants 10 non inversés, le circuit maître peut envoyer un accusé réception (bloc 50, ACK). Les circuits esclaves 3 et 3' mémorisent la combinaison des identifiants inversés. Chaque circuit esclave, connaissant son propre 15 identifiant, la combinaison de cet identifiant avec les identifiants de l'autre circuit esclave et la combinaison des inverses respectifs de ces identifiants, décode (bloc 51, DECOD UID2 et bloc 51' DECOD UID1) l'identifiant de l'autre circuit esclave. Le circuit maître ne connaît toujours ni l'un ni 20 l'autre des identifiants. Toutefois, chaque circuit esclave connait l'identifiant de l'autre. Il est alors possible de mettre en oeuvre une règle de détermination (blocs 52 et 52', CHECK RULE) du circuit esclave auquel est attribué une adresse donnée, ou plus généralement un 25 ordre de communication entre les deux circuits esclaves. Dans l'exemple de la figure 6, le protocole de communication fixe une règle selon laquelle le circuit esclave possédant l'identifiant de valeur la plus petite (par exemple le circuit S1) transmet en premier son adresse (bloc 53, ADD1) au 30 circuit maître. Le circuit esclave S2 se place en attente (bloc 54, WAIT) pour transmettre son adresse (bloc 53', ADD2) au circuit maître. Il détecte par exemple l'accusé réception de la première adresse par le circuit maître. Par conséquent, le circuit maître reçoit succes-35 sivement l'adresse ADD1 qu'il mémorise (bloc 55, STORE ADD1) B10602 - 10-RO-292 12 to synchronize the transmission. On the other hand, each slave circuit receives the combination UID1 * UID2 and stores it. Then, each slave circuit S1 and S2 sends (block 48 and 48 ') the inverse NUID1, respectively NUID2, of its identifier. This results in the bus a logical combination of the NOR type (or NAND according to the coding) of the identifiers (block 49, NUID1 * NUID2). In a manner similar to the transmission of non-inverted identifiers, the master circuit may send an acknowledgment (block 50, ACK). The slave circuits 3 and 3 'memorize the combination of inverted identifiers. Each slave circuit, knowing its own identifier, the combination of this identifier with the identifiers of the other slave circuit and the combination of the respective inverse of these identifiers, decodes (block 51, DECOD UID2 and block 51 'DECOD UID1). identifier of the other slave circuit. The master circuit still knows neither of the identifiers. However, each slave circuit knows the identifier of the other. It is then possible to implement a determination rule (blocks 52 and 52 ', CHECK RULE) of the slave circuit to which a given address is assigned, or more generally a communication command between the two slave circuits. In the example of FIG. 6, the communication protocol sets a rule according to which the slave circuit having the smallest value identifier (for example the circuit S1) first transmits its address (block 53, ADD1) to the master circuit. The slave circuit S2 is placed on hold (block 54, WAIT) to transmit its address (block 53 ', ADD2) to the master circuit. It detects for example the acknowledgment of the first address by the master circuit. Consequently, the master circuit successively receives the address ADD1 that it memorizes (block 55, STORE ADD1) B10602 - 10-RO-292

13 puis l'adresse ADD2 qu'il mémorise (bloc 56, STORE ADD2). Une fois cette phase d'initialisation effectuée, le circuit maître est en mesure d'envoyer des messages, soit au circuit esclave S1, soit au circuit esclave S2. 13 and the ADD2 address that it stores (block 56, STORE ADD2). Once this initialization phase has been completed, the master circuit is able to send messages either to the slave circuit S1 or to the slave circuit S2.

On veillera à ce que les adresses ADD1 et ADD2 soient différentes l'une de l'autre. Par exemple, on prévoit une attribution dynamique basée sur une convention établie en tenant compte de l'ordre entre les identifiants UID. Les adresses peuvent également être envoyées par le circuit maître et prises en compte par les circuits esclaves selon la convention établie. Selon un autre exemple de réalisation, c'est tout l'identifiant UID1 et UID2 qui est transmis au circuit maître. Cette transmission peut s'effectuer successivement par chaque circuit esclave ou de façon alternée, un octet sur deux, à direction du circuit maître. Selon une variante de réalisation, les octets d'identifiant sont envoyés successivement et de façon alternée par chaque esclave. On peut ainsi prévoir que le bit d'accusé réception soit envoyé par les circuits esclaves et non par le circuit maître. Ce dernier peut toutefois vérifier le comportement individuel de chaque circuit esclave en surveillant qu'à l'issue de chaque transmission d'octet, un bit d'accusé réception soit bien présent sur le bus. Selon encore un autre exemple, l'adresse correspond simplement à un bit 0 ou 1 dans la mesure où il suffit au circuit maître d'être capable de distinguer, lors de l'envoi de ses trames, si celles-ci sont destinées à l'un deux circuits esclaves. Si d'autres circuits esclaves sont susceptibles d'être connectés au bus, ce bit supplémentaire vient compléter l'adresse SA ou en remplacer un bit. Le décodage par chacun des circuits esclaves de l'identifiant de l'autre (blocs 51 et 51' ) peut être effectué à la fin de la réception des combinaisons 46 et 49 ou, en variante, au fur et à mesure si chaque circuit esclave transmet B10602 - 10-RO-292 ADD1 and ADD2 addresses should be different from each other. For example, a dynamic allocation based on an established convention is provided taking into account the order between the UIDs. The addresses can also be sent by the master circuit and taken into account by the slave circuits according to the established convention. According to another exemplary embodiment, the entire identifier UID1 and UID2 is transmitted to the master circuit. This transmission can be performed successively by each slave circuit or alternately, one byte by two, direction of the master circuit. According to an alternative embodiment, the identifier bytes are sent successively and alternately by each slave. It can thus be provided that the acknowledgment bit is sent by the slave circuits and not by the master circuit. The latter can, however, verify the individual behavior of each slave circuit by monitoring that at the end of each byte transmission, an acknowledgment bit is present on the bus. According to yet another example, the address simply corresponds to a bit 0 or 1 insofar as it is sufficient for the master circuit to be able to distinguish, when sending its frames, whether they are intended for the a two slave circuits. If other slave circuits are likely to be connected to the bus, this additional bit completes the address SA or replace a bit. The decoding by each of the slave circuits of the identifier of the other (blocks 51 and 51 ') can be carried out at the end of the reception of the combinations 46 and 49 or, alternatively, as and when if each slave circuit transmits B10602 - 10-RO-292

14 successivement un octet de son identifiant et le même octet inversé. Dans ce cas, le décodage est plus rapide. Selon une autre variante, le décodage est arrêté dès qu'un bit diffère dans les identifiants transmis par les circuits esclaves. Cela suffit pour appliquer une règle fixant lequel des circuits envoie en premier une réponse au circuit maître. On peut aussi prévoir d'alterner la transmission des identifiants et de leurs inverses, bit à bit. Ainsi, on réduit 10 au minimum l'espace de stockage nécessaire. Selon encore une autre variante, aucune adresse n'est transmise au circuit maître et celui-ci se contente de communiquer avec les deux circuits esclaves dans un ordre déterminé. Les circuits esclaves s'étant identifiés 15 mutuellement, chacun est capable, en appliquant la règle partagée, de savoir si la communication lui est destinée ou pas. Un avantage des modes de réalisation qui ont été décrits est qu'ils permettent la communication simultanée et symétrique entre un maître et deux esclaves, alors même que ces 20 deux esclaves partagent une même adresse sur le bus à l'origine. Cela peut trouver un intérêt par exemple dans des applications de traitement en temps réel, de gestion d'alarme, etc. Un autre avantage est de permettre la communication, 25 entre un circuit maître et deux circuits esclaves, sans contrainte d'adresse au niveau des circuits esclaves. La figure 8 est un chronogramme illustrant un autre exemple de protocole de communication auquel peuvent s'appliquer les modes de réalisation décrits. 30 Il s'agit d'un protocole de communication sur bus unifilaire dans lequel le signal de synchronisation est émis en même temps que les données (et le cas échéant que le signal d'alimentation). Comme dans les modes de réalisations précédents, le 35 bus (signal SW) est au repos dans un état haut VH. 14 successively a byte of its identifier and the same inverted byte. In this case, the decoding is faster. According to another variant, the decoding is stopped as soon as a bit differs in the identifiers transmitted by the slave circuits. This is sufficient to apply a rule setting which circuitry first sends a response to the master circuit. It is also possible to alternate the transmission of identifiers and their inverses, bit by bit. Thus, the storage space needed is minimized. According to yet another variant, no address is transmitted to the master circuit and the latter simply communicates with the two slave circuits in a determined order. The slave circuits having mutually identified with each other, each one is capable, by applying the shared rule, of knowing whether the communication is intended for him or not. An advantage of the embodiments that have been described is that they allow simultaneous and symmetrical communication between a master and two slaves, even though these two slaves share the same address on the bus originally. This may be of interest for example in real-time processing applications, alarm management, etc. Another advantage is to allow communication between a master circuit and two slave circuits, without address constraint at the slave circuits. FIG. 8 is a timing diagram illustrating another example of a communication protocol to which the described embodiments can be applied. This is a single bus communication protocol in which the synchronization signal is transmitted together with the data (and, if applicable, the power signal). As in the previous embodiments, the bus (signal SW) is at rest in a high state VH.

B10602 - 10-RO-292 B10602 - 10-RO-292

15 Toutefois, à la différence des protocoles décrit ci-dessus, les interrupteurs de modulation du bus, contenus dans les circuits maître et esclaves, ne tirent pas le bus à la masse, mais à un niveau VL inférieur au niveau VH. Pour trans- mettre des données, le circuit concerné module le signal SW en amplitude entre les deux niveaux VH et VL. Dans l'exemple représenté, une transmission initiée par le circuit maître est initialisée par un bit de démarrage START dans lequel le signal SW est forcé (instant t5) au niveau VL. Cela initialise les circuits esclaves et les prépare à recevoir des données. Le circuit maître module le niveau du signal SW au rythme d'un signal d'horloge qui fixe le débit de la transmission. La transmission d'un bit au niveau 0 s'effectue, par exemple, avec une impulsion de niveau VL d'une durée inférieure à la demi- période du signal d'horloge (dans l'exemple représenté, un quart de la période T) alors qu'un niveau 1 est codé avec une impulsion de niveau VL de durée supérieure à la demi-période de ce signal (par exemple trois quarts de la période T). Les circuits esclaves détectent la variation d'amplitude et la durée correspondante des impulsions haute et basse pour déterminer la valeur des bits transmis. Une fin de transmission (généralement la fin d'une trame) est codée par le circuit émetteur sous la forme d'un état haut (libération du bus) pendant une durée supérieure à la période T. However, unlike the protocols described above, the bus modulation switches contained in the master and slave circuits do not pull the bus to ground, but at a level VL lower than the VH level. To transmit data, the circuit concerned modulates the signal SW in amplitude between the two levels VH and VL. In the example shown, a transmission initiated by the master circuit is initialized by a start bit START in which the signal SW is forced (time t5) at the level VL. This initializes the slave circuits and prepares them to receive data. The master circuit modulates the level of the signal SW at the rate of a clock signal which sets the transmission rate. The transmission of a bit at level 0 is effected, for example, with a VL level pulse having a duration less than the half-period of the clock signal (in the example represented, a quarter of the period T ) whereas a level 1 is coded with a pulse of level VL of duration greater than the half-period of this signal (for example three quarters of the period T). The slave circuits detect the amplitude variation and the corresponding duration of the high and low pulses to determine the value of the transmitted bits. A transmission end (usually the end of a frame) is encoded by the transmitter circuit in the form of a high state (bus release) for a duration greater than the period T.

Les modes de réalisation du procédé d'identification qui ont été décrits ci-dessus s'appliquent à un tel bus de communication dans la mesure où la transmission d'un 0 se retrouve également prioritaire sur le bus par rapport à la transmission d'un état 1. Une interprétation de l'état du bus permet aux circuits esclaves de déterminer la relation d'ordre qui lie leurs identifiants et qui fixe l'ordre des communications ultérieures. Divers modes de réalisation ont été décrits, diverses variantes et modifications apparaîtront à l'homme de l'art. En particulier, les modes de réalisation qui ont été décrits B10602 - 10-RO-292 The embodiments of the identification method which have been described above apply to such a communication bus to the extent that the transmission of a 0 also has priority over the bus with respect to the transmission of a message. state 1. An interpretation of the state of the bus allows the slave circuits to determine the order relation which binds their identifiers and which sets the order of the subsequent communications. Various embodiments have been described, various variations and modifications will be apparent to those skilled in the art. In particular, the embodiments which have been described B10602 - 10-RO-292

16 s'appliquent plus généralement à tout bus de communication série dans lequel le bus est, au repos, placé à un potentiel différent de la masse, que ce potentiel soit positif ou négatif, pourvu que chaque bit soit transmis sur une période identique quel que soit son état. De plus, la mise en oeuvre pratique des modes de réalisation qui ont été décrits est à la portée de l'homme du métier à partir des indications fonctionnelles données ci-dessus et en utilisant les circuits usuels équipant des circuits esclaves. Dans le cas où les circuits sont équipés de microcontrôleurs programmables, les modes de réalisation décrits peuvent être mis en oeuvre sur des systèmes existants qu'il suffit de reprogrammer. 16 apply more generally to any serial communication bus in which the bus is, at rest, placed at a potential different from the ground, that this potential is positive or negative, provided that each bit is transmitted over an identical period whatever his condition. In addition, the practical implementation of the embodiments that have been described is within the abilities of those skilled in the art from the functional indications given above and by using the usual circuits equipping slave circuits. In the case where the circuits are equipped with programmable microcontrollers, the embodiments described can be implemented on existing systems that simply reprogram.

Claims (10)

REVENDICATIONS1. Procédé de communication entre un circuit maître (1, M) et deux circuits esclaves (3, 3' ; S1, S2) sur un bus série (I2C ; 44) dans lequel : les deux circuits esclaves transmettent en même temps des identifiants (UID1, UID2) qui leurs sont associés ; les deux circuits esclaves transmettent en même temps l'inverse (NUID1, NUID2) de ces identifiants ; et chaque circuit esclave exploite les combinaisons présentes sur le bus pour déterminer un ordre de communication 10 entre les deux circuits. REVENDICATIONS1. A method of communication between a master circuit (1, M) and two slave circuits (3, 3 '; S1, S2) on a serial bus (I2C; 44) in which: the two slave circuits transmit identifiers at the same time (UID1 , UID2) associated with them; the two slave circuits transmit at the same time the inverse (NUID1, NUID2) of these identifiers; and each slave circuit exploits the combinations present on the bus to determine a communication order between the two circuits. 2. Procédé selon la revendication 1, dans lequel le circuit maître (1 ; M) déclenche les étapes précédentes par l'envoi d'une commande spécifique (GET UID) sur le bus. 2. Method according to claim 1, wherein the master circuit (1; M) triggers the preceding steps by sending a specific command (GET UID) on the bus. 3. Procédé selon la revendication 2, dans lequel 15 ladite commande (GET UID) est précédée par l'envoi, par le circuit maître (M) d'une adresse (Slave address) commune aux deux circuits esclaves (3, 3' ; S1, S2). 3. The method according to claim 2, wherein said command (GET UID) is preceded by the sending by the master circuit (M) of an address (Slave address) common to both slave circuits (3, 3 '; S1, S2). 4. Procédé selon l'une quelconque des revendications 1 à 3, dans lequel chaque circuit esclave (3, 3' ; S1, S2) 20 détermine une relation entre son propre identifiant (UID1, UID2) et celui de l'autre circuit esclave. 4. Method according to any one of claims 1 to 3, wherein each slave circuit (3, 3 '; S1, S2) 20 determines a relationship between its own identifier (UID1, UID2) and that of the other slave circuit . 5. Procédé selon la revendication 4, dans lequel la relation entre les identifiants (UID1, UID2) est une relation d'ordre. 25 5. The method of claim 4, wherein the relationship between the identifiers (UID1, UID2) is a relation of order. 25 6. Procédé selon l'une quelconque des revendications 1 à 5, dans lequel chaque circuit esclave (3, 3' ; S1, S2) transmet, au circuit maître (1 ; M), une adresse (ADD1, ADD2) le concernant, l'ordre de transmission étant fixé par la relation entre les identifiants respectifs (UID1, UID2) des circuits 30 esclaves. 6. Method according to any one of claims 1 to 5, wherein each slave circuit (3, 3 '; S1, S2) transmits, to the master circuit (1; M), an address (ADD1, ADD2) concerning it, the transmission order being fixed by the relation between the respective identifiers (UID1, UID2) of the slave circuits. 7. Procédé selon l'une quelconque des revendications 1 à 5, dans lequel chaque circuit esclave (3, 3' ; S1, S2) transmet, au circuit maître (1 ; M), son identifiant (UID1, UID2) en guise d'adresse.B10602 - 10-RO-292 18 7. Method according to any one of claims 1 to 5, wherein each slave circuit (3, 3 '; S1, S2) transmits, to the master circuit (1; M), its identifier (UID1, UID2) as a Address.B10602 - 10-RO-292 18 8. Procédé selon l'une quelconque des revendications précédentes, dans lequel le bus est un bus à drain ouvert (ou collecteur ouvert) dans lequel un bit est transmis sur une période de durée indépendante de l'état du bit. The method of any preceding claim, wherein the bus is an open drain bus (or open collector) in which a bit is transmitted over a period of time independent of the state of the bit. 9. Circuit électronique (1, 3, 3' ; M, S1, S2) de transmission sur bus série, comportant des moyens adaptés à la mise en oeuvre du procédé selon l'une quelconque des revendications précédentes. 9. An electronic circuit (1, 3, 3 ', M, S1, S2) for transmission over a serial bus, comprising means suitable for carrying out the method according to any one of the preceding claims. 10. Système de transmission maître-esclave entre un maître (1 ; M) et deux esclaves (3, 3' ; S1, S2), comportant des circuits selon la revendication 9. 10. Master-slave transmission system between a master (1; M) and two slaves (3, 3 '; S1, S2), comprising circuits according to claim 9.
FR1057752A 2010-09-27 2010-09-27 IDENTIFICATION, BY A MASTER CIRCUIT, OF TWO SLAVES CIRCUITS CONNECTED ON THE SAME BUS Expired - Fee Related FR2965373B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
FR1057752A FR2965373B1 (en) 2010-09-27 2010-09-27 IDENTIFICATION, BY A MASTER CIRCUIT, OF TWO SLAVES CIRCUITS CONNECTED ON THE SAME BUS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
FR1057752A FR2965373B1 (en) 2010-09-27 2010-09-27 IDENTIFICATION, BY A MASTER CIRCUIT, OF TWO SLAVES CIRCUITS CONNECTED ON THE SAME BUS

Publications (2)

Publication Number Publication Date
FR2965373A1 true FR2965373A1 (en) 2012-03-30
FR2965373B1 FR2965373B1 (en) 2012-10-12

Family

ID=43896619

Family Applications (1)

Application Number Title Priority Date Filing Date
FR1057752A Expired - Fee Related FR2965373B1 (en) 2010-09-27 2010-09-27 IDENTIFICATION, BY A MASTER CIRCUIT, OF TWO SLAVES CIRCUITS CONNECTED ON THE SAME BUS

Country Status (1)

Country Link
FR (1) FR2965373B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009479A (en) * 1995-02-17 1999-12-28 Dell Usa, L.P. System and method for assigning unique addresses to agents on a system management bus
US20070026716A1 (en) * 2005-07-29 2007-02-01 Jun Zhang Data transmission interface system and method for electronic component

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009479A (en) * 1995-02-17 1999-12-28 Dell Usa, L.P. System and method for assigning unique addresses to agents on a system management bus
US20070026716A1 (en) * 2005-07-29 2007-02-01 Jun Zhang Data transmission interface system and method for electronic component

Also Published As

Publication number Publication date
FR2965373B1 (en) 2012-10-12

Similar Documents

Publication Publication Date Title
FR2965374A1 (en) MASTER-SLAVE COMMUNICATION ON A UNIFILARY BUS BETWEEN A MASTER CIRCUIT AND AT LEAST TWO SLAVE CIRCUITS
US8892798B2 (en) Identification, by a master circuit, of two slave circuits connected to a same bus
EP2312452B1 (en) Communication protocol on a one-wire bus
EP2146287B1 (en) Interface between a two-wire bus and a single-wire bus
FR2963449A1 (en) CONVERSION OF A BIFILAR BUS IN A UNIFIL BUS
FR2885710A1 (en) I2c bus sharing method for e.g. mobile telephone, involves temporarily configuring, in configuration phase, output terminal of peripheral devices in mode of reading of voltage on terminal to select address among two addresses within devices
KR101068936B1 (en) Method and data structure for random access via a bus connection
TWI537742B (en) Microcontroller with can bus module and auto speed detect and method for initializing can module in microcontroller
FR3009633A1 (en) COMMUNICATION ON I2C BUS
EP0889429B1 (en) IC card reader using fast transmission protocol
FR2988949A1 (en) COMMUNICATION DEVICE AND METHOD FOR ERROR PROGRAMMING OR CORRECTION OF ONE OR MORE PARTICIPANTS OF THE COMMUNICATION DEVICE
WO2010076455A1 (en) Transmission over i2c bus
FR3036513A1 (en) COMMUNICATION METHOD ON A BIFILAR BUS
FR2967510A1 (en) CONVERSION OF COMMUNICATION PROTOCOL ON A UNIFIL BUS
FR2965373A1 (en) Method for communication between master and slave circuits on open drain bus in master-slave transmission system, involves simultaneously transmitting opposite identifiers, where each slave circuit exploits combinations to determine order
FR2988934A1 (en) COMMUNICATION DEVICE AND METHOD FOR ERROR PROGRAMMING OR CORRECTION OF ONE OR MORE PARTICIPANTS OF THE COMMUNICATION DEVICE
EP0666199B1 (en) Electronic System of an Automobile with an Interface Circuit between two different Busses
FR3097987A1 (en) METHOD OF ADDRESSING AN INTEGRATED CIRCUIT ON A BUS AND CORRESPONDING DEVICE
FR3093198A1 (en) Transmission of linked data on I2C bus
FR2910207A1 (en) COMMUNICATION DEVICE FOR COMMUNICATION ACCORDING TO A COMMUNICATION RULE BETWEEN MAIN AND SLAVE
EP1760952A1 (en) Method for controlling the transmission speed on a LIN bus
FR2823396A1 (en) METHOD FOR TRANSMITTING AND RECEIVING DATA AND EQUIPMENT FOR TRANSMITTING AND RECEIVING DATA
FR3071938A1 (en) DETECTION OF A TEMPORAL CONDITION ON A BIFILAR BUS
FR3055504A1 (en) METHOD FOR CONTROLLING THE LOAD OF A DATA CONCENTRATION GATEWAY FOR A WIRELESS COMMUNICATION NETWORK
FR3066667B1 (en) "METHOD AND SYSTEM FOR TRANSMISSION SERIES OF DATA"

Legal Events

Date Code Title Description
PLFP Fee payment

Year of fee payment: 7

PLFP Fee payment

Year of fee payment: 8

PLFP Fee payment

Year of fee payment: 9

PLFP Fee payment

Year of fee payment: 10

ST Notification of lapse

Effective date: 20210505