Claims
- 1. A microcontroller that can operate with a minimal number of external components comprising, in combination:
- power supply means coupled to a power pin of said microcontroller for supplying said microcontroller with a source of power;
- grounding means coupled to a ground pin of said microcontroller for providing a source of ground for said microcontroller;
- oscillator means internal to said microcontroller for supplying a clock signal to internal components of said microcontroller that require said clock signal to function;
- reset means internal to said microcontroller for sending a reset signal to internal components of said microcontroller when said microcontroller needs to be reset; and
- resistor means internal to said microcontroller and coupled to at least one Input/Output (I/O) pin of said microcontroller for limiting a signal transferred to and from said at least one I/O pin and for holding said signal transferred to and from said at least one I/O pin at a desired level.
- 2. A microcontroller that can operate with a minimal number of external components in accordance with claim 1 wherein said resistor means are coupled to all I/O pins of said microcontroller.
- 3. A microcontroller that can operate with a minimal number of external components in accordance with claim 1 wherein said oscillator means generates an oscillatory signal of a predetermined frequency across a series resistor-capacitor (RC) network by ensuring that said oscillatory signal accurately oscillates between first and second voltages generated from a first supply voltage source where the frequency of oscillation is determined by a time constant of said RC network comprising:
- a first comparator having a first input coupled to said RC network;
- a second comparator having a first input coupled to said RC network;
- a flip flop having a first input coupled to an output of said first comparator and a second input coupled to an output of said second comparator and an output coupled to said RC network;
- first voltage modifying means for receiving said first voltage and for applying a modified version of said first voltage to a second input of said first comparator, said modified version of said first voltage being equal to said first voltage adjusted by a voltage difference between said first voltage and a voltage of said oscillatory signal at time of switching of said flip flop from a first logic level to a second logic level; and
- second voltage modifying means for receiving said second voltage and for applying a modified version of said second voltage to a second input of said second comparator, said modified version of said second voltage being equal to said second voltage adjusted by a voltage difference between said second voltage and a voltage of said oscillatory signal at time of switching of said flip flop from said second logic level to said first logic level.
- 4. A microcontroller that can operate with a minimal number of external components in accordance with claim 3 wherein said first voltage modifying means comprises means for sampling said oscillatory signal upon switching of said flip flop from said first logic level to said second logic level.
- 5. A microcontroller that can operate with a minimal number of external components in accordance with claim 3 wherein said second voltage modifying means comprises means for sampling said oscillatory signal upon switching of said flip flop from said second logic level to said first logic level.
- 6. A microcontroller that can operate with a minimal number of external components in accordance with claim 1 wherein said reset means comprises:
- logic gate means for outputting a signal to reset internal components of said microcontroller;
- watchdog timer means coupled to a first input of said logic gate means for sending a signal to said logic gate means to reset said microcontroller if said watchdog timer is not cleared before a predetermined time period elapses;
- brownout detector means coupled to a second input of said logic gate means for sending a signal to said logic gate means to reset said microcontroller when power to said microcontroller falls below a minimum threshold value that is not zero and then returns to a valid operating voltage;
- valid V.sub.DD detector means coupled to a third input of said logic gate means for sending a signal to said logic gate means to hold said microcontroller in a reset mode until a valid operating voltage is measured; and
- oscillator start-up timer means coupled to a fourth input of said logic gate means for sending a signal to said logic gate means to hold said microcontroller in said reset mode until at least one of a predetermined time period has elapsed and a predetermined number of clock pulses has occurred.
- 7. A microcontroller that can operate with a minimal number of external components in accordance with claim 1 wherein said resistor means comprises:
- a plurality of transistor set means coupled to said at least one I/O pin for altering a strength of resistance to limit said signal transferred to and from said at least one I/O pin;
- a plurality of logic gate circuitry means wherein individual logic gate circuitry means are coupled to individual transistor set means for sending signals to activate desired transistor sets of said plurality of transistor sets;
- register means couples to each of said plurality of logic gate circuitry means for storing data on a desired strength of resistance to limit said signal transferred to and from said at least one I/O pin and for signalling said plurality of logic gate circuitry means to activate said desired transistor sets of said plurality of resistor sets;
- means coupled to said a last one I/O pin and internal to said microcontroller for holding said signal transferred to and from said at least one I/O pin at a desired level; and
- I/O logic means coupled to each of said plurality of logic gate circuitry means for writing data out of said at least one I/O pin and for reading data in from said at least one I/O pin.
- 8. A microcontroller that can operate with a minimal number of external components in accordance with claim 7 wherein said means for holding said signal transferred to and from said at least one I/O pin at a desired level comprises:
- a first inverter having an input coupled to said at least one I/O pin; and
- a second inverter having an input coupled to an output of said first inverter and an output coupled to said input of said first inverter.
- 9. A microcontroller that can operate with a minimal number of external components in accordance with claim 7 wherein said means for holding said signal transferred to and from said at least one I/O pin at a desired level comprises:
- a PMOS transistor;
- an NMOS transistor coupled to sand PMOS transistor;
- an inverter having an input coupled to a gate of said PMOS transistor and an output coupled to a gate of said NMOS transistor; and
- memory bit means coupled to said input of said inverter for storing data to activate and deactivate said PMOS and said NMOS transistor.
- 10. A microcontroller that can operate with a minimal number of external components in accordance with claim 7 wherein each of said transistor set means comprises:
- a PMOS transistor, and
- an NMOS transistor coupled to said PMOS transistor.
- 11. A microcontroller that can operate with a minimal number of external components in accordance with claim 10 wherein each of said plurality of logic gate circuitry means comprises:
- an OR gate having an input coupled to an individual bit of said register means and inputs coupled to said I/O logic means and an output coupled to said PMOS transistor;
- an inverter having an input coupled to said individual bit of said register means; and
- an AND gate having an input coupled to an output of said inverter and inputs coupled to said I/O logic means and an output coupled to said NMOS transistor.
- 12. A microcontroller that can operate with a minimal number of external components in accordance with claim 7 wherein said I/O logic means comprises:
- data bus means for transferring data to and from said at least one I/O pin;
- I/O control latch means coupled to said data bus means for sending a signal to set said at least one I/O pin as an input pin and for sending a signal to set said at least one I/O pin as an output pin;
- output data latch means coupled to said data bus means for clocking in data from said data bus means to be written out of said at least one I/O pin when said at least one I/O pin is configured as said output pin; and
- AND gate means having an output coupled to said at least one I/O pin and an input coupled to a read enable signal for signalling said at least one I/O pin to transfer data inputted to said at least one I/O pin to said data bus means when said at least one I/O pin is configured as said input pin.
- 13. A microcontroller that can operate with a minimal number of external components comprising, in combination:
- power supply means coupled to a power pin of said microcontroller for supplying said microcontroller with a source of power;
- grounding means coupled to a ground pin of said microcontroller for providing a source of ground for said microcontroller;
- oscillator means internal to said microcontroller for supplying a clock signal to internal components of said microcontroller that require said clock signal to function, said oscillator means generates an oscillatory signal of a predetermined frequency across a series resistor-capacitor (RC) network by ensuring that said oscillatory signal accurately oscillates between first and second voltages generated from a first supply voltage source where the frequency of oscillation is determined by a time constant of said RC network comprising:
- a first comparator having a first input coupled to said RC network;
- a second comparator having a first input coupled to said RC network;
- a flip flop having a first input coupled to an output of said first comparator and a second input coupled to an output of said second comparator and an output coupled to said RC network;
- first voltage modifying means for receiving said first voltage and for applying a modified version of said first voltage to a second input of said first comparator, said modified version of said first voltage being equal to said first voltage adjusted by a voltage difference between said first voltage and a voltage of said oscillatory signal at time of switching of said flip flop from a first logic level to a second logic level; and
- second voltage modifying means for receiving said second voltage and for applying a modified version of said second voltage to a second input of said second comparator, said modified version of said second voltage being equal to said second voltage adjusted by a voltage difference between said second voltage and a voltage of said oscillatory signal at time of switching of said flip flop from said second logic level to said first logic level;
- reset means internal to said microcontroller for sending a reset signal to internal components of said microcontroller when said microcontroller needs to be reset, said reset means comprising:
- logic gate means for outputting a signal to reset internal components of said microcontroller;
- watchdog timer means coupled to an input of said logic gate means for sending a signal to said logic gate means to reset said microcontroller if said watchdog timer is not cleared before a predetermined time-out period elapses;
- brownout detector means coupled to an input of said logic gate means for sending a signal to said logic gate means to reset said microcontroller when power to said microcontroller falls below a minimum threshold value that is not zero and then returns to a valid operating voltage;
- valid V.sub.DD detector means coupled to an input of said logic gate means for sending a signal to said logic gate means to hold said microcontroller in a reset mode until a valid operating voltage is measured; and
- oscillator start-up timer means coupled to an input of said logic gate means for sending a signal to said logic gate means to hold said microcontroller in said reset mode until at least one of a predetermined time period has elapsed and a predetermined number of clock pulses has occurred; and
- resistor means internal to said microcontroller and coupled to each I/O pin of said microcontroller for limiting a signal transferred to and from said each I/O pin and for holding said signal transferred to and from said each I/O pin at a desired level, said resistor means comprising:
- a plurality of transistor set means coupled to said at least one I/O pin for altering a strength of resistance to limit said signal transferred to and from said at least one I/O pin, each of said plurality of transistor sets comprising:
- a PMOS transistor; and
- an NMOS transistor coupled to said PMOS transistor;
- a plurality of logic circuitry means wherein individual logic gate circuitry means for coupled to individual transistor set means for sending signals to activate desired transistor sets of said plurality of transistor sets, each of said plurality of logic gate circuitry means comprising:
- an OR gate having an input coupled to an individual bit of said register means and inputs coupled to said I/O logic means and an output coupled to said PMOS transistor;
- an inverter having an input coupled to said individual bit of said register means; and
- an AND gate having an input coupled to an output of said inverter and inputs coupled to said I/O logic means and an output coupled to said NMOS transistor;
- register means coupled to each of said plurality of logic gate circuitry means for storing data on a desired strength of resistance to limit said signal transferred to and from said at least one I/O pin and for signalling said plurality of logic gate circuitry means to activate said desired transistor sets of said plurality of resistor sets;
- means coupled to said a last one I/O pin and internal to said microcontroller for holding said signal transferred to and from said at least one I/O pin at a desired level; and
- I/O logic means coupled to each of said plurality of logic gate circuitry means for writing data out of said at least one I/O pin and for reading data in from said at least one I/O pin, said I/O logic means comprising:
- data bus means for transferring data to and from said at least one I/O pin;
- I/O control latch means coupled to said data bus means for sending a signal to set said at least one I/O pin as an input pin and for sending a signal to set said at least one I/O pin as an output pin;
- output data latch means coupled to said data bus means for clocking in data from said data bus means to be written out of said at least one I/O pin when said at least one I/O pin is configured as said output pin; and
- AND gate means having an output coupled to said at least one I/O pin and an input coupled to a read enable signal for signalling said at least one I/O pin to transfer data inputted to said at least one I/O pin to said data bus means when said at least one I/O pin is configured as said input pin.
- 14. A microcontroller that can operate with a minimal number of external components in accordance with claim 13 wherein said first voltage modifying means comprises means for sampling said oscillatory signal upon switching of said flip flop from said first logic level to said second logic level.
- 15. A microcontroller that can operate with a minimal number of external components in accordance with claim 13 wherein said second voltage modifying means comprises means for sampling said oscillatory signal upon switching of said flip flop from said second logic level to said first logic level.
- 16. A microcontroller that can operate with a minimal number of external components in accordance with claim 13 wherein said means for holding said signal transferred to and from said at least one I/O pin at a desired level comprises:
- a first inverter having an input coupled to said at least one I/O pin; and
- a second inverter having an input coupled to an output of said first inverter and an output coupled to said input of said first inverter.
- 17. A microcontroller that can operate with a minimal number of external components in accordance with claim 13 wherein said means for holding said signal transferred to and from said at least one I/O pin at a desired level comprises:
- a PMOS transistor;
- an NMOS transistor coupled to said PMOS transistor;
- an inverter having an input coupled to a gate of said PMOS transistor and an output coupled to a gate of said NMOS transistor; and
- memory bit means coupled to said input of said inverter for storing data to activate and deactivate said PMOS and said NMOS transistor.
RELATED APPLICATIONS
This patent application is related to pending U.S. patent application entitled "ACCURATE RC OSCILLATOR," having a application Ser. No. 08/499,602 now U.S. Pat. No. 5,565,819 and a filing data of Jul. 7, 1995, in the name of Russell E. Cooper as inventor, and assigned to the same assignee, and U.S. patent application entitled "INTEGRATED CIRCUIT PINS CONFIGURABLE AS A CLOCK INPUT PIN OR AS AN I/O PIN AND AS A DEVICE RESET PIN OR AS AN I/O PIN AND METHOD THEREFORE" in the name of Hull Et Al. as inventor, and assigned to the same assignee as this Application. The disclosures of the above referenced applications are hereby incorporated by reference into this application.
Foreign Referenced Citations (2)
Number |
Date |
Country |
403284122 |
Dec 1991 |
JPX |
094024762 |
Oct 1994 |
WOX |