DE102006047142A1 - Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal - Google Patents
Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal Download PDFInfo
- Publication number
- DE102006047142A1 DE102006047142A1 DE200610047142 DE102006047142A DE102006047142A1 DE 102006047142 A1 DE102006047142 A1 DE 102006047142A1 DE 200610047142 DE200610047142 DE 200610047142 DE 102006047142 A DE102006047142 A DE 102006047142A DE 102006047142 A1 DE102006047142 A1 DE 102006047142A1
- Authority
- DE
- Germany
- Prior art keywords
- clock
- interface
- slave
- signal
- microprocessor
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4291—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
- Bus Control (AREA)
Abstract
Description
Stand der TechnikState of the art
Die vorliegende Erfindung betrifft eine Schaltung und ein Verfahren zur Signalsteuerung an einer SPI-Schnittstelle nach Anspruch 1 bzw 4, sowie eine Verwendung der Schaltung nach Anspruch 5.The The present invention relates to a circuit and a method for signal control at an SPI interface according to claim 1 or FIG 4, as well as a use of the circuit according to claim 5.
Die SPI(Serial Peripheral Interface bus)-Schnittstelle ist seit Jahren Standard in Mikroprozessoren. Beispiele dafür sind der TC1796 von Infineon (Synchronous Serial Interface; SSC) und der Copperhead von Freescale, früher Motorola (Deserial Serial Peripheral Interface; DSPI). Genauso ist dies Standard für die Ansteuerung, Konfiguration und Diagnose von Peripheriebausteinen, wofür Beispiele der Spannungsregler CY320 von Bosch, der Endstufenbaustein CJ945 von Bosch oder die H-Brücke TLE7209 von Infineon, beispielsweise zur Ansteuerung von Gleichstrommotoren wie der Drosselklappenverstelleinheit DVE von Bosch sind. Der Mikroprozessor kann dabei in dem Bussystem als Master und als Slave betrieben werden, wobei üblicherweise in einem Motorsteuergerät nur ein Mikroprozessor vorhanden und dieser als Busmaster betrieben wird, die anderen Bausteine dagegen als Slaves.The SPI (Serial Peripheral Interface bus) interface has been around for years Standard in microprocessors. Examples include the TC1796 from Infineon (Synchronous Serial Interface, SSC) and Freescale's Copperhead, earlier Motorola (Deserial Serial Peripheral Interface; DSPI). That's the same Standard for the control, configuration and diagnostics of peripheral modules, for which examples of Voltage regulator CY320 from Bosch, the power stage module CJ945 from Bosch or the H-bridge TLE7209 from Infineon, for example for the control of DC motors like the throttle valve adjustment unit DVE from Bosch. The microprocessor can be operated in the bus system as a master and as a slave, being usually in an engine control unit Only one microprocessor available and this operated as a bus master while the other devices are slaves.
Die
Motorsteuergeräte haben allerdings mittlerweile bis zu 20 SPI-Teilnehmer. Daher wird zunehmend versucht, die Ausgangssignale eines Master-Mikroprozessors zu teilen oder zu multiplexen. Eine Variante der Bustopologie sieht zB eine Daisy Chain vor, wie diese gerne bei Infineon Bausteinen verwendet wird. Dabei wird der Datenausgang eines Slave mit dem Dateneingang des nächsten Slave verbunden, wobei der letzte Datenausgang und der erste Dateneingang mit dem Mikroprozessor wie vorstehend geschildert verknüpft sind. Clock und ChipSelect werden hier gemeinsam an die Slave-Bausteine geführt. Eine andere Variante sieht ein Adressraummultiplexing (ADRM) vor, bei dem sich mehrere Bausteine ein ChipSelect teilen. Dies wird durch die Aufteilung der zu sendenden Botschaften auf die Bausteine erreicht. Typischerweise werden dabei zur Adressierung von zB 4 SPI-Slaves an einem ChipSelect die ersten 2 Bits einer Botschaft verwendet. Es können aber auch mehr oder weniger als 2 Bits für eine Bausteinadressierung verwendet werden, wenn das Datenformat und der Datenrahmen des Übertragungsprotokolls sowie die Verarbeitung im Slave entsprechend angepasst wird, typischerweise auf ein Vielfaches von 8 Bit. Hierbei werden Clock, Dateneingang und Datenausgang gemeinsam genutzt. Das ChipSelect wird von mehreren Bausteinen – derzeit bis zu 4 – verwendet, aber nicht von allen der bis zu 20 Bausteinen an einem Bus.Have engine control units but now up to 20 SPI participants. Therefore, it becomes increasingly tries to share the output signals of a master microprocessor or to multiplex. A variant of the bus topology looks like a Daisy Chain as she likes to use with Infineon building blocks becomes. In this case, the data output of a slave with the data input the next Slave connected, with the last data output and the first data input associated with the microprocessor as described above. Clock and ChipSelect are routed together to the slave blocks here. A another variant provides for address space multiplexing (ADRM) which several components share a ChipSelect. This is going through achieved the distribution of the messages to be sent to the blocks. Typically, this will be used to address eg 4 SPI slaves used on a ChipSelect the first 2 bits of a message. It can but also more or less than 2 bits for a block addressing used when the data format and the data frame of the transmission protocol and the processing in the slave is adjusted accordingly, typically to a multiple of 8 bits. Here clock, data input and data output shared. The ChipSelect is powered by several Building blocks - currently up to 4 - used, but not all of the up to 20 blocks on a bus.
Die
deutsche Offenlegungsschrift
Die
deutsche Offenlegungsschrift
Die
deutsche Offenlegungsschrift
Offenbarung der ErfindungDisclosure of the invention
Es ist Aufgabe der vorliegenden Erfindung, eine Steuerschaltung zur effizienten, einfachen und zuverlässigen, sowie kostengünstigen Übertragung von Daten an einer SPI-Schnittstelle bereitzustellen.It Object of the present invention, a control circuit for efficient, simple and reliable, as well as cost-effective transmission of Data at an SPI interface provide.
Diese Aufgabe wird durch eine Schaltung nach Anspruch 1 gelöst, welche die Anschlüsse der Schnittstelle für ChipSelect über erste Schaltelemente mit einem jeweiligen Anschluss der Schnittstelle für Clock und SlaveInput zum zeitgleichen Senden von Signalen verbindet, und bei der die ersten Schaltelemente zum Aktivieren einer jeweiligen Clock-Leitung und SlaveInput-Leitung in Ansprechen auf ein ChipSelect-Signal ausgebildet sind, und welche zum zeitgleichen Empfangen von Signalen die Anschlüsse der Schnittstelle für ChipSelect über zweite Schaltelemente mit einem jeweiligen Anschluss der Schnittstelle für Clock und SlaveOutput verbindet, und bei der die zweiten Schaltelemente zum Aktivieren einer jeweiligen Clock-Leitung und SlaveOutput-Leitung in Ansprechen auf ein ChipSelect-Signal ausgebildet sind.This object is achieved by a circuit according to claim 1, which connects the connections of the interface for ChipSelect via first switching elements with a respective terminal of the interface for clock and slave input for the simultaneous transmission of signals, and in which the first switching elements for activating a respective clock Line and slave input line are formed in response to a ChipSelect signal, and which for Simultaneously receiving signals connects the terminals of the interface for ChipSelect via second switching elements to a respective terminal of the interface for clock and SlaveOutput, and wherein the second switching elements for activating a respective clock line and slave output line formed in response to a ChipSelect signal are.
Die vorliegende Erfindung geht dabei davon aus, dass mit zunehmender Anzahl der Teilnehmer an einem Bus die Notwendigkeit steigt, die Übertragungsrate (vorzugsweise 1 ... 4 MHz, aber auch darüber oder darunter) zu erhöhen, um alle Daten über den Bus zu bringen. Andererseits limitiert die Anzahl der Teilnehmer die maximale Übertragungsrate, da die jeweiligen Pinkapazitäten der Slave-Bausteine die Treiberfähigkeit der Signale am Mikroprozessor erhöhen und auch von den Datenausgängen der Slave-Bausteine entsprechende Treiberfähigkeiten erfordern. Unter Treiberfähigkeit wird dabei das Vermögen eines Bausteins verstanden, eine bestimmte elektrische Kapazität in einer bestimmten Zeit umzuladen. Insbesondere bei den Slave-Bausteinen tritt dabei ein Mitkoppeleffekt auf, nach dem größere Treiberfähigkeiten auch zu höheren Pinkapazitäten führen, was wieder eine höhere Treiberfähigkeit zur Folge hat. Durch Mehrkosten nachteilig sind daher größere Treiberfähigkeiten vor allem an den Slave-Bausteinen, die zu einer Begrenzung der Übertragungsrate bei Maximalausbau des Systems führen. Bei größeren Teilnehmerzahlen wird zudem das Timing unsymetrisch und ist daher schlecht bzw nicht mehr berechenbar. Des Weiteren treten EMV(ElektroMagnetische Veträglichkeit)-Probleme auf Grund der großen Umladeströme auf. Gegebenenfalls wird ein zweites, drittes etc Businterface auf dem Mikroprozessor notwendig. So weist zB der vorstehend genannte Copperhead vier SPI-Schnittstellen und der TC1796 zwei SPI-Schnittstellen auf. Die beiden Mikroprozessoren sind aber in etwa gleichwertig, da ein oder zwei SPI-Schnittstellen des Copperhead für andere Funktionen verwendet werden.The present invention assumes that with increasing Number of participants on a bus the need increases, the transmission rate (preferably 1 ... 4 MHz, but also above or below) to increase all data about the Bring bus. On the other hand, the number of participants limits the maximum transfer rate, because the respective Pinkapazitäten the slave blocks the driver capability increase the signals on the microprocessor and also from the data outputs of the Slave devices require appropriate driver capabilities. Under drivability will be the assets a building block understood, a specific electrical capacity in one reload certain time. Especially with the slave blocks occurs while a coupling effect, after the larger driver capabilities also to higher ones Pinkapazitäten to lead, what a higher one again drivability entails. Due to additional costs disadvantageous are therefore greater driver capabilities especially at the slave blocks, which limits the transmission rate at maximum system capacity. For larger numbers of participants In addition, the timing is unbalanced and is therefore bad or not more predictable. Furthermore, EMC (ElectroMagnetic Impairment) problems occur because of the big ones discharge currents on. Optionally, a second, third etc bus interface on necessary for the microprocessor. For example, the above-mentioned Copperhead has four SPI interfaces and the TC1796 has two SPI interfaces. The two microprocessors are however approximately equivalent, there one or Two SPI interfaces of the Copperhead used for other functions become.
Zur Meidung dieser Nachteile besteht ein wesentlicher Punkt der erfindungsgemäßen Schaltung darin, dass die Slave-Bausteine die Signale Clock und SlaveInput zeitgleich in Abhängigkeit des ChipSelect-Signals erhalten. Auch der Datenausgang und damit der Rückkanal zum Mikroprozessor wird in Abhängigkeit des ChipSelect-Signals ausgewählt. Die Slave-Bausteine werden dabei einzeln angesprochen oder zu Gruppen zusammengefasst. Durch das Multiplexen der Signale abhängig von ChipSelect kann mit nur einer SPI-Schnittstelle am Mikroprozessor ausgekommen werden. Durch die sozusagen parallele Signalisierung benötigen weder die Slave-Bausteine noch der Mikroprozessor größere Treiberfähigkeiten, noch wird die Übertragungsrate durch die Pinkapazitäten oder die Anzahl der Teilnehmer begrenzt. Zudem ist das Timing einfach berechenbar und es entstehen keine EMV-Probleme, da lediglich kleine Treiberfähigkeiten und geringe Umladeströme verlangt werden. Es ist auch kein zusätzliches Businterface auf dem Mikroprozessor erforderlich. Der Aufwand besteht allein in wenigen Registern zur Kontrolle der Pins, was zwar nicht vernachlässigbar, aber durchaus weniger ist als eine komplette SPI-Schnittstelle. Die zusätzlichen Pins für die doppelten Clock-, SlaveInput- und SlaveOutput-Pins ergeben eine Gesamtanzahl von Pins, die unter der eines zusätzlichen Interfaces liegt.to Avoiding these disadvantages is an essential point of the circuit according to the invention in that the slave blocks the signals Clock and SlaveInput at the same time in dependence of the ChipSelect signal. Also the data output and thus the return channel to the microprocessor is dependent of the ChipSelect signal. The slave blocks are addressed individually or grouped together. By depending on the multiplexing of the signals from ChipSelect can work with only one SPI interface on the microprocessor to be got along. Through the so-called parallel signaling need neither the slave devices nor the microprocessor major driver capabilities, still the transfer rate through the pink capacities or the number of participants limited. In addition, the timing is easy predictable and there are no EMC problems, because only small driving capabilities and low transhipment currents be requested. There is also no additional bus interface on the Microprocessor required. The effort is only in a few Registers for controlling the pins, which although not negligible, but quite less than a complete SPI interface. The additional Pins for the Double Clock, SlaveInput, and SlaveOutput pins make one Total number of pins below that of an additional interface.
Alternativ zur Erhöhung des Datendurchsatzes können grundsätzlich auch die Pinkapazitäten von ASICs reduziert werden. Aufgrund von ESD(ElectroStatic Discharge)-Forderungen, die sich im Automotivbereich als Standard erweisen und Technologiegründen ist allerdings eine Reduzierung der Pinkapazitäten schlecht möglich. Im Gegenteil werden diese durch höhere Anforderungen aus ESD und funktionalen Gründen, beispielsweise FMEAs (Failure Mode and Effects Analysis) immer höher.alternative to increase the data throughput can in principle also the pink capacities of ASICs are reduced. Due to ESD (ElectroStatic Discharge) requirements, the is standard in the automotive industry and is technology-based However, a reduction in the Pinkapazitäten poorly possible. in the The opposite is the case with higher ones Requirements for ESD and functional reasons, such as FMEAs (Failure Fashion and Effects Analysis) are getting higher.
Bevorzugte Weiterbildungen der erfindungsgemäßen Steuerschaltung sind in den Unteransprüchen 2 und 3 angegeben.preferred Further developments of the control circuit according to the invention are in the dependent claims 2 and 3 indicated.
Diese betreffen die hardwaremäßige Umsetzung der Schaltung, die bevorzugt mit integrierten und/oder diskreten Schaltelementen ausgeführt ist. Dadurch kann, je nach Anforderung, auf einen erfindungsgemäß ausgestalteten Mikroprozessor zurückgegriffen oder zB ein Standardprozessor mit der erfindungsgemäßen Schaltung aus- oder nachgerüstet werden.These affect the hardware implementation the circuit, preferably with integrated and / or discrete Running switching elements is. As a result, depending on the requirement, an inventively designed Microprocessor used or eg a standard processor with the circuit according to the invention be removed or retrofitted.
Die eingangs genannte Aufgabe wird auch durch ein Verfahren nach Anspruch 4 gelöst, bei dem in Abhängigkeit eines ChipSelect-Signals eine jeweilige Clock-Leitung und SlaveInput-Leitung zum zeitgleichen Senden von Signalen, und zum zeitgleichen Empfangen von Signalen eine jeweilige Clock-Leitung und SlaveOutput-Leitung in Abhängigkeit eines ChipSelect-Signals aktiviert werden.The The object mentioned at the outset is also achieved by a method according to claim 4 solved, depending on a ChipSelect signal, a respective clock line and slave input line for simultaneous transmission of signals, and for simultaneous reception of signals a respective clock line and slave output line depending of a ChipSelect signal.
Neben den schon vorstehend geschilderten Vorteilen besteht ein wesentlicher Punkt des erfindungsgemäßen Verfahrens darin, dass dieses besonders einfach strukturiert und damit kostengünstig zu realisieren ist.Next the advantages already described above is an essential Point of the method according to the invention in that this is particularly easy to structure and therefore inexpensive too realize is.
Eine bevorzugte Verwendung der erfindungsgemäßen Schaltung betrifft die Steuerung einer Gruppe von abhängigen Bausteinen über eine gemeinsame ChipSelect-, Clock-, SlaveInput- und SlaveOutput-Leitung. Diese Zusammenfassung der Bausteine zu Gruppen wie in der eingangs diskutierten Variante für das Adressraummultiplexing eröffnet die Möglichkeit, die Anzahl der gesteuerten Peripherieelemente zu erhöhen, ohne dass eine erhebliche Erhöhung der Pinanzahl oder eine weitere SPI-Schnittstelle vorgesehen werden muss.A preferred use of the circuit according to the invention relates to the control of a group of dependent components via a common ChipSelect-, Clock-, SlaveInput- and SlaveOutput line. This summary of the building blocks into groups as in the variant discussed above for the address space multiplexing opens the possibility of the number of controlled Periphe increase without the need for a significant increase in the number of pins or another SPI interface.
Um die Anzahl der zusätzlichen Pins im Rahmen zu halten, umfasst die genannte Gruppe in der Praxis bevorzugt 4 bis 8 elektronische Slave-Bausteine.Around the number of extra Keeping pins in the frame includes the named group in practice preferably 4 to 8 electronic slave modules.
Kurze Beschreibung der ZeichnungenBrief description of the drawings
Die erfindungsgemäße Schaltung und das Verfahren werden im folgenden anhand eines Ausführungsbeispiels näher erläutert. Gleiche oder gleichwirkende Teile sind mit gleichen Bezugszeichen versehen. Es zeigen:The inventive circuit and the method will be described below with reference to an embodiment explained in more detail. Same or equivalent parts are provided with the same reference numerals. Show it:
Ausführungsformen der ErfindungEmbodiments of the invention
Die
Die
Die
Die
Wie aus den vorstehenden Beispielen erkennbar ist, macht die erfindungsgemäße Schaltung und das entsprechende Verfahren eine effiziente Datenübertragung in einem Master-Slave-System auf einfache und kostengünstige Art und Weise möglich. Gleichzeitig werden mit der Erhöhung der Treiberfähigkeit üblicherweise einhergehende Nachteile vermieden und Timingprobleme gelöst.As can be seen from the above examples makes the inventive circuit and the corresponding method an efficient data transmission in a master-slave system in a simple and cost-effective way and way possible. simultaneously be with the increase the driver capability usually associated disadvantages avoided and timing problems solved.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| DE200610047142 DE102006047142A1 (en) | 2006-10-05 | 2006-10-05 | Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| DE200610047142 DE102006047142A1 (en) | 2006-10-05 | 2006-10-05 | Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| DE102006047142A1 true DE102006047142A1 (en) | 2008-04-10 |
Family
ID=39154560
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| DE200610047142 Withdrawn DE102006047142A1 (en) | 2006-10-05 | 2006-10-05 | Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal |
Country Status (1)
| Country | Link |
|---|---|
| DE (1) | DE102006047142A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107153622A (en) * | 2017-05-24 | 2017-09-12 | 中国电子科技集团公司第四十研究所 | A kind of drive control method based on spi bus |
| CN113534358A (en) * | 2020-04-15 | 2021-10-22 | 青岛海信宽带多媒体技术有限公司 | Optical module |
| CN114579491A (en) * | 2022-01-28 | 2022-06-03 | 新华三技术有限公司合肥分公司 | Integrated circuit bus multiplexing device and network equipment |
-
2006
- 2006-10-05 DE DE200610047142 patent/DE102006047142A1/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107153622A (en) * | 2017-05-24 | 2017-09-12 | 中国电子科技集团公司第四十研究所 | A kind of drive control method based on spi bus |
| CN107153622B (en) * | 2017-05-24 | 2019-08-23 | 中国电子科技集团公司第四十一研究所 | A kind of drive control method based on spi bus |
| CN113534358A (en) * | 2020-04-15 | 2021-10-22 | 青岛海信宽带多媒体技术有限公司 | Optical module |
| CN114579491A (en) * | 2022-01-28 | 2022-06-03 | 新华三技术有限公司合肥分公司 | Integrated circuit bus multiplexing device and network equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| DE102014118156B4 (en) | Bus driver circuit with improved transition speed | |
| EP2087646B1 (en) | Device and method for manipulating communication messages | |
| EP0210123A1 (en) | Circuit arrangement for a mains-independent power supply of a data distributor connected to a bus network | |
| EP0596954B1 (en) | High-speed bus system and process for operating same | |
| EP3665871B1 (en) | Transceiver for a bus system, and method for reducing an oscillation inclination upon transitioning between different bit states | |
| EP3970324B1 (en) | Transmitting/receiving device and communication control device for a subscriber station of a serial bus system, and method for communication in a serial bus system | |
| EP3744048A1 (en) | Participant station for a serial bus system, and method for transmitting a message in a serial bus system | |
| EP2087647B1 (en) | Device and method for manipulating communication messages | |
| EP3575899B1 (en) | Automation system, operating method for automation system and computer program product | |
| EP2092398B1 (en) | Two-wire field device for process automation technology for connecting at least one sensor element | |
| DE3687047T2 (en) | TRANSMISSION CIRCUIT. | |
| DE102011004358B3 (en) | Method for transmitting data over a synchronous serial data bus | |
| WO2019122211A1 (en) | Participant station for a serial bus system, and method for transmitting a message in a serial bus system | |
| DE102006047142A1 (en) | Signal controlling circuit for serial peripheral interface bus-interface of microprocessor, has switching units for respectively activating clock and slave input lines and clock and slave output lines in response to select signal | |
| EP3632049B1 (en) | Status signal output | |
| EP3632054B1 (en) | Determination of nodes of a local data bus | |
| EP1095338A2 (en) | Can module | |
| WO2019122212A1 (en) | Subscriber station for a serial bus system and method for transmitting a message in a serial bus system | |
| DE102018202164A1 (en) | Subscriber station for a serial bus system and method for sending a message in a serial bus system | |
| EP2097999A1 (en) | Method for handling data | |
| DE10323980A1 (en) | motor control | |
| DE102007004101B4 (en) | Current mode differential signal transmission circuit sharing a clock output unit | |
| DE19926849A1 (en) | Data transmission between modules of an electrical device | |
| EP1248987A2 (en) | Multi master bus system | |
| DE10201319B4 (en) | Method for data transmission and serial bus system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R012 | Request for examination validly filed |
Effective date: 20130628 |
|
| R119 | Application deemed withdrawn, or ip right lapsed, due to non-payment of renewal fee |