The included models in LTSpice do not include reverse breakdown. In order to model the reverse breakdown "vrev" can be specified in the diode model. For this example, create a new schematic and call the diode "mydiode". Insert the .model directive to add the reverse breakdown. Below, I used all the standard parameters for the 1N4148 and added vrev=50. The vrev specifies the reverse breakdown at -50V. Many other diode properties can be defined in the model including the non-linear characteristics of the breakdown.
Forward and reverse breakdown and current limitations can be modeled by using a more sophisticated model. Using the model below, forward and reverse current limiting can be observed.
Simulating operational amplifiers in LTSpice using non-ideal characteristics is desirable for students to understand op amp AC and DC limitations. Many student projects require the use of the classic LM741 op amp. The following steps can be followed to get the LM741 model into LTSpice for simulation.
Step 1: Obtain the spice model for the LM741 (see complete model below)
Step 2: Copy this model into the LTSpice sub directory. The file must be given a *.sub extension and not a *.txt extension. Make sure to save the file as “all file types” with the .sub extension. Save the file as LM741.sub. The directory is typically: C:\Program Files\LTC\LTspiceIV\lib\sub
Step 3: Start up LTSpice, insert the op amp2 component. Right click on the symbol and change the value to LM741.
Step 4: Add the spice directive to the schematic using the .op. Add “.lib LM741.sub” to the schematic.
Step 5: You are now ready to run simulations with the LM741.
Spice model below:
*//////////////////////////////////////////////////////////////////////
* (C) National Semiconductor, Inc.
* Models developed and under copyright by:
* National Semiconductor, Inc.
*/////////////////////////////////////////////////////////////////////
* Legal Notice: This material is intended for free software support.
* The file may be copied, and distributed; however, reselling the
* material is illegal
*////////////////////////////////////////////////////////////////////
* For ordering or technical information on these models, contact:
* National Semiconductor's Customer Response Center
* 7:00 A.M.--7:00 P.M. U.S. Central Time
* (800) 272-9959
* For Applications support, contact the Internet address:
* amps-apps@galaxy.nsc.com
It's often useful to have a flashing LED in embedded systems to verify the system is 'running' and healthy. I coded up a 500ms heartbeat using the Motorolla 68HCS12 in C. See below.
#include "vectors12.h" #include "ioregs12.h" #include "bits.h" // custom header containing bit values in hex
It's 40 year old technology, but it still pretty cool and complex. I'm working to realize the PDP-8 minicomputer from the early 70s using an FPGA. Stay tuned for progress updates!
I designed a state machine controller using VHDL. This state machine implemented a parallel adder and multiplier with overflow capability. This project used the Nexys2 board from Digilent. I used Xilinx ISE for the coding and Modelsim for the simulation. For a full report see "Adder / Multiplier in VHDL" under papers.