IP Library › Granted Patent US 12,176,906
Granted Patent B2
US 12,176,906 · App. 18/308,005 · Granted Dec 24, 2024

PWM-based continuous clock serial interface

Inventors: Huihuang Chen (Shenzhen, CN); Yan Zou (Suzhou, CN)
Assignee: Texas Instruments Incorporated
H03K7/08G06F13/4291H03K3/011
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 12,176,906
App. No.
18/308,005
Granted
Dec 24, 2024
Kind
B2
Abstract

A circuit includes a microcontroller having a clock output and a data output. The microcontroller includes a serial-peripheral interface (SPI) circuit, a pulse-width modulation (PWM) generator, and a central processing unit (CPU). The SPI circuit is configured to provide an SPI clock signal and an SPI data signal to the data output. The PWM generator is configured to provide a continuous PWM signal to the clock output. The CPU is coupled to the SPI circuit and the PWM generator, and the CPU has executable instructions configured to synchronize the PWM signal to the SPI clock signal.

Claims (43)

1. A circuit comprising:

a microcontroller having a clock output and a data output, the microcontroller comprising:

a serial-peripheral interface (SPI) circuit configured to provide an SPI clock signal and an SPI data signal to the data output;

a pulse-width modulation (PWM) generator configured to provide a continuous PWM signal to the clock output; and

a central processing unit (CPU) coupled to the SPI circuit and the PWM generator, the CPU having executable instructions configured to synchronize the PWM signal to the SPI clock signal.

2. The circuit of claim 1 , wherein the microcontroller further comprises a capture circuit configured to measure respective edges of the SPI clock signal and the PWM signal, in which a time difference between the respective edges of the SPI clock signal and the PWM signal is a delay value representative of the time difference.

3. The circuit of claim 2 , wherein the PWM generator is configured to provide the PWM signal based on the delay value.

4. The circuit of claim 1 , wherein the SPI circuit is configured to provide the SPI clock signal responsive to a control signal to enable the SPI circuit to provide the SPI data signal.

5. The circuit of claim 1 , wherein the microcontroller includes a memory, and the SPI circuit is configured to operate in a direct memory access (DMA) mode, in which the SPI circuit is configured to access the memory independently of the CPU and to provide dummy data to the data output for a duration based on a compensation activation signal having a value representative of a clock compensation mode.

6. The circuit of claim 5 , wherein the microcontroller includes a capture circuit configured to measure respective edges of the SPI clock signal and the PWM signal responsive to the compensation activation signal, and the CPU is configured to determine a delay value representative of a delay based on a time difference between the respective edges.

7. The circuit of claim 6 , wherein the PWM generator is configured to compensate for the delay and provide the PWM signal based on the delay value.

8. The circuit of claim 7 , wherein the PWM signal has a 50% duty cycle and a frequency that matches a frequency of the SPI clock signal.

9. The circuit of claim 5 , wherein the SPI circuit is configured to access the memory and provide output data to the data output responsive to the compensation activation signal having a value representative of a normal operating mode.

10. The circuit of claim 9 , further comprising a driver having a clock input, a data input and a driver output, in which the clock input is coupled to the clock output, the data input is coupled to the data output, and the driver is configured to provide an output signal to the driver output based on the PWM signal at the clock input and a data signal at the data input.

11. A method comprising:

providing a serial-peripheral interface (SPI) clock signal from an SPI circuit of a microcontroller based on a command to provide SPI output data to a data output of the microcontroller;

providing a continuous pulse-width modulation (PWM) signal to a clock output of the microcontroller; and

synchronizing, by a central processing unit (CPU) of the microcontroller, the PWM signal to the SPI clock signal based on the command to provide the SPI output data.

12. The method of claim 11 , wherein the SPI circuit is configured to operate in a direct memory access (DMA) mode, and the method further comprises:

accessing, by the SPI circuit, memory of the microcontroller independently of the CPU; and

providing, by the SPI circuit, dummy data to the data output for a duration based on a compensation activation signal having a value representative of a clock compensation mode.

13. The method of claim 12 , further comprising:

measuring a time difference between the SPI clock signal and the PWM signal responsive to the compensation activation signal, and

providing a delay value representative of a delay between the SPI clock signal and the PWM signal based on the time difference.

14. The method of claim 13 , further comprising:

compensating for the delay between the SPI clock signal and the PWM signal; and

providing the PWM signal compensated for the delay based on the delay value.

15. The method of claim 14 , wherein the PWM signal has a 50% duty cycle and a frequency that matches a frequency of the SPI clock signal.

16. The method of claim 12 , wherein the SPI circuit is configured to access the memory and provide output data to the data output responsive to the compensation activation signal having a value representative of a normal operating mode.

17. The method of claim 16 , further comprising providing, by a driver circuit, a driver output signal to a driver output based on the PWM signal and the output data at the data output, in which the driver circuit has a clock input and a data input, the clock input is coupled to the clock output, and the data input is coupled to the data output.

18. A system comprising:

a microcontroller having a clock output and a data output, the microcontroller comprising:

a serial-peripheral interface (SPI) circuit configured to provide an SPI clock signal and an SPI data signal, in which the SPI data signal is provided to the data output;

a pulse-width modulation (PWM) generator configured to provide a continuous PWM signal to a PWM output having a 50% duty cycle and a frequency that matches a frequency of the SPI clock signal; and

a central processing unit (CPU) coupled to the SPI circuit and the PWM generator, the CPU having executable instructions configured to synchronize the PWM signal to the SPI clock signal; and

an output circuit having a clock input and a data input, in which the clock input is coupled to the PWM output and the data input is coupled to the data output.

19. The system of claim 18 , wherein:

the microcontroller includes a memory,

the SPI circuit is configured to operate in a direct memory access (DMA) mode, in which the SPI circuit is configured to access the memory independently of the CPU and to provide dummy data to the data output for a duration based on a compensation activation signal having a value representative of a clock compensation mode,

the microcontroller includes a capture circuit configured to measure timing of the SPI clock signal and the PWM signal based on the compensation activation signal having the value representative of the clock compensation mode,

the CPU is configured to provide a delay value representative of a delay based on a timing difference between the SPI clock signal and the PWM signal, and

the PWM generator is configured to compensate for the delay and provide the PWM signal based on the delay value.

20. The system of claim 18 , wherein the output circuit includes a driver circuit having a driver output and an output circuit having a control input, in which the driver output is coupled to the control input and the driver circuit is configured to provide a drive signal at the driver output based on the PWM signal at the clock input and a data signal at the data input.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2024
From: CHEN, HUIHUANG; ZOU, YAN
To: TEXAS INSTRUMENTS INCORPORATED
Reel/Frame 068842/0390 →
Continuity (1)
Related Publication 20240364321A1 · Oct 31, 2024