mame/nl_examples/sn74ls629_osc.c

34 lines
495 B
C

// license:GPL-2.0+
// copyright-holders:Couriersud
/*
* ne555_astable.c
*
*/
#include "netlist/devices/net_lib.h"
NETLIST_START(ls629)
/*
* Astable ne555
*
*/
/* Standard stuff */
SOLVER(Solver, 48000)
ANALOG_INPUT(V5, 5) // 5V
ANALOG_INPUT(VF, 2.5) // 5V
ANALOG_INPUT(VR, 5) // 5V
SN74LS629(OSC, 0.022e-6)
NET_C(GND, OSC.GND)
NET_C(VR, OSC.RNG)
NET_C(VF, OSC.FC)
NET_C(GND, OSC.ENQ)
LOG(log2, OSC.Y)
NETLIST_END()