Microcontroller Unit Co-Simulation for SPICE-Based Circuits in NI Multisim
Description: National Instruments Multisim now features microcontroller unit co-simulation capabilities, enabling the inclusion of a microcontroller, programmed in assembly or C code, within SPICE-modeled circuits. The MCU functionality in Multisim allows students, educators, and professional users to program MCUs in assembly or C language within the familiar Multisim environment. The MCU capability can be utilized with any of Multisim's virtual instruments for complete system simulation, incorporating the microcontroller and all connected analog and digital SPICE components. The MCU Module supports Intel®/Atmel® 8051/8052 and Microchip PIC16F84A chips, along with a wide range of advanced peripherals like external RAM and ROM, keypads, graphical and alphanumeric LCDs, and others. The MCU Module leverages the Multisim educational platform, making it ideal for courses in digital electronics, computer architecture, MCU programming, embedded control, senior design, and more. The attached archive contains all necessary files to complete this tutorial. This tutorial demonstrates how to create an MCU Module project from scratch, excluding source files. The MCU project featured in this tutorial utilizes a PIC16F84 from Microchip to illustrate a simple up and down counter. Port A of the microcontroller is configured for input and connected to two switches, while Port B is set up as output and linked to a 7-segment display. The switches control the display's activation and alter the counting direction. The 7-segment display indicates the current counter value (0-F). This MCU Module example comprises two identical projects: one built with assembly and the other with C code. The following components are required to complete the circuit as illustrated. All components can be utilized with their default settings. To view the default settings, right-click on any component and select properties. An MCU Module workspace can contain multiple projects that may consist of assembly or C code source files. To repeat the outlined steps, designate the project "C Code Project" as the active MCU project.
The integration of microcontroller units (MCUs) within the National Instruments Multisim environment enhances the simulation capabilities for both educational and professional applications. This feature allows users to seamlessly incorporate MCUs into their circuit designs, facilitating a comprehensive understanding of embedded systems and digital electronics. The support for popular microcontroller architectures, such as the Intel®/Atmel® 8051/8052 and Microchip PIC16F84A, broadens the scope for users to experiment with a variety of applications and peripherals.
In the context of the provided tutorial, the project exemplifies a fundamental application of the PIC16F84A microcontroller, demonstrating its functionality through a simple counter mechanism. The configuration of Port A as an input interface connected to two switches allows for user interaction, while Port B's output configuration to a 7-segment display provides a visual representation of the counting process. This setup not only illustrates basic input/output operations but also serves as a platform for students to learn about programming techniques in both assembly and C languages.
The MCU Module's design supports a modular approach, where multiple projects can coexist within a single workspace, allowing for comparative analysis between different programming methodologies. The ability to switch between assembly and C code projects further enriches the learning experience, enabling users to appreciate the nuances and efficiencies of each programming paradigm. The detailed instructions provided in the tutorial ensure that users can replicate the project effectively, fostering hands-on learning and practical skills in microcontroller programming and circuit design.National Instruments Multisim now has microcontroller unit co-simulation capabilities, allowing you to include a microcontroller, programmed in assembly or C code, within your SPICE modeled circuit. The MCU functionality in Multisim enables students, educators and professional users to program MCU`s in assembly or C language within the familiar Multisim environment.
The MCU capability can be used with any of Multisim`s virtual instruments for a complete system simulation, including the microcontroller and all connected analog and digital SPICE components. The MCU Module supports Intel ®/Atmel ® 8051/8052 and Microchip PIC16F84a chips as well as a broad range of advanced peripherals like external RAM and ROM, keypads, graphical and alphanumeric LCDs and others.
The MCU Module takes full advantage of the Multisim educational platform which makes it the ideal choice for courses such as digital electronics, computer architecture, MCU programming, embedded control, senior design and more! The attached archive contains all files necessary to complete this tutorial. However, this tutorial is showing how to create an MCU Module project from scratch, with the exception of source files.
The MCU project used in this tutorial uses a PIC16F84 from Microchip to demonstrate a simple up and down counter. Port A of the microcontroller is configured for input and connected to two switches. Port B is configured as output and connected to a 7-segment displays. The switches are used to turn the display on and off and change counting direction. The 7-segment display shows the current counter value (0-F). This MCU Module example consists of two identical projects. One build with assembly and one with C code. Use the following components to complete the circuit as shown below. All components can be used with their default settings. If you like to view the default settings, right click on any component and select properties. A MCU Module workspace can have multiple projects that can consists of assembly or C code source files.
If you like to repeat the steps above, set the project C Code Project as active MCU project.
For the other components, most of the necessary items should be available if any type of electronics work has been done, except for the programmer, RS232 chip, and PIC. To transfer information from the project to the PC, a USB...
Acquire all the components required for this lecture here. It is highly recommended to obtain a multimeter with a continuity setting. A quality multimeter with this feature typically costs around $60, while premium models can reach $300. The $60 option...
Embedded system design engineers create examples of their work from the 1990s era.
Embedded systems have evolved significantly since the 1990s, and the design work from that period reflects the technological limitations and innovations of the time. Engineers in this field...
NI Multisim software provides advanced virtual instruments and analysis tools that enhance the understanding of circuit designs. One such tool, the measurement probe, acts as a functional interface for observing circuit characteristics and customizing the simulation process within Multisim.
With...
When designing an offline boost-mode switching power supply, the objective was to model the power transformer to simulate inrush current and other startup behaviors. After conducting research and engaging in discussions on platforms like Google Groups and DIYAudio, as well...
The Skeyeball project is an ongoing initiative within the Indiana University System Design Methods Laboratory, aimed at providing graduate and undergraduate students with opportunities to engage in embedded system design and implement various projects. The downlink segment of the project...
Multisim is circuit simulation software based on SPICE, which stands for Simulation Program with Integrated Circuit Emphasis. Developed in 1975 at the University of California, Berkeley, it focuses on simulating integrated circuits. In Multisim 9, the MultiMCU module must be...
To simulate this circuit, NI Multisim produced by National Instruments is required. The oscillator will generate a stable waveform. If a file needs to be saved, navigate to the source code. It is important to use Multisim version 11. Understanding...
SPICE is the most commonly used analog circuit simulator today and is enormously important for the electronics industry. SPICE is a general purpose analog simulator which contains models for most circuit elements and can handle complex nonlinear circuits. AIM-Spice is...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more