02-22-2012 05:44 AM
Hi, I am using the 8051 MCU in Multisim and am attempting to demonstrate the relationship between machine cycles and the 8051's clock signal. The problem I am having is that with the 8051 MCU internal oscillator set to 12MHz (done in the MCU Multisim model itself) it appears that it is not possible to trigger a logic analyser with the 8051's 12MHz clock and as a result the time associated with a machine cycle (ie. 12 clock cycles or 1us) is not accurate (when measured with a logic analyser instrument). Maybe there is something simple that I am missing here, but is it possible to disable the internal oscillator in the 8051 Multisim model so that the device is driven by an external oscillator circuit, or alternatively, is there any way in which the 8051 internal 12MHz oscillator/clock signal can be accessed in order to allow it to be used to trigger the logic analyser. In effect, I wish to be able to show that 1 machine cycle corresponds to 12 cycles of the 8051's clock signal (assuming that the model uses 12 cycles and not a variant model with a lesser cycle count). Any help on this would be greatly appreciated. Thanks
03-07-2012 02:59 PM
Hi Jipper,
IF your code causes one of an output pin to toggle between high and low, you can connect that pin to the scope and roughly verify that 1 machine cycle is 12 cycles. Unfortunately, you won't be able to trigger the logic analyzer with the internal MCU clock.
03-19-2012 01:45 AM
hi........, from sample file "CALCULATOR" in multisim 11.0, I copy and paste that circuit on the other side in workspace. and then i run the duplicate circuit. why the duplicate circuit can not work normal and the real circuit can work normal. ( the circuit using MCU 8051)???,