Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

mcu

Dear group

 

Shall i connect the osc. in the circuit for simulation to succeed?

My code is passed without no errors or warnings. But nothing happens when i run the simulation.

 

Thanks for help

mdarweesh@hotmail.com

0 Kudos
Message 1 of 4
(3,608 Views)

Please post your file so we can see the circuit you are trying to run.

 

To answer the first question, you do not need to connect an oscilloscope for the simulation to run.

Garret
Senior Software Developer
National Instruments
Circuit Design Community and Blog

If someone helped you, let them know. Mark as solved or give a kudo. 🙂
0 Kudos
Message 2 of 4
(3,592 Views)

Here is my .asm file

 

;using aliases, bit names and conditional loops

 

#DEFINE PAGE0 BCF STATUS,5

#DEFINE PAGE1 BSF STATUS,5

 

STATUS EQU $03

TRISB    EQU $06

PORTB   EQU $06

C          EQU  0

W         EQU  0

F          EQU  1

 

           ORG 4

           ORG 5

           CLRF PORTB

           PAGE1

           CLRF TRISB

           PAGE0

 

LOOP1   MOVL  1

             MOVWF PORTB

             BCF  STATUS,C

LOOP2   RLF PORTB,F

             BTFSS ,STATUS,C

             GOTO LOOP2

             GOTO LOOP1

             END

 

I draw the ct ,and connect the component very ell, then now error occured during the assymby process . But hen running the project nothing happened to the led.

  Is there anything going wrong?

Please help

 

 

 

0 Kudos
Message 3 of 4
(3,546 Views)

Hi Mamoud,

 

I don't know PIC assembly and archetecture and can't answer any specific questions. However, I can tell you that you do not need to connect any oscillator (crystal, ceramic, etc) or clock source to the clock pins of the MCU to simulate it in Multisim. The clock speed of the MCU is defined by setting it in the MCU properties page:

  1. Open the page with the MCU in your design
  2. Double click on the MCU
  3. Click on the Value tab. The clock speed is specified here.

 

Hope that helps.

Message Edited by yyao on 03-31-2010 10:16 AM
----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
0 Kudos
Message 4 of 4
(3,536 Views)