IP Library Granted Patent US 8,653,871
Granted Patent B1
US 8,653,871 · App. 13/672,940 · Granted Feb 18, 2014

Counter circuit

Inventor: Karl Jean-Paul Courtel (Reze, FR)
Assignee: Atmel Corporation
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 8,653,871
App. No.
13/672,940
Granted
Feb 18, 2014
Kind
B1
Abstract

A counter circuit includes two pairs of registers configured to swap contents based on a timer overflow or underflow condition. The counter circuit also includes a waveform generator that generates a composite pulse width modulated signal with a period and duty cycle specified by values stored in the registers. A demultiplexing circuit generates first and second signals from the composite signal.

Claims (43)

1. A counter circuit comprising:

a first pair of registers configured to swap contents when the counter circuit increments or decrements a counter value to a first update count, one of the first pair of registers storing the first update count;

a second pair of registers configured to swap contents when the counter circuit increments or decrements the counter value to the first update count;

a waveform generator configured to generate a composite signal, wherein the waveform generator is configured to cause the composite signal to invert when the counter circuit increments or decrements the counter value to the first update count, and wherein the waveform generator is configured to cause the composite signal to invert when the counter circuit increments or decrements the counter value to a first match count, one of the second pair of registers storing the first match count; and

a demultiplexing circuit coupled to the waveform generator and configured to generate first and second signals from the composite signal.

2. The counter circuit of claim 1 , further comprising a counter register configured to store the counter value, wherein the counter circuit is configured to periodically increment or decrement the counter value.

3. The counter circuit of claim 1 , wherein the counter circuit is configured to store the first update count in one of the first pair of registers and a second update count in the other of the first pair of registers, the first update count specifying a first period of the first signal and the second update count specifying a second period of the second signal.

4. The counter circuit of claim 3 , wherein the counter circuit is configured to store the first match count in one of the second pair of registers and a second match count in the other of the second pair of registers, the first match count specifying a first pulse duration of the first signal and the second match count specifying a second pulse duration of the second signal.

5. The counter circuit of claim 1 , further comprising an interface configured to receive a new update count from a processor and write the new update count to one of the first pair of registers, and to receive a new match count from the processor and write the new match count to one of the second pair of registers.

6. The counter circuit of claim 1 , wherein the demultiplexing circuit comprises:

a flip-flop configurable between first and second states, wherein the flip-flop is configured to change from one state to the other when the when the counter circuit increments or decrements the counter value past the first update count;

a first logic gate configured to qualify the first signal from the composite signal by enabling the output of the composite signal when the flip-flop is in the first state; and

a second logic gate configured to qualify the second signal from the composite signal by enabling the output of the composite signal when the flip-flop is in the second state.

7. The counter circuit of claim 6 , wherein the flip-flop is a D flip-flop and the first and second logic gates are AND gates, and wherein each AND gate comprises a respective first input coupled to an output of the waveform generator and a respective second input coupled to the D flip-flop.

8. A method performed by a counter circuit, the method comprising:

initializing a first pair of registers to store first and second update counts;

initializing a second pair of registers to store first and second match counts;

periodically incrementing or decrementing a counter value; and

generating a composite signal and demultiplexing the composite signal to generate first and second signals, wherein generating the composite signal comprises:

determining that the counter value has reached a selected match count selected from the second pair of registers, and, in response, causing the composite signal to invert its polarity

determining that the counter value has reached a selected update count selected from the first pair of registers, and, in response, causing the composite signal to reinitialize to a given polarity and causing the first pair of registers to swap contents and causing the second pair of registers to swap contents.

9. The method of claim 8 , wherein initializing the first pair of registers comprises storing the first update count in one of the first pair of registers and the second update count in the other of the first pair of registers, the first update count specifying a first period of the first signal and the second update count specifying a second period of the second signal.

10. The method of claim 8 , wherein initializing the second pair of registers comprises storing the first match count in one of the second pair of registers and the second match count in the other of the second pair of registers, the first match count specifying a first pulse duration of the first signal and the second match count specifying a second pulse duration of the second signal.

11. The method of claim 8 , further comprising receiving a new update count from a processor and writing the new update count to one register of the first pair of registers.

12. The method of claim 11 , further comprising receiving a new match count from the processor and writing the new match count to one register of the second pair of registers.

13. The method of claim 8 , wherein demultiplexing the composite signal comprises outputting, to a first output, the composite signal until determining that the counter value has reached the selected update count, and then outputting the composite signal to a second output.

14. The method of claim 8 , wherein demultiplexing the composite signal to generate first and second signals comprises driving a high side driver of a half-bridge with the first signal and driving a low side driver of the half-bridge with the second signal.

15. A microcontroller system comprising:

a processor;

a half-bridge circuit comprising a high side driver and a low side driver; and

a counter circuit coupled to the processor and the half-bridge circuit, the counter circuit comprising:

a first pair of registers configured to swap contents when the counter circuit increments or decrements a counter value to a first update count, one of the first pair of registers storing the first update count;

a second pair of registers configured to swap contents when the counter circuit increments or decrements the counter value to the first update count;

a waveform generator configured to generate a composite signal, wherein the waveform generator is configured to cause the composite signal to invert when the counter circuit increments or decrements the counter value to the first update count, and wherein the waveform generator is configured to cause the composite signal to invert when the counter circuit increments or decrements the counter value to a first match count, one of the second pair of registers storing the first match count; and

a demultiplexing circuit coupled to the waveform generator and configured to generate first and second signals from the composite signal, the first signal driving the high side driver and the second signal driving the low side driver.

16. The microcontroller system of claim 15 , further comprising a counter register configured to store the counter value, wherein the counter circuit is configured to periodically increment or decrement the counter value.

17. The microcontroller system of claim 15 , wherein the counter circuit is configured to store the first update count in one of the first pair of registers and a second update count in the other of the first pair of registers, the first update count specifying a first period of the first signal and the second update count specifying a second period of the second signal.

18. The microcontroller system of claim 17 , wherein the counter circuit is configured to store the first match count in one of the second pair of registers and a second match count in the other of the second pair of registers, the first match count specifying a first pulse duration of the first signal and the second match count specifying a second pulse duration of the second signal.

19. The microcontroller system of claim 15 , wherein the processor is configured to write a new update count to one of the first pair of registers and write a new match count to one of the second pair of registers.

20. The microcontroller system of claim 15 , wherein the demultiplexing circuit comprises:

a flip-flop configurable between first and second states, wherein the flip-flop is configured to change from one state to the other when the counter circuit increments or decrements the counter value past the first update count;

a first logic gate configured to generate the first signal from the composite signal by outputting the composite signal when the flip-flop is in the first state; and

a second logic gate configured to generate the second signal from the composite signal by outputting the composite signal when the flip-flop is in the second state.

Assignments (18)
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 Apr 19, 2013
From: COURTEL, KARL JEAN-PAUL
To: ATMEL NANTES S.A.S.
Reel/Frame 030252/0682 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 9, 2013
From: ATMEL NANTES S.A.S.
To: ATMEL CORPORATION
Reel/Frame 030181/0767 →