IP Library Granted Patent US 9,489,287
Granted Patent B2
US 9,489,287 · App. 13/974,965 · Granted Nov 8, 2016

Breaking code execution based on time consumption

Inventor: Ingar Hanssen (Trondheim, NO)
Assignee: Atmel Corporation
G06F11/3648G06F11/348G06F11/3419G06F11/362G06F11/3604G06F11/3612
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,489,287
App. No.
13/974,965
Granted
Nov 8, 2016
Kind
B2
Abstract

An on-chip system uses a time measurement circuit to trap code that takes longer than expected to execute by breaking code execution on excess time consumption.

Claims (44)

1. A method of breaking code execution based on time consumption performed by an integrated circuit (IC) device, the method comprising:

receiving a first signal indicating a start point defined in source code, the first signal generated when the start point is executed by the IC device;

starting a counter in a time measurement circuit in response to receiving the first signal;

counting, using an interrupt level counter coupled to the counter, interrupt levels for nested interrupt signals;

receiving a second signal indicating a stop point defined in the source code, the second signal generated when the stop point is executed by the IC device;

stopping the counter in the time measurement circuit in response to receiving the second signal; and

generating a program break or time event based on a comparison of time measured by the time measurement circuit with a maximum and minimum time setting.

2. The method of claim 1 , further comprising:

comparing, using a comparator coupled to the counter, the count from the counter to a count representing the maximum or the minimum time setting; and

generating a signal indicating a program break or time event.

3. The method of claim 1 , where the IC device is a microcontroller.

4. The method of claim 1 , where the start and stop points are defined in the source code by code instrumentation.

5. The method of claim 1 , where the start and stop points are defined in the source code by instruction fetch address comparators.

6. The method of claim 1 , further comprising:

comparing, using a first comparator coupled to the counter, the count from the counter to a count representing the maximum time setting, the first comparator generating a signal indicating a program break or maximum time event; and

comparing, using a second comparator coupled to the counter, the count from the counter to a count representing the minimum time setting, the second comparator generating a signal indicating a program break or minimum time event.

7. An integrated circuit (IC) device including a system for breaking code execution based on time consumption, the system comprising:

a time measurement circuit including a counter, the time measurement circuit configured to start and stop the counter based on signals indicative of start and stop points defined in the code, the signals generated while compiled source code is executing on the IC device, where the time measurement circuit further comprises:

a first comparator coupled to the counter and configured for comparing the count from the counter to a count representing a maximum time setting, the first comparator generating a signal indicating a program break or maximum time event; and

a second comparator coupled to the counter and configured for comparing the count from the counter to a count representing a minimum time setting, the second comparator generating a signal indicating a program break or minimum time event; and

a debug or event system coupled to the time measurement circuit and configured to generate a program break or time event, respectively, based on a comparison of time measured by the time measurement circuit with the maximum and the minimum time setting.

8. The system of claim 7 , where the IC device is a microcontroller.

9. The system of claim 7 , where the start and stop points are defined in the source code by code instrumentation.

10. The system of claim 7 , where the start and stop points are defined in the source code by instruction fetch address comparators.

11. The system of claim 7 , where the time measurement circuit further comprises:

a first comparator coupled to the counter and configured for comparing the count from the counter to a count representing the maximum time setting, the first comparator generating a signal indicating a program break or maximum time event; and

a second comparator coupled to the counter and configured for comparing the count from the counter to a count representing the minimum time setting, the second comparator generating a signal indicating a program break or minimum time event.

12. The system of claim 7 , further comprising:

an interrupt level counter coupled to the counter and configured to count interrupt levels for nested interrupt signals.

13. An integrated circuit (IC) device including a system for breaking code execution based on time consumption, the system comprising:

a time measurement circuit including a counter, the time measurement circuit configured to start and stop the counter based on signals indicative of start and stop points defined in the code, the signals generated while compiled source code is executing on the IC device, where the start and stop points are defined in the source code by instruction fetch address comparators; and

a debug or event system coupled to the time measurement circuit and configured to generate a program break or time event, respectively, based on a first comparison of time measured by the time measurement circuit with a maximum time setting and a second comparison of time measured by the time measurement circuit with a minimum time setting.

14. The system of claim 13 , where the time measurement circuit further comprises:

a comparator coupled to the counter and configured for:

comparing the count from the counter to a count representing the maximum or minimum time setting; and

generating a signal indicating a program break or time event.

15. The system of claim 13 , further comprising:

an interrupt level counter coupled to the counter and configured to count interrupt levels for nested interrupt signals.

16. The system of claim 13 , where the IC device is a microcontroller.

17. The system of claim 13 , where the start and stop points are defined in the source code by code instrumentation.

18. The system of claim 13 , where the time measurement circuit further comprises:

a first comparator coupled to the counter and configured for comparing the count from the counter to a count representing the maximum time setting, the first comparator generating a signal indicating a program break or maximum time event; and

a second comparator coupled to the counter and configured for comparing the count from the counter to a count representing the minimum time setting, the second comparator generating a signal indicating a program break or minimum time event.

19. The system of claim 13 , wherein at least one of the maximum time setting or the minimum time setting is preconfigured by a user.

Assignments (17)
RELEASE OF SECURITY INTEREST Recorded Mar 14, 2022
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
To: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 060894/0437 →
RELEASE OF SECURITY INTEREST Recorded Mar 11, 2022
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
To: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 059363/0001 →
RELEASE OF SECURITY INTEREST Recorded Mar 10, 2022
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
To: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 059863/0400 →
RELEASE OF SECURITY INTEREST Recorded Mar 9, 2022
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
To: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 059358/0001 →
RELEASE OF SECURITY INTEREST Recorded Feb 28, 2022
From: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT
To: ATMEL CORPORATION
Reel/Frame 059262/0105 →
RELEASE OF SECURITY INTEREST Recorded Feb 25, 2022
From: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT
To: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 059333/0222 →
SECURITY INTEREST Recorded Jun 4, 2021
From: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
Reel/Frame 057935/0474 →
SECURITY INTEREST Recorded Dec 24, 2020
From: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS COLLATERAL AGENT
Reel/Frame 055671/0612 →
SECURITY INTEREST Recorded Jun 5, 2020
From: MICROCHIP TECHNOLOGY INC.; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: WELLS FARGO BANK, NATIONAL ASSOCIATION
Reel/Frame 053468/0705 →
RELEASE OF SECURITY INTEREST Recorded May 30, 2020
From: JPMORGAN CHASE BANK, N.A, AS ADMINISTRATIVE AGENT
To: MICROCHIP TECHNOLOGY INC.; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
Reel/Frame 053466/0011 →
SECURITY INTEREST Recorded Apr 24, 2020
From: MICROCHIP TECHNOLOGY INC.; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT
Reel/Frame 053311/0305 →
SECURITY INTEREST Recorded Sep 18, 2018
From: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS NOTES COLLATERAL AGENT
Reel/Frame 047103/0206 →
SECURITY INTEREST Recorded Jun 25, 2018
From: MICROCHIP TECHNOLOGY INCORPORATED; SILICON STORAGE TECHNOLOGY, INC.; ATMEL CORPORATION; MICROSEMI CORPORATION; MICROSEMI STORAGE SOLUTIONS, INC.
To: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT
Reel/Frame 046426/0001 →
SECURITY INTEREST Recorded Feb 10, 2017
From: ATMEL CORPORATION
To: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT
Reel/Frame 041715/0747 →
TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENT COLLATERAL Recorded Apr 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: ATMEL CORPORATION
Reel/Frame 038376/0001 →
PATENT SECURITY AGREEMENT Recorded Jan 3, 2014
From: ATMEL CORPORATION
To: MORGAN STANLEY SENIOR FUNDING, INC. AS ADMINISTRATIVE AGENT
Reel/Frame 031912/0173 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 23, 2013
From: HANSSEN, INGAR
To: ATMEL CORPORATION
Reel/Frame 031073/0435 →
Continuity (1)
Related Publication 20150058827A1 · Feb 26, 2015