Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

stimulus for AD converter using MPLAB SIM

Status
Not open for further replies.

PA3040

Advanced Member level 3
Joined
Aug 1, 2011
Messages
883
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,936
Dear All,
Can I have advice for how stimulus for AD converter using MPLAB SIM. my MCU is 16f877a
 

Here are a few documents outlining the use of stimulus in MPLAB SIM. There are examples of a ADC register injection.



**broken link removed**

You'll basically need to create a file, "adcstimulus.txt" which contain datum representing the register values of the ADC which SIM will consecutively load into your simulation.
 
  • Like
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
Once I tried to simulate the AD converter also.
What I did is to open the stimulus window, and put direct the value I wanted in the register (ADCBUF or something lke this).. I don't know if it's sufficient for you, but works..
 

Dear bigdog

Thanks you so much for reply. It is little hard to understand. Can you kindly provide a video link related to ADC stimulus using MPLAB SIM?
 

HI PA3040,

Checkout these videos, they may have an example of stimulus:

Introduction to the MPLAB SIM Software Simulator Part 1 of 2


Introduction to the MPLAB SIM Software Simulator Part 2 of 2


BigDog
 

Here is what the "Readme for MPLAB SIM.htm" says:

Stimulus Control Language (SCL) is used for controlling the synchronous stimulation of the application under test. An SCL Generator component (dialog) is provided for automatically generating SCL stimulus programs, which can then be attached to the simulation session. A separate Stimulus Control component (dialog) also supports generation of asynchronous stimulus, which may be used independently of, or in conjunction with, the synchronous stimulus.

MPLAB's Help will assist you in the usage of SCL.
"Select Debugger>Stimulus Controller and then click the Pin Stimulus tab."

http://ww1.microchip.com/downloads/en/devicedoc/51025e.pdf

check this video tutorial
**broken link removed**

---------- Post added at 10:49 ---------- Previous post was at 10:47 ----------

**broken link removed**
 

    V

    Points: 2
    Helpful Answer Positive Rating
Dear ckshivaram,

Thanks you very much for your reply
As per MPLAB simulator user guide, Asynchronous Stimulus Dialog box can't see in my MPLAB IDE (V8.53) (see photo)
Can I have an advice on this View attachment 60477
 

Attachments

  • Stimulus.JPG
    Stimulus.JPG
    48.7 KB · Views: 154
Last edited:

Dear Bigdog,

Can't see your post, I don't know whether it is my problem and let me chance to thank you
 

Unfortunately, the MPLAB SIM User Guide is outdated, circa 2003.

Many of the features shown throughout the guide are now incorporated into the "Stimulus Workbook."

Debugger->Stimulus->New Workbook

Once the workbook dialog box opens, view the various tabs, Asynch, Pin/Register Actions, Advanced Pin/Register Actions, etc.

The Asynch and Pin/Register Actions has replaced the dialog box shown in your photo.

For more up to date information concerning MPLAB SIM, Help->Topics...->Debuggers:MPLAB SIM hit OK

There you will find the method to toggle pin levels using the current version of MPLAB SIM.

BigDog
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top