05-19-2008 07:49 PM
05-20-2008 02:00 AM
05-20-2008 05:43 PM
I didn't realize you from a different country. I keep forgetting that Multisim is international as well as this forum. I will wait and see what response I get from them here in the U.S. If they don't understand what I am getting at in that e-mail then I will get back with you and see what you can make of it since you are familiar with what we are discussing.
Thanks for you help and I will get back with you if it is necessary.
05-22-2008 02:35 AM
05-22-2008 06:09 PM
Hi there tweetysat.
It has really nothing to do with your code. It would work with your code as is, but you need to tie a resistor of 600 ohms from VCC to the junction of the LED Anode and the port pin. This is what he done. The only code change he made was in order to used a port pin as an input and tie a switch to it to turn the LED on or off.
PortA does not have pull-up resistors so one must be tied in to provide the power necessary to activate the LED. PortB on the other hand does have pullup resistors already there and nothing else is require to make use of them. It would seem to me that PortA was inteded to be used for input while PortB was intended for use as output even though they can be used for either. This is the way I see it and I have been known to be wrong on occasion.
Let me know if any further assistance is required and I will see what I can do.
05-27-2008 02:34 AM
05-27-2008 03:00 AM
05-27-2008 03:09 AM
05-27-2008 03:41 AM
05-27-2008 04:42 PM
Hi Joris D.
I think I understand what he is getting at here. Apparently he has built his original circuit and it worked without the pull-up resistor on the LED. Also he has tried the same circuit and code in Proteus and it works without the resistor. So one of 2 things is happening: Either both the real circuit and Proteus are giving the wrong results or Multisim 10 is giving the wrong results.
I believe this to be what he is asking at this point. Since I haven't built the circut nor do I have Proteus I can not comment on what is actually taking place here. It is worth investigating, because if Multisim is somehow incorrect in its results then that will have to be put on the fix list.