×

Microcontroller with firmware selectable oscillator trimming

  • US 5,796,312 A
  • Filed: 05/24/1996
  • Issued: 08/18/1998
  • Est. Priority Date: 05/24/1996
  • Status: Expired due to Term
First Claim
Patent Images

1. A microcontroller circuit having firmware selectable oscillator trimming comprising, in combination:

  • a microcontroller;

    oscillator means located within said microcontroller for providing a system clock signal for said microcontroller wherein said oscillator means generating an oscillatory signal of a predetermined frequency across a series resistor-capacitor (RC) network by ensuring that the oscillatory signal accurately oscillates between first and second voltages generated from a supply voltage source where the frequency of oscillation is determined by both the time constant of the RC network and the difference between the first and second voltages, said oscillator means comprising, in combination;

    charging-discharging means for discharging a voltage across the capacitor commencing when voltage of the oscillatory signal exceeds a first threshold voltage and for charging said voltage across the capacitor commencing when voltage of the oscillatory signal falls below a second threshold voltage;

    first sampling means coupled to said charging-discharging means for obtaining a first sampled voltage of the oscillatory signal upon commencement of discharging of said voltage across the capacitor;

    first compensation means coupled to said first sampling means for adjusting said first threshold voltage to be the first voltage modified by a voltage difference between the first voltage and said first sampled voltage;

    second sampling means coupled to said charging-discharging means for obtaining a second sampled voltage of the oscillatory signal upon commencement of charging of said voltage across the capacitor;

    second compensation means coupled to said second sampling means for adjusting said second threshold voltage to be the second voltage modified by a voltage difference between the second voltage and said second sampled voltage; and

    differential voltage setting means coupled to said second compensation means for selecting the second voltage from a plurality of different possible voltages and thereby selecting a voltage difference between the first and second voltages; and

    memory means coupled to said oscillator means for providing signals to said oscillator means for trimming frequency of said system clock.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×