Processing system, related integrated circuit, apparatus and method

By designing time reference circuits and time basis allocation circuits in the processing system, providing high-precision time reference and time basis signals, the problem of operation synchronization within the processing system is solved and the real-time performance of the system is improved.

CN119087854APending Publication Date: 2024-12-06STMICROELECTRONICS APPL GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411130309.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-05-08
Filing Date
2020-05-07
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In complex automotive electronic systems, different operations within the processing system need to be performed simultaneously, and the prior art is difficult to provide high-precision time reference, resulting in real-time behavior delays and delay changes, affecting the overall performance of the system.

Method used

A processing system is designed, including a time reference circuit, which generates a multi-bit system time signal through a clock signal, and provides a time base signal through a time base allocation circuit. Resources can directly store and notify events to avoid delays in the software layer.

Benefits of technology

High-precision timestamp generation and synchronization are realized, reducing the latency of real-time operations and improving the overall performance and time correlation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087854A_ABST
    Figure CN119087854A_ABST
Patent Text Reader

Abstract

Processing systems, related integrated circuits, apparatuses, and methods are disclosed. The processing system includes: a digital processing unit programmable according to firmware stored in a non-volatile memory; and a resource connected to the digital processing unit via a communication system. The processing system further includes a time reference circuit including a first digital counter circuit that generates a system time signal including a plurality of bits indicative of a time beat count in response to the clock signal; and a time base allocation circuit generating a time base signal by selecting a subset of the bits of the system time signal, where the time base signal is provided to the resource. A resource detects a given event, stores a time base signal to a register in response to the event, and signals the event to a digital processing unit. The digital processing unit reads the time-based signal from the register via the communication system.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese invention patent application with application date of May 7, 2020, application number 202010379147.1, and invention name “Processing system, related integrated circuit, device and method”. Technical Field

[0002] Embodiments of the present disclosure relate to time management within a processing system, such as a microcontroller. Background Art

[0003] Figure 1 A typical electronic system, such as that of a vehicle, is shown, comprising a plurality of processing systems 10, such as embedded systems or integrated circuits, for example field programmable gate arrays (FPGAs), digital signal processors (DSPs) or microcontrollers (eg specific to the automotive market).

[0004] For example, in Figure 1 1 shows three processing systems 101, 102 and 103 connected by an appropriate communication system 20. For example, the communication system may include: a vehicle control bus, such as a controller area network (CAN) bus; and possible multimedia buses, such as a media oriented system transport (MOST) bus, which are connected to the vehicle control bus via a gateway. Typically, the processing system 10 is located in different locations in the vehicle and may include, for example, an engine control unit (ECU), a transmission control unit (TCU), an anti-lock braking system (ABS), a body control module (BCM) and / or a navigation and / or multimedia audio system.

[0005] Future generations of processing systems, especially microcontrollers dedicated to automotive applications, will show a significant increase in complexity, mainly due to the increase in the number of functionalities (e.g. new protocols, new features, etc.) and the strict constraints on system operating conditions (e.g. lower power consumption, increased computing power and speed, etc.).

[0006] Figure 2 An exemplary digital processing system 10 (eg, a microcontroller, which may be used as Figure 1 A block diagram of any processing system 10).

[0007] In the example considered, the processing system 10 comprises at least one processing unit 102, such as a microprocessor, typically a central processing unit (CPU), programmed by software instructions. Typically, the software executed by the processing unit 102 is stored in a program memory 104, such as a non-volatile memory, such as a flash memory or an EEPROM. Typically, the memory 104 may be integrated with the processing unit 102 in a single integrated circuit, or the memory 104 may be in the form of a separate integrated circuit and connected to the processing unit 102, for example via traces of a printed circuit board. Thus, typically the memory 104 contains firmware for the processing unit 102, wherein the term firmware includes both software for a microprocessor and programming data for a programmable logic circuit such as an FPGA.

[0008] In the example considered, the processing unit 102 may have associated one or more resources 106 selected from the following group:

[0009] For example, one or more communication interfaces IF for exchanging data via the communication system 20, such as a universal asynchronous receiver / transmitter (UART), a serial peripheral interface bus (SPI), an inter-integrated circuit (I 2 C), Controller Area Network (CAN) bus, and / or Ethernet interface, and / or debug interface; and / or

[0010] one or more analog-to-digital converters AD and / or digital-to-analog converters DA; and / or

[0011] one or more dedicated digital components DC, such as hardware timers and / or counters, or cryptographic co-processors; and / or

[0012] one or more analog components AC, such as comparators, sensors, for example temperature sensors, etc.; and / or

[0013] One or more mixed signal components MSC, such as PWM (Pulse Width Modulation) drivers.

[0014] Thus, the digital processing system 10 may support different functionalities. For example, the behavior of the processing unit 102 is determined by firmware stored in the memory 104, such as software instructions executed by the processing unit 102 of the microcontroller. Thus, by installing different firmware, the same hardware (microcontroller) may be used for different applications.

[0015] As previously mentioned, the processing system 10 can control different operations of the vehicle, wherein the processing system 10 can be located at different locations in the vehicle, and each processing system 10 can implement one or more functions / operations. Many of these functions / operations must be performed in real time. For example, engine control is subject to the laws of thermodynamics, which should be balanced with the real-time state of the vehicle. Typically, the real-time state of the vehicle is monitored by sensors, which can be directly connected to the processing system 10 that implements the engine control unit (ECU) or to other processing systems 10 of the vehicle. Similarly, in order to control / command the operation of the motor, the engine control unit (ECU) must control / command one or more actuators, such as to inject fuel, open a valve for gas exhaust, etc., which can be directly connected to the processing system 10 that implements the engine control unit (ECU) or to other processing systems 10 of the vehicle.

[0016] Therefore, in many applications, the execution of a first operation within a processing system 10 must be synchronized with the execution of a second operation within the same processing system 10 or within another processing system 10 . Summary of the invention

[0017] In view of the foregoing, it is an object of various embodiments of the present disclosure to provide a solution for generating a time reference within a processing system and for distributing the time reference to one or more circuits of the processing system.

[0018] According to one or more embodiments, one or more of the above objects are achieved by a processing system having the features set out in detail in the appended claims.In addition, embodiments relate to related integrated circuits, devices and methods.

[0019] The claims are an integral part of the disclosed technical teaching provided herein.

[0020] As previously mentioned, various embodiments of the present disclosure relate to a processing system. In various embodiments, a processing system such as an integrated circuit includes: a digital processing unit, programmable according to firmware stored in a non-volatile memory; and resources, connected to the digital processing unit via a communication system. For example, the processing system may be a microcontroller, and the digital processing unit may be a microprocessor of the microcontroller.

[0021] In various embodiments, the processing system further includes a time reference circuit, the time reference circuit including: a first digital counter circuit configured to generate a system time signal including a plurality of bits indicating a time tick count in response to a clock signal. For example, in various embodiments, the first digital counter circuit of the time reference circuit is configured to generate the system time signal by increasing the value of the system time signal by a given amount in response to the clock signal. In various embodiments, the given amount can be programmed by the processing unit.

[0022] In various embodiments, the processing system further comprises: a time base distribution circuit configured to generate a time base signal by selecting a subset of bits of the system time signal. For example, in various embodiments, the time base distribution circuit is configured to generate the time base signal by selecting a first subset of a given number of bits of the system time signal when the selection signal has a first value, and to generate the time base signal by selecting a second subset of the given number of bits of the system time signal when the selection signal has a second value, whereby a time resolution of the time base signal varies according to the selected signal.

[0023] In various embodiments, the time base signal is provided to the resource. In this case, the resource can be configured to detect a given event, store the time base signal to a register in response to the event, and signal the event to the digital processing unit. Thus, the digital processing unit can read the time base signal from the register via the communication system in response to the event that has been signaled by the resource.

[0024] For example, the resource may be an analog-to-digital converter and the event may correspond to the completion of an analog-to-digital conversion, and / or the resource may be a communication interface and the event may correspond to receiving data via the communication interface.

[0025] In various embodiments, the time reference circuit may also include other circuits.

[0026] For example, in various embodiments, the time reference circuit includes: an extended timer circuit, including a second digital counter circuit, which is configured to generate an extended system time signal in response to a clock signal or a trigger signal generated based on the clock signal, the extended system time signal including a number of bits greater than the number of bits of the system time signal, wherein the extended system time signal can be read by a digital processing unit.

[0027] In various embodiments, the time reference circuit includes: an operating time counter circuit, including a plurality of third digital counter circuits, the plurality of third digital counter circuits being configured to generate corresponding count values ​​in response to a clock signal or a trigger signal generated based on the clock signal, wherein each of the plurality of third digital counter circuits can be reset, started and stopped by a digital processing unit.

[0028] Finally, in various embodiments, the time reference circuit may include: a trigger generator circuit, including one or more fourth digital counter circuits, which are configured to generate at least one trigger signal in response to the clock signal or a trigger signal generated based on the clock signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Embodiments of the present disclosure will now be described with reference to the accompanying drawings, which are provided purely by way of non-limiting examples, and in which:

[0030] Figure 1 A typical electronic system is shown;

[0031] Figure 2 Shows Figure 1 Typical processing systems of electronic systems;

[0032] Figure 3 An embodiment of a processing system is shown that includes a timer reference circuit configured to generate a system time signal and a circuit configured to use the system time signal;

[0033] Figure 4 Shows Figure 3 An embodiment of a timer reference circuit of wherein the timer reference circuit generates a global reference time signal via a counter circuit and generates a plurality of additional reference time signals via a time base distribution circuit;

[0034] Figure 5 Shows Figure 4 An embodiment of a counter circuit;

[0035] Fig. 6A and Figure 6B An embodiment of how a processing unit of a processing system obtains a global reference time signal or an additional reference time signal is shown;

[0036] Figure 7 and Figure 8 An embodiment of one or more circuits is shown that uses an additional reference time signal in order to store a timestamp directly at the hardware level in response to a given event;

[0037] Fig. 9 Shows Figure 4 An embodiment of a time base distribution circuit;

[0038] Fig.10 Shows Figure 3 Another embodiment of the timer reference circuit of the present invention further comprises an expansion timer circuit, an operation time counter circuit and a trigger generator circuit;

[0039] Fig.11 An embodiment of a trigger generator circuit is shown, which generates a trigger generator circuit suitable for activating Fig.10 An extended timer circuit operates a time counter circuit and a trigger signal of a trigger generator circuit;

[0040] Fig.12 Shows Fig.10 An embodiment of an extended timer circuit;

[0041] Fig.13 Shows Fig.12Embodiments of the operation of the extended timer circuit;

[0042] Fig.14 , Fig.15 , Fig.16 and Fig.17 Shows Fig.10 An embodiment of a trigger generator circuit;

[0043] Fig.18 Shows Fig.10 An embodiment of an operation time counter circuit;

[0044] Fig.19 Shows Fig.18 An embodiment of the operation of the operation time counter circuit; and

[0045] Fig. 20 Shows the Figure 4 An embodiment of transmitting an additional reference time signal to one or more circuits of a processing system. DETAILED DESCRIPTION

[0046] In the following description, numerous specific details are given to provide a thorough understanding of the embodiments. The embodiments may be implemented without one or more of the specific details, or may be implemented using other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the embodiments.

[0047] Throughout this specification, reference to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the phrases "in one embodiment" or "in an embodiment" appearing in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0048] The headings provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.

[0049] In the following Figures 3 to 20 In, reference has been made Figure 1 and Figure 2 Described parts, elements or components are denoted by the same reference numerals used previously in these figures; in order not to unnecessarily burden this detailed description, the description of these previously described elements will not be repeated hereinafter.

[0050] As mentioned above Figure 1 and Figure 2 As mentioned above, in many applications, the execution of a first operation within a processing system 10 must be synchronized with the execution of a second operation within the same processing system 10 or within another processing system 10 .

[0051] For example, in many applications, data / message exchanges with one or more resources 106 of the processing system 10 (which may include information such as status data, sensor data, actuator commands, etc., for example) should be linked to some kind of time reference / time stamp. Therefore, for the time correlation of these functions / operations, a common time base is required. For example, a conventional method of this request includes implementing some time reference within each processing system 10 configured to perform synchronous operations, wherein the time reference circuit provides a global system time for each processing system 10. For example, this internal time reference circuit can be implemented with a timer circuit or a real-time clock.

[0052] For example, the processing system 10 may be connected to the analog-to-digital converter ADC (see also Figure 2 The block AD in the processing system 10 acquires sensor data from the sensor. Typically, for this purpose, the ADC is configured to generate an interrupt for the processing unit 102 when the A / D conversion is completed. In response to the interrupt, the processing unit 102, such as a microprocessor programmed via software instructions, can read the digital samples provided by the ADC and also read the global system time from the reference circuit to associate the sampling time / time stamp with the digital sample of the sensor data. Similar interrupts indicating a given event (which should then be associated with a given timestamp) can also be generated by other resources 106 of the processing system 10, such as communication interfaces, timer circuits, etc. that generate interrupts when messages (such as status messages or actuation commands) are received.

[0053] Thus, timestamping (i.e., obtaining a global system time and associating that time with a given event) may be performed by the processing unit 102, for example, by software instructions, for example by means of an operating system installed on the processing unit 102. However, such software-generated timestamps associated with a given event / interrupt signaled by one or more resources 106 may have only a rough accuracy with respect to the point in time when the event / interrupt is received or generated, for example, because they need to be first transmitted through several software layers before the software timestamp is added. Therefore, this delay may have a negative impact on the real-time behavior of the entire system, so the delay and the variation of the delay should be as small as possible.

[0054] Figure 3 An embodiment of a processing system 10a according to the present description is shown.

[0055] In the embodiment under consideration, the processing system 10a comprises: a time reference circuit 122 configured to generate a time reference signal GST, which is provided to a plurality of circuits 110 of the processing system 10a. In general, the circuit 110 may be any circuit of the processing system 10a that requires a reference time. For example, reference may be made to Figure 2 For example, circuit 110 may be Figure 2 The processing unit 102 is shown as one of the resources 106. Preferably, the time reference circuit 122 and the circuit 110 are integrated in the same integrated circuit.

[0056] Specifically, in the embodiment under consideration, the time reference circuit 122 is configured to generate a signal GST in response to a clock signal CLK provided by the oscillator circuit 120. Typically, the oscillator circuit 120 may be integrated in an integrated circuit of the processing system 10a, or may be at least partially connected to a pin of an integrated circuit of the processing system 10a. For example, in various embodiments, the oscillator circuit 120 may be implemented with an external reference oscillator and an internal phase-locked loop (PLL).

[0057] Therefore, generally, the time reference circuit 122 receives the clock signal CLK at the input terminal and generates a time reference signal GST. Specifically, in various embodiments, the time reference signal GST is not a simple binary trigger signal, but corresponds to a data signal having multiple bits, wherein the value of the time reference signal GST represents the system time. For example, the time reference signal GST may have 32 bits or 64 bits.

[0058] Specifically, in various embodiments, the circuit 122 is configured to increase the time reference signal GST in response to the clock signal CLK so that the time reference signal GST corresponds to the number of "ticks" that have occurred since a given starting date (usually referred to as an epoch). Typically, the epoch can be a fixed date, such as January 1, 1970 00:00:00 UT similar to Unix system time or January 1, 1601 00:00:00 UT similar to Windows-based system time, or variable, such as starting from the power-on of the processing system 10a.

[0059] For example, reference may be made to the webpage https: / / en.wikipedia.org / wiki / system_time for possible encoding schemes of the system time, which may also be applied to the time reference signal GST.

[0060] Thus, from a circuit point of view, each tick determined according to the clock signal CLK corresponds to a given period / time, e.g., 100 nanoseconds or 1 millisecond, and the (count) value of the signal GST can be used, for example, to trigger a given operation within the circuit 110. In addition, by synchronizing the value of the signal GST between the plurality of processing systems 10a (e.g., by using Figure 2 The interface IF and Figure 1The communication system 20 shown in the figure) and by using the same time resolution for the beats in each processing system 10a, the operations of these processing systems 10a can be synchronized.

[0061] As previously described, the signal GST is provided to the plurality of circuits 110 of the processing system 10a. Specifically, in various embodiments, the signal GST may be provided to the circuits 110 at a reduced resolution.

[0062] For example, Figure 4 An embodiment of such a time reference circuit 122 is shown.

[0063] Specifically, as described above, in the foregoing, the time reference circuit 122 is configured to increase the count value. Figure 4 Schematically shown in FIG. 1 is a counter circuit 124 configured to increase a signal GST in response to a clock signal CLK.

[0064] For example, Figure 5 A possible embodiment of the counter circuit 124 is shown.

[0065] In the embodiment under consideration, the counter circuit 124 includes: a digital counter circuit 1242 configured to increase the value of the signal GST by a given amount INC in response to the clock signal NSC_CLK, for example, at each rising edge or falling edge of the clock signal NSC_CLK, the digital counter circuit 1242 increases the value of the count value (signal GST) by the value INC. For example, in the embodiment under consideration, the digital counter circuit 1242 includes:

[0066] A register 1248 configured to store a count value (signal GST); and

[0067] The digital adder circuit 1246 is configured to add the count value (signal GST) provided by the register 1248 to the signal INC, wherein the result is stored again in the register 1248 in response to the clock signal NSC_CLK.

[0068] In various embodiments, the signal INC is programmable and may be stored in the register 1244 for this purpose. In various embodiments, the content of the register 1244 is programmable, for example, by the processing unit 102, for example, via software instructions. For example, in various embodiments, the value of the signal INC is determined according to the frequency of the clock signal NSC_CLK in order to implement the nanosecond counter 124. For example, for this purpose, the signal GST may have 64 bits, while for a typical clock signal (e.g., in the range between 10 MHz and 100 MHz), the signal INC may have only 16 bits.

[0069] In various embodiments, the content of register 1248 (i.e., signal GST) may be read by processing unit 102, e.g., via software instructions. In addition, the content of register 1248 may also be writable / programmable, e.g., by processing unit 102, e.g., via software instructions. For example, in this way, processing unit 102 may set an initial value of register 1248 / signal GST. In practice, after startup, signal GST essentially indicates the time elapsed since processing system 10a was turned on. Conversely, by overwriting the content of register 1248, signal GST may be synchronized relative to a start date / epoch and / or with other processing systems 10.

[0070] As previously mentioned, in various embodiments, registers may store 64 bits. However, typically processing unit 102 may only support 32-bit read and write accesses. In this case, processing unit 102 needs to perform two read or write accesses in order to read or write the contents of register 1248. However, in the meantime, the contents of register 1248 may have changed.

[0071] Therefore, in various embodiments, the counter circuit 124 may include: another register or latch 1250, configured to store at least part of the content of the register 1248 when a read or write access to the signal GST is performed. For example, once the processing unit 102 requests a read access to the upper or lower 32 bits of the signal GST (as schematically indicated by the signal RW), the register or latch 1250 may store the content of all bits of the signal GST or only the content of the corresponding lower or upper 32 bits of the signal GST that are not currently read. Next, when the processing unit 102 requests a read access to the remaining lower or upper 32 bits of the signal GST, the corresponding bits can be read from the register or latch 1250.

[0072] Typically, the clock signal NSC_CLK can directly correspond to Figure 4 . In contrast, in the embodiment under consideration, the counter circuit 124 supports a plurality of clock signals CLK1 ... CLKk. In this case, the counter circuit 124 may include: a multiplexer 1240 configured to select one of the clock signals CLK1 ... CLKk as the clock signal NSC_CLK according to the selection signal CLK_SEL. In various embodiments, the signal CLK_SEL may also be programmable (e.g., the value of the signal CLK_SEL is stored in a register), for example, by the processing unit 102, for example, via software instructions.

[0073] Figure 4It is also shown that the time reference circuit 122 may also include a time based distribution circuit 126. Specifically, the circuit 126 is configured to generate a plurality of time base signals TBI0 ... TBIn, wherein each of the time base signals TBI0 ... TBIn is provided to one or more corresponding circuits 110 of the processing system 10a.

[0074] In various embodiments, one or more of circuits 110 may be selectable, for example by appropriate programming of processing unit 102 or by configuration data of processing system 10a that is read during startup of processing system 10a.

[0075] For example, the time base signal TBI0 may be provided to the processing unit 102 at all times and / or one or more time base signals TBI1 . . . TBIn may be provided to various resources 106 of the processing system 10a.

[0076] Therefore, if Fig. 6A and Figure 6B As schematically shown in FIG. 1 , in various embodiments, the processing unit 102 may be connected to the time reference circuit 122 via two interfaces.

[0077] Specifically, Fig. 6A As shown, the processing unit 102 can be connected to the time reference circuit 122 via a system bus 108, for example, the system bus 108 is used to connect the resource 106 to the processing unit 102. For example, such a system bus can include one or more advanced microcontroller bus architecture (AMBA) buses, such as AMBA high-performance bus (AHB). Therefore, in various embodiments, the processing unit 102 can read the contents of the register 1248 / signal GST via conventional software instructions (e.g., via the operating system OS of the processing unit 102) by using the address associated with the register 1248 / signal GST.

[0078] In contrast, many modern microprocessors also include an internal time stamp counter (TSC), for example, x86 processors since the Pentium. Figure 6B As shown, in this case, one of the time base signals, for example TBI0, can correspond to the signal of the time stamp counter TSC.

[0079] Basically, although Fig. 6A The software instructions have to access the hardware resources of the processing system 10a routed through the bus system 108, but Figure 6B The access occurs in the (virtual) internal resources of the processing unit 102.

[0080] As described above, one or more time base signals, such as TBI1 ... TBIn, may be provided to various (e.g., programmable) resources 106 of the processing system 10a. Figure 7 It is schematically shown in FIG. 1 , wherein:

[0081] The time base signal TBI1 is provided to the analog-to-digital converter ADC of the processing system 10a; and / or

[0082] The time base signal TBI2 is provided to the first communication interface IF1 of the processing system 10a, such as an SPI interface; and / or

[0083] The time base signal TBI3 is provided to the second communication interface IF2 of the processing system 10a, such as a CAN bus interface.

[0084] Thus, in the embodiment considered, one or more resources 106 of the processing system 10a directly receive a time base signal (TBIO . . . TBIn) indicating the global system time GST.

[0085] Thus, these one or more resources 106 may directly store the value of the corresponding timebase signal in response to a given event, such as when a corresponding interrupt is generated for the processing unit 102 .

[0086] For example, this Figure 7 Schematically shown in FIG. 1 , each (or at least one) resource 106 receiving a time base signal may include a corresponding register for storing the value of the corresponding time base signal, for example:

[0087] The analog-to-digital converter ADC may include a register REG1 for storing the content of the time base signal TBI1;

[0088] The interface IF1 may comprise a register REG2 for storing the content of the time base signal TBI2; and

[0089] The interface IF2 may comprise a register REG3 for storing the content of the time base signal TBI3.

[0090] In various embodiments, the processing system 10a is therefore configured so that the processing unit 102 can read the contents of these registers (REG1, REG2, REG3). Thus, in this way, the timestamps are directly stored at the hardware level when the corresponding events are generated, thereby avoiding the need for the processing unit 102 to have to read the registers, for example via software instructions (see also Fig. 6A and Figure 6B ) separately obtain the corresponding timestamp.

[0091] For example, Figure 8 A possible embodiment of the electronic system of the vehicle 30 is shown. Figure 1As described, in this case, a plurality of processing systems 10a, 10b, 10c, and 10d are connected to a communication system 20 such as a CAN bus.

[0092] For example, in this architecture, Figure 7 The blocks of the processing system 10a may be integrated in an integrated circuit, wherein:

[0093] The analog-to-digital converter ADC is connected to the analog sensor AS; and / or

[0094] The communication interface IF1 is connected to the digital sensor DS, and / or

[0095] The communication interface IF2 is connected to the communication system 20 .

[0096] For example, in such a processing system 10a, when analog-to-digital conversion has been completed, the analog-to-digital converter ADC may store the value of the corresponding time base signal TBI1 to the register REG1. Optionally, the analog-to-digital converter ADC may generate (preferably simultaneously generate) an interrupt for the processing unit 102.

[0097] Similarly, when a response has been received from the digital sensor DS, the interface IF1 may store the value of the corresponding time base signal TBI2 to the register REG2. Optionally, the interface IF1 may generate (preferably simultaneously generate) an interrupt for the processing unit 102.

[0098] Finally, when a data packet has been received via the communication system 20 (e.g. from another processing system 10 connected to the communication system 20), the interface IF2 may store the value of the corresponding time base signal TBI3 to the register REG3. Optionally, the interface IF2 may generate (preferably simultaneously) an interrupt for the processing unit 102.

[0099] Thus, once the processing unit 102 determines a given event of one of the resources 106, for example via a corresponding interrupt or by periodically reading the content of a corresponding status register, the processing unit 102 can also read (for example, in addition to the digital samples provided by the converter ADC, the data received by the interface IF1 and / or the data received by the interface IF2) the content of the corresponding register storing the time base signal at the time of the event. Figure 7 As shown, in various embodiments, the resource 106, in particular the registers REG1, REG2, REG3, may be connected to the bus 108 for this purpose. Thus, in various embodiments, the processing unit 102 may read the contents of the registers REG1, REG2, REG3 via software instructions.

[0100] In general, various circuits 110 (processing unit 102 and / or resource 106) may require different resolutions of the time signal GST. Figure 4As shown, each time base signal TBI0...TBIn can be connected to a corresponding time base interface circuit 1260...126 n Associated, corresponding time base interface circuit 1260 …… 126 n Configured to generate corresponding time base signals TBI0...TBIn according to the signal GST.

[0101] For example, in various embodiments, each of the time base signals TBI0...TBIn is connected to a given resource 106 of the processing system 10a. Therefore, given the time resolution supported by a given resource 106, each resource 106 may only receive a given number of bits of the time reference signal GST. Therefore, the routing of bits may be performed at each time base interface circuit 1260...126 n The hardware level is fixed, for example:

[0102] The processing unit 102 can receive all 64 bits of the signal GST;

[0103] The converter ADC can receive a 24-bit signal GST;

[0104] The interface IF1 can receive a 16-bit signal GST; and

[0105] The interface IF2 can receive a 32-bit signal GST.

[0106] On the contrary, Fig. 9 An embodiment of a programmable time base interface circuit 126i is shown, which can be used as a time base interface circuit 1260...126 n at least one of .

[0107] Specifically, in the embodiment considered, the time base interface circuit 126i receives at an input a signal GST having a given number N1 (e.g. 64 bits) of bits and provides at an output a corresponding time base signal TBIi, wherein the time base signal TBIi has a number N2 of bits (e.g. 64, 32, 24 or 16 bits) supported by the corresponding resource 106 connected to the time base signal TBIi.

[0108] In the embodiment considered, the time base interface circuit 126i further comprises: a selection circuit 1262, such as a multiplexer, which is configured to select the N2 bit of the signal GST for the signal TBIi according to the selection signal CSEL. In various embodiments, the signal CSEL may be programmable (e.g., the value of the signal CSEL is stored in a register), for example by the processing unit 102, for example via software instructions.

[0109] For example, in various embodiments, the signal CSEL may have two bits, and the selection circuit 1262 may be configured to use the following mapping for the signal TBIi:

[0110]

[0111] In various embodiments, the time base interface circuit 126i may also support one or more additional reference time signals ETB0 and ETB1. Fig. 9 1 shows another multiplexer 1260, which selects one of the signals GST, ETB0 or ​​ETB1 as the current reference time signal of the time base interface circuit 126i according to the selection signal SSEL, that is, the selection circuit 1262 receives the current reference time signal selected by the multiplexer 1260 at the input. In various embodiments, the signal SSEL can be programmable (for example, the value of the signal SSEL is stored in a register), for example, by the processing unit 102, for example, via software instructions.

[0112] In general, in the case where the number of bits of another reference time signal is smaller than the number of bits ( N1 ) of the signal GST, the missing (eg, most significant) bit may be set to “0”.

[0113] For example, the resource 106 of the processing system 10 a that often uses an external timestamp bus may be a CAN FD (CAN with Flexible Data-rate) interface, a sigma-delta analog-to-digital converter, a complex ADC, or the like.

[0114] Typically, to the extent that another reference time signal can have a different beat time than signal GST, the selection implemented within the selection circuit 1262 (according to the selection signal CSEL) can also change based on whether the reference time signal GST or another reference time signal (ETB0, ETB1) has been selected.

[0115] In various embodiments, the time reference circuit 122 may also implement further functions.

[0116] For example, Fig.10 An embodiment is shown in which the time reference circuit 122 may include (in addition to the counter circuit 124 and the time base circuit 126) one or more of the following optional circuits:

[0117] Extended timer circuit 128; and / or

[0118] Operation time counter circuit 130; and / or

[0119] Trigger generator circuit 132.

[0120] Generally, these circuits 128 , 130 and 132 have in common that they do not directly receive the reference time signal GST, but rather they are driven via a trigger signal TRIG generated by the counter circuit 124 , for example.

[0121] Specifically, in various embodiments, the trigger signal TRIG corresponds to the clock signal CLK used by the counter circuit 124, for example Figure 5 The signal NSC_CLK is shown.

[0122] On the contrary, Fig.11 An embodiment of a trigger generator circuit 134 is shown, which may be included in the counter circuit 124 .

[0123] In particular, in the embodiment considered, the trigger generator circuit 134 implements a pre-scaler of the clock signal CLK / NSC_CLK used by the counter circuit 124. For example, in the embodiment considered, the trigger generator circuit 134 comprises for this purpose a digital counter 1342 which generates a signal COUNTER_EXP_INT when the counter reaches a given reference value.

[0124] For example, in various embodiments, the counter 1342 is a down-counter that generates a signal COUNTER_EXP_INT when the count value of the counter 1342 reaches 0. In this case, the counter 1342 can be configured to set the count value to the reload value COUNTER_RELOAD_VAL again. In various embodiments, the signal COUNTER_RELOAD_VAL can be programmable (e.g., the value of the signal COUNTER_RELOAD_VAL is stored in a register), for example, by the processing unit 102, for example, via software instructions.

[0125] In various embodiments, the trigger generator circuit 134 may be selectively enabled. For example, in the embodiment under consideration, the trigger generator circuit 134 may be enabled by enabling the counter 1342 via an enable signal COUNTER_EN. In various embodiments, the signal COUNTER_EN may be programmable (e.g., storing the value of the signal COUNTER_EN in a register), for example, by the processing unit 102, for example, via software instructions.

[0126] Thus, the trigger signal TRIG may correspond to the signal COUNTER_EXP_INT, which is substantially triggered each time the clock signal reaches a given number of COUNTER_RELOAD

[0127] _VAL is set during the loop.

[0128] In various embodiments, the trigger generator circuit 134 is also configured to synchronize the clock signal CLK / NSC_CLK used by the counter circuit 124 with the auxiliary signal AEVENT indicating a given event at circuit 1340, thereby generating a set signal AUX_EVENT_SYNCED when the clock signal CLK / NSC_CLK is set and the auxiliary signal AEVENT is set.

[0129] In the embodiment under consideration, the trigger generator circuit 134 may therefore include: a multiplexer configured to select the signal AUX_EVENT_SYNCED or the signal COUNTER_EXP_INT for the trigger signal TRIG according to the selection signal EVENT_SOURCE_SEL. In various embodiments, the signal EVENT_SOURCE_SEL may be programmable (e.g., storing the value of the signal EVENT_SOURCE_SEL in a register), for example by the processing unit 102, for example via software instructions.

[0130] Thus, in the embodiment considered, the circuit 124 implements a basic time unit (BTU), which essentially comprises a counter 1242, for example a 64-bit nanosecond counter (NSC). Preferably, the time tick granularity of the counter is programmable via the signal INC and should be set based on the clock signal NSC_CLK used so that a single tick period is equal to 1 nanosecond. For example, assuming a clock source frequency of 10 MHz, the incremental step INC should be (10^9 / 10^5)=100 or 0x64. Conversely, the trigger / event generator 134 is configured to generate periodic pulses based on a programmable (e.g., timeout) counter 1342, which operates with the clock signal NSC_CLK.

[0131] As previously described, the trigger signal TRIG may be used by the optional circuits 128 , 130 , and 132 .

[0132] For example, Fig.12 An embodiment of an extended timer circuit 128 is shown.

[0133] Specifically, in the considered embodiment, the extended timer circuit 128 is implemented by a counter circuit 128, which is configured to generate a time signal ENTP having 80 bits, wherein the bit sequence of the lower 64 bits follows the Network Time Protocol (NTP) format, which is described, for example, in https: / / en.wikipedia.org / wiki / Network_Time_Protocol#Times tamps.

[0134] Specifically, such an NTP format also basically uses a 32-bit first bit sequence 1280b, which indicates the number of seconds that have elapsed since the epoch of January 1, 1900. In contrast, a 32-bit second bit sequence 1280c represents a fraction of a second. Therefore, the 32-bit (second) counter 1280b will overflow in 2036. In order to overcome this potential overflow, the updated NTPv4 format uses 64 bits to represent seconds and 64 bits to represent fractions of seconds. However, this extended range is basically useless for a typical processing system 10a, and therefore in the embodiment considered, only an additional 16-bit overflow counter 1280a is added, thereby basically using a 48-bit second counter (IEEE 1588-2008 implementation).

[0135] In various embodiments, the resolution of the stored "fraction of a second" is 1 nanosecond. Therefore, in this case, the counter 1280c should perform a rollover when the corresponding count value reaches 0x3B9A_C9FF.

[0136] In various embodiments, the extension timer circuit 128 may be driven via the trigger signal TRIG or directly via the clock signal CLK / NSC_CLK used by the counter circuit 124 .

[0137] Therefore, in various embodiments, the increment step size ExNTP_INC_STEP for the extended timer circuit 128, in particular the counter 1280c, may also be programmable, for example, by the processing unit 102, for example, via software instructions. For example, when the extended timer circuit 128 uses a clock signal CLK / NSC_CLK having a frequency of 100 MHz, the step size ExNTP_INC_STEP should be set to 10. Conversely, when the extended timer circuit 128 uses a trigger signal TRIG with a pre-scaled value COUNTER_RELOAD_VAL of 4 for the same clock signal CLK / NSC_CLK (100 MHz), the step size ExNTP_INC_STEP should be 40.

[0138] In various embodiments, the value of extended timer circuit 128 may be readable, and optionally also writable, by processing unit 102 (e.g., via software instructions). In the case where processing unit 102 has fewer bits (e.g., only 32 bits), processing unit 102 may perform multiple consecutive accesses to the values ​​of counters 1280a, 1280b, and 1280c. Thus, in this case, registers or latches may also be used to store the remaining bits of counter circuit 124, as described with respect to FIG. Figure 5 described.

[0139] Additionally, in various embodiments, the extended timer circuit 128 may also support synchronous operation via a synchronization signal SYNC provided by another NTP timer circuit 136, such as an NTP timer of an (external or internal) Ethernet MAC (IEEE 1588-2008) complaint module.

[0140] For example, a possible process for synchronizing the expansion timer circuit 128 is as follows: Fig.13 Shown in.

[0141] After starting at step 1000 , processing unit 102 obtains (eg, from module 136 ) 16 (MSB) bits and stores them into counter 1280 a at step 1002 .

[0142] In the next step 1004, the processing unit 102 activates the synchronization mode of the extension timer circuit 128, for example by sending a suitable command to the extension timer circuit 128. Therefore, the extension timer circuit 128 will store the signal SYNC in the lower 64 bits, i.e., will overwrite the contents of the count values ​​1280b and 1280c.

[0143] In various embodiments, processing unit 102 may then obtain 16 MSBs again from module 136 at step 1006 and verify at step 1008 whether the corresponding bits provided by module 136 have changed, eg, an overflow has been performed.

[0144] In case the bit changes (verification step 1008 output “N”), the processing unit 102 may return to step 1002 to perform a new synchronization operation.

[0145] Conversely, in the event that the bit has not changed (“Y” output of verification step 1008 ), the process ends at stop step 1010 .

[0146] As previously mentioned, the time reference circuit 122 may also include an optional trigger generator circuit 132. For example, Fig.14 A possible implementation of the trigger generator circuit 132 is shown.

[0147] In particular, in the embodiment considered, the trigger generator circuit 132 receives at an input the trigger signal TRIG and generates one or more trigger signals TRIG0 . . . TRGm.

[0148] For example, in the embodiment under consideration, the trigger generator circuit 132 includes at least one trigger generator subcircuit 1320 . . . 132 m , wherein each trigger generator sub-circuit is configured to generate one or more corresponding trigger signals TRIG0 . . . TRGm.

[0149] For example, Fig.15 A possible embodiment of the general trigger generator subcircuit 132i is shown.

[0150] In the embodiment considered, the trigger generator subcircuit 132i basically comprises: a digital counter 1322 configured to increase a corresponding count value in response to a trigger signal TRIG, and the trigger generator subcircuit 132i is configured to set one or more corresponding trigger signals TRIGi according to the count value of the counter 1322.

[0151] In various embodiments, the counter 1322 does not directly receive the trigger signal TRIG, but provides the signal TRIG to another programmable pre-scale circuit 1320, and the counter 1322 is increased in response to the pre-scaled trigger signal TRIG. Fig.11 ) also applies to the pre-scaling circuit 1320.

[0152] Thus, in various embodiments, each trigger generator sub-circuit 132i may include a corresponding pre-scaling circuit 1320 and a counter 1322 .

[0153] As previously described, one or more trigger signals TRIGi of a given trigger generator sub-circuit 132 i are generated based on the count value of the corresponding counter 1322 .

[0154] Fig.16 and Fig.17 In this respect, two exemplary embodiments are shown, which can be implemented alternatively or also in combination (for example by using corresponding mode selection signals).

[0155] Specifically, Fig.16 An embodiment is shown in which the trigger generator subcircuit 132i is used as a time-out counter configured to generate a signal RE when the counter 1322 has counted a given number of cycles.

[0156] For example, in the embodiment considered, the counter 1322 is used as an up- or down-counter, and when the counter 1322 reaches a given value (e.g., 0x00000000 or 0xFFFF FFFF for a 32-bit counter), the counter 1322 is loaded with a given reload value REL_VAL and generates a reload signal RE. In various embodiments, the signal REL_VAL may be programmable (e.g., the value of the signal REL_VAL is stored in the register 1324), for example, by the processing unit 102, for example, via software instructions. Similarly, the counting direction (up or down) of the counter 1322 may also be programmable.

[0157] Thus, in the embodiment considered, the trigger signal TRIGi may correspond to the reload signal RE. In the embodiment considered, the reload signal RE is also stored to the state register 1326 of the trigger generator sub-circuit 132i.

[0158] On the contrary, Fig.17 An embodiment is shown in which the trigger generator subcircuit 132i is used as a comparison module.

[0159] Specifically, in the embodiment under consideration, the counter 1322 is reset again to a given starting value (usually 0) and the counter 1322 is activated, thereby changing the corresponding count value. For example, in various embodiments, the counter 1322 may be reset and activated via the processing unit 102 (e.g., via software instructions). In various embodiments, the counting direction (incremental or decremental) of the counter 1322 may be programmable.

[0160] In this embodiment, the count value of the counter 1322 is provided to one or more comparators 1330. For example, Fig.17 13280 ... 13283), for example, by the processing unit 102, for example, via software instructions.

[0161] Thus, in the embodiment under consideration, each of the comparators 13300 ... 13303 may generate a corresponding trigger signal TRIGi0 ... TRIGi3 when the count value of the counter 1322 corresponds to the corresponding comparison value COMP_VAL0 ... COMP_VAL3. In the embodiment under consideration, the values ​​of the trigger signals TRIGi0 ... TRIGi3 are also stored in the corresponding bits CMP0 ... CMP3 of the state register 1326 of the trigger generator sub-circuit 132i.

[0162] In general, the trigger signal provided by the trigger generator subcircuit 132i can therefore be used in various modes, such as:

[0163] A flag stored only in the state register 1326 of the trigger generator subcircuit 132i;

[0164] generating an interrupt for the processing unit 102;

[0165] Generate trigger signals / interrupts for other resources 106 of the processing system 10a, such as starting A / D conversion, obtaining sensor data from a digital sensor, etc.

[0166] In various embodiments, each of the trigger generator sub-circuits 132i may also be associated with a given circuit 110 (processing unit 102 or resource 106) of the processing system 10a.

[0167] In various embodiments, the use of the trigger signal, such as simply storing to the status register 1326 or also generating an interrupt to the processing unit 102, may be programmable.

[0168] As previously mentioned, in various embodiments, the time reference circuit 122 may also include an operation time counter circuit 130. For example, Fig.18 An embodiment of an operating time counter circuit 130 is shown.

[0169] In the embodiment considered, the operating time counter circuit 130 comprises at least one counter 1302 o ……1302 l , where each counter 11302 o ……1302 l is configured to generate the corresponding count value OTC o …OTC l , which count value can be read (and possibly written) via processing unit 102, for example, via software instructions. In addition, in various embodiments, counter 1302 o ……1302 l Each of may be reset and / or started and / or stopped by processing unit 102, for example, via software instructions.

[0170] Typically, counter 1302 o ……1302 l Each of the Figure 5 The architecture of the counter 1242 shown (which may also include a register or latch 1250 for improved read access to the count value). In fact, in this case, the counter 1302 o ……1302 l Each of is configured to increase a corresponding count value at a given increment rate, which is programmable via the processing unit 102, for example via software instructions.

[0171] Therefore, about Figure 5 The counter circuit 124 shown, each counter 1302 o ……1302 lThe counter 1302 operates in response to the trigger signal TRIG rather than directly in response to the clock signal NSC_CLK. However, as also described with respect to the extended time circuit 128, in various embodiments, the counter 1302 o ……1302 l The clock source of the counter 1302 can also be selected between the clock signal NSC_CLK or the trigger signal TRIG. Therefore, by setting / programming the increment rate in an appropriate manner, the counter 1302 o ……1302 l It can also be used as a nanosecond counter (similar to the extended time circuit 128).

[0172] For example, counter 1302 o ……1302 l It can be used to monitor the operating time of a given application executed by processing unit 102.

[0173] In various embodiments, counter 1302 o ……1302 l is configured to maintain the corresponding count value and configuration during a functional reset. Fig.19 shown.

[0174] Specifically, in response to the power-on reset or destructive reset at step 2000, the processing unit 102 may configure one (or more) counters 1302 at step 2004. o ……1302 l For example, the processing unit 102 may read a given initial count value from the non-volatile memory 104 of the processing system 10a and write the initial count value into the selected counter 1302. o ……1302 l .

[0175] Therefore, the selected counter 1302 o ……1302 l A new counting event (as indicated by the trigger signal TRIG or the clock signal NSC_CLK) will be waited for at step 2006. Specifically, in the absence of a counting event (output "N" of step 2006), the counter returns to step 2006. Conversely, when a counting event is signaled (output "Y" of step 2006), the counter increases the count value at step 2008.

[0176] like Fig.19 As schematically shown in FIG. 1 , in various embodiments, the processing unit 102 may periodically store the selected counter 1302 o ……1302 lFor example, for this purpose, the processing unit 102 may verify at step 2010 whether a given storage interval has elapsed. In the case that the storage interval has not elapsed (output "N" of step 2010), the process returns to step 2006. Conversely, in the case that the storage interval has elapsed (output "Y" of step 2010), the processing unit 102 may use the selected counter 1302 at step 2012 to calculate the count value. o ……1302 l The current count value overwrites the initial count value in the non-volatile memory 104 of the processing system 10a, and the process returns to step 2012.

[0177] Therefore, by storing the count value to the non-volatile memory 104 and reprogramming the count value to the selected counter 1302 o ……1302 l , the count value can also be saved after power-on reset / destructive reset.

[0178] Conversely, when a functional reset occurs in step 2002, counter 1302 o ……1302 l The corresponding count value and configuration may have been retained. Therefore, in this case, step 2004 may be omitted, that is, the process may proceed directly to step 2006.

[0179] In various embodiments, one or more of the time reference signals (global system time GST and / or time reference signals TBI0 . . . TBIn) may be sent in an encoded format.

[0180] For example, the schematic diagram of the time reference signal TBI0...TBIn is as follows Fig. 20 Specifically, as shown in Figure 4 As described, the time base interface circuit 1260 ... 126 n Each of the circuits 1100 . . . 110 is configured to generate a corresponding time reference signal TBI0 . . . TBIn, which is provided to a corresponding circuit 1100 . . . 110 n (Processing unit 102 or resource 106).

[0181] In the embodiment under consideration, the reference signals TBI0 ... TBIn are not sent directly to the corresponding circuit 110, but to each time base interface circuit 1260 ... 126 n The corresponding time reference signals TBI0...TBIn are provided to the encoder circuits 1380...138 n , thereby generating a corresponding encoding time reference signal. Next, each encoder circuit 1380...138 n Via corresponding communication channels 1420...142n To the corresponding decoder circuit 1400...140 n Send the corresponding coded time reference signal. Finally, the decoder circuit 1400...140 n Decode the corresponding received coded time reference signal and provide the decoded time reference signal to the corresponding circuit 1100...110 n .

[0182] For example, encoder circuit 1380...138 n and decoder circuit 1400 …… 140 n It can be:

[0183] Gray code encoder and decoder;

[0184] Error detection and possible correction encoders and decoders.

[0185] Therefore, the various solutions described above may have one or more of the following features:

[0186] Counter circuit 124 may be used to implement a nanosecond counter (see, for example, Figure 5 );

[0187] A plurality of additional reference time signals TBI0 ... TBIn, may be generated by circuit 126, which may be used by one or more resources 106 of processing system 10a to directly store at the hardware level a value indicative of the count value of counter circuit 124 when a given event is detected in the corresponding resource 106 (see, e.g. Figure 6B and Figure 7 );

[0188] The additional reference time signals TBI0 ... TBIn may have a programmable width and / or resolution (see e.g. Fig. 9 );

[0189] The additional reference time signals TBI0...TBIn may be provided by different clock signals (see, for example, Fig.11 ) to perform the operation;

[0190] An extended NTP timer 128 may be used which provides the seconds (and fractions of seconds) elapsed since January 1, 1900 (see e.g. Fig.12 );

[0191] One or more (operation) time counters 1302 o ……1302 l The execution or lifetime of an application program executed by processing unit 102 may be recorded (see, e.g. Fig.18 and Fig.19 );

[0192] Trigger generator circuit 1320...132 m Can be used to generate periodic interrupts for processing unit 102 or resource 106 (see e.g. Fig.16 );

[0193] Trigger generator circuit 1320...132 m Can be used to generate an interrupt when the counter value reaches a given comparison value (see e.g. Fig.17 ).

[0194] Therefore, the solution disclosed herein uses a high-resolution (64-bit) global system time GST, which is provided to the processing unit 102 of the processing system 10a and / or (at a reduced resolution) to one or more resources 106 of the processing system 10a at the hardware level, so that the processing system 10a can store a timestamp in response to a given event. This feature enables the processing unit 102 (e.g., its operating system) to obtain an accurate hardware-based timestamp, rather than a coarse software-based timestamp. In fact, the captured hardware-based timestamp value has a very short and constant delay relative to the event triggered when the timestamp was captured. Therefore, the time when the processing unit 102 is processing the hardware timestamp value no longer has any impact on the accuracy of the timestamp information.

[0195] Of course, without prejudice to the principle of the invention, the details of construction and of the embodiments may vary widely with respect to what has been described and illustrated herein purely by way of example, without thereby departing from the scope of the invention as defined by the appended claims.

Claims

1. A processing system comprising: a digital processing unit capable of being programmed according to firmware stored in the non-volatile memory; a resource connected to the digital processing unit via a communication system; as well as a time reference circuit comprising a first digital counter circuit configured to generate a system time signal including a plurality of bits indicating a time tick count in response to a clock signal, a time base distribution circuit configured to generate a time base signal by selecting a subset of bits of the system time signal, wherein the time base signal is provided to the resource; as well as An extended timer circuit comprises a second digital counter circuit, the second digital counter circuit comprises a first count value, a second count value, and a third count value, the extended timer circuit is configured to generate an extended system time signal in response to the clock signal or a trigger signal generated according to the clock signal, the extended system time signal comprises a number of bits greater than the number of bits of the system time signal, wherein the extended system time signal can be read by the digital processing unit.

2. The processing system of claim 1, wherein the processing system is configured to synchronize the extended timer circuit.

3. The processing system of claim 2, wherein the processing system synchronizes the extended timer circuit by sending a synchronization command to the extended timer circuit. 4 . The processing system of claim 3 , wherein the extended timer circuit overwrites the contents of the second count value and the third count value after receiving the synchronization command.

5. The processing system of claim 1 , wherein the resource is configured to: Detect a given event, storing the time base signal in a register in response to the event, and signaling the event to the digital processing unit, and Wherein the digital processing unit is adapted to read the time base signal from the register via the communication system in response to the event having been signaled by the resource.

6. The processing system of claim 1 , wherein the resource comprises one of the following: Communication interface; Analog-to-digital converter or digital-to-analog converter; Digital components; Analog components; and Analog / digital mixed signal components.

7. The processing system of claim 6, wherein the communication interface comprises: Universal Asynchronous Receiver / Transmitter, Serial Peripheral Interface Bus, Inter-Integrated Circuit, Controller Area Network Bus or Ethernet Interface, or Debug Interface.

8. The processing system of claim 6, wherein the digital component comprises a hardware timer, a counter, or a cryptographic coprocessor.

9. The processing system of claim 6, wherein the analog component comprises a comparator or a sensor.

10. A processing system comprising: a digital processing unit capable of being programmed according to firmware stored in a non-volatile memory; a resource connected to the digital processing unit via a communication system; as well as a time reference circuit comprising a first digital counter circuit configured to generate a system time signal including a plurality of bits indicating a time tick count in response to a clock signal, a time base distribution circuit configured to generate a time base signal by selecting a subset of bits of the system time signal, wherein the time base signal is provided to the resource; as well as An operation time counter circuit comprises a plurality of third digital counter circuits, wherein the plurality of third digital counter circuits are configured to generate corresponding count values ​​in response to the clock signal or a trigger signal generated by the first counter circuit, wherein each of the plurality of third digital counter circuits can be reset, started and stopped by the digital processing unit. 11 . The processing system of claim 10 , wherein the digital processing unit configures one or more of the plurality of third digital counter circuits in response to a power-on reset or a destructive reset.

12. The processing system of claim 11 , wherein the digital processing unit configures one or more third digital counter circuits of the plurality of third digital counter circuits by reading an initial count value from a non-volatile memory of the processing system and writing the initial count value to a selected counter of the plurality of third digital counter circuits.

13. The processing system of claim 12, wherein the selected counter is configured to increase a count value in response to a new count event.

14. The processing system of claim 10, wherein the resource is configured to: Detect a given event, storing the time base signal in a register in response to the event, and signaling the event to the digital processing unit, and Wherein the digital processing unit is adapted to read the time base signal from the register via the communication system in response to the event having been signaled by the resource.

15. The processing system of claim 10, wherein the resource comprises one of the following: Communication interface; Analog-to-digital converter or digital-to-analog converter; Digital components; Analog components; and Analog / digital mixed signal components.

16. The processing system of claim 15, wherein the communication interface comprises: Universal Asynchronous Receiver / Transmitter, Serial Peripheral Interface Bus, Inter-Integrated Circuit, Controller Area Network Bus or Ethernet Interface, or Debug Interface.

17. The processing system of claim 15, wherein the digital component comprises a hardware timer, a counter, or a cryptographic coprocessor.

18. The processing system of claim 15, wherein the analog component comprises a comparator or a sensor.