diff options
Diffstat (limited to 'src/lib/netlist/devices/nld_ne555.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_ne555.cpp | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/lib/netlist/devices/nld_ne555.cpp b/src/lib/netlist/devices/nld_ne555.cpp index 25ef0998d23..2175ae2c7f5 100644 --- a/src/lib/netlist/devices/nld_ne555.cpp +++ b/src/lib/netlist/devices/nld_ne555.cpp @@ -1,58 +1,6 @@ // license:GPL-2.0+ // copyright-holders:Couriersud -//- Identifier: NE555_DIP -//- Title: NE555 PRECISION TIMERS -//- Description: -//- These devices are precision timing circuits capable of producing accurate -//- time delays or oscillation. In the time-delay or monostable mode of -//- operation, the timed interval is controlled by a single external resistor -//- and capacitor network. In the astable mode of operation, the frequency and -//- duty cycle can be controlled independently with two external resistors and -//- a single external capacitor. -//- -//- The threshold and trigger levels normally are two-thirds and one-third, -//- respectively, of V CC. These levels can be altered by use of the -//- control-voltage terminal. When the trigger input falls below the trigger -//- level, the flip-flop is set and NC – No internal connection the output -//- goes high. If the trigger input is above the trigger level and the -//- threshold input is above the threshold level, the flip-flop is reset and -//- the output is low. The reset (RESET) input can override all other -//- inputs and can be used to initiate a new timing cycle. When RESET goes -//- low, the flip-flop is reset and the output goes low. When the output is low, -//- a low-impedance path is provided between discharge (DISCH) and ground. -//- -//- The output circuit is capable of sinking or sourcing current up to 200 mA. -//- Operation is specified for supplies of 5 V to 15 V. With a 5-V supply, -//- output levels are compatible with TTL inputs. -//- -//- The NE555 is characterized for operation from 0°C to 70°C. The SA555 is -//- characterized for operation from –40°C to 85°C. The SE555 is characterized -//- for operation over the full military range of –55°C to 125°C. -//- -//- Pinalias: GND,TRIG,OUT,RESET,CONT,THRES,DISCH,VCC -//- Package: DIP -//- NamingConvention: Naming conventions follow Texas instrument datasheet -//- Limitations: Internal resistor network currently fixed to 5k -//- If TRIG and TRESH are connected overshoot compensation will be enabled. -//- The approach is raw but delivers results (at 5 to 10 steps per discharge/charge) -//- within a couple of percent. Please take into account that any datasheet -//- formulas are idealistic. Neither capacitor, resistor, internal resistor -//- tolerances are taken into account. Nor are ambient temperature and chip -//- temperature. Thus the result is considered acceptable. -//- The datasheet states a maximum discharge of 200mA, this is not modelled -//- Instead an impedance of 1 Ohm is used. -//- -//- Example: ne555_astable.c,ne555_example -//- FunctionTable: -//- -//- |RESET|TRIGGER VOLTAGE|THRESHOLD VOLTAGE|OUTPUT|DISCHARGE SWITCH| -//- |:---:|:-------------:|:---------------:|:----:|:--------------:| -//- |Low | Irrelevant | Irrelevant | Low | On | -//- |High | <1/3 VDD | Irrelevant | High | Off | -//- |High | >1/3 VDD | >2/3 VDD | Low | On | -//- |High | >1/3 VDD | <2/3 VDD | As previously established|| -//- #include "nld_ne555.h" #include "netlist/analog/nlid_twoterm.h" @@ -211,32 +159,8 @@ namespace netlist } }; - NETLIB_OBJECT(NE555_dip) - { - NETLIB_CONSTRUCTOR(NE555_dip) - , A(*this, "A") - { - register_subalias("1", "A.GND"); // Pin 1 - register_subalias("2", "A.TRIG"); // Pin 2 - register_subalias("3", "A.OUT"); // Pin 3 - register_subalias("4", "A.RESET"); // Pin 4 - register_subalias("5", "A.CONT"); // Pin 5 - register_subalias("6", "A.THRESH"); // Pin 6 - register_subalias("7", "A.DISCH"); // Pin 7 - register_subalias("8", "A.VCC"); // Pin 8 - } - // FIXME: R_base needs to be removed from the code base - // The reset on R_Base executed after NE555 reset will - // overwrite values. - NETLIB_RESETI() { A.reset(); } - private: - NETLIB_SUB(NE555) A; - }; - NETLIB_DEVICE_IMPL(NE555, "NE555", "") - NETLIB_DEVICE_IMPL(NE555_dip, "NE555_DIP", "") NETLIB_DEVICE_IMPL_ALIAS(MC1455P, NE555, "MC1455P", "") - NETLIB_DEVICE_IMPL_ALIAS(MC1455P_dip, NE555_dip, "MC1455P_DIP", "") } //namespace devices } // namespace netlist |