×

Methods and apparatus for pulse-width modulation that use a counter and a modulus device

  • US 5,377,346 A
  • Filed: 06/06/1990
  • Issued: 12/27/1994
  • Est. Priority Date: 06/06/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of generating a square wave signal in a system wherein a timer-out signal is toggled from one of first and second levels to another when a counter of an interval timer counts to a preselected value, comprising the electrical-circuitry-implemented steps of:

  • generating an interrupt in response to said counter counting to said preselected value;

    on each of a plurality of successive interrupts generated by said generating step, performing the steps of;

    loading said counter from a modulus register;

    determining whether said timer-out signal is of said first level or said second level; and

    after loading said counter from said modulus register, loading said modulus register with a next value to be loaded into said counter when said counter counts to said preselected value, wherein the next value is;

    a selected first value determining a duration of a first-level portion of said timer-out signal, if said timer-out signal is of said second level; and

    a selected second value determining a duration of a second-level portion of said timer-out signal and different from said first value, if said timer-out signal is of said first level; and

    during said modulus register loading step, counting by said counter towards said preselected value; and

    after the last interrupt of said plurality of interrupts, changing said square wave signal period and duty cycle at a point of time when said timer-out signal toggles from said second level to said first level, said step of changing comprising the steps of;

    at the first interrupt after said plurality of said interrupts, loading said modulus register with;

    a selected third value if said timer-out signal is of said second level; and

    said second value if said timer-out signal is of said first level;

    at each interrupt following said first interrupt, loading said modulus register with;

    said third value if said timer-out signal is of said second level;

    a selected fourth value if said timer-outsignal is of said first level;

    wherein(v1-v2)2 +(v3-v4)2 is not equal to 0, whereinv1 is said first value;

    v2 is said second value;

    v3 is said third value;

    v4 is said fourth value;

    during said modulus register loading steps, counting by said counter towards said preselected value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×