Saturday 18 January 2014

HOW TO USE BUS IN PROTEUS

You're already familiar with Proteus and its usage. It's really interesting to simulate your circuit before hardware implementation because it's just a matter of few clicks here and there before you can see the output. Sometimes there are too many connections in your circuit which kind of looks ugly. This article is about using BUS WIRE in Proteus which saves you some space in the design area and the circuit also looks presentable rather than a mess of connections.


USING BUS IN PROTEUS

Bus is simply a common highway for all the connections. From our Proteus Point of View, consider the following connection diagram ( which is actually Seven Segment Interface

Seven Segment Connection Diagram
SEVEN SEGMENT CONNECTION DIAGRAM

Although it's not much of a mess but let's assume that we don't like it this way and want to make it more decent. How about this one?

Seven Segment Connection Using BUS
SEVEN SEGMENT CONNECTION USING BUS

The second one looks cool and decent. It also gives you more space for placing additional components. Here is how you can place a BUS WIRE in Proteus. I will explain using a simple example.

  • Consider the following components which we want to connect through BUS
Placing Components
PLACING COMPONENTS
  • From the left menu, click this icon to select BUS
Selecting BUS
SELECTING BUS
  • Place the BUS according to requirements
Placing BUS
PLACING BUS
  • Connect all the related components to the bus
Connecting Components
CONNECTING COMPONENTS
  • Next you need to label every wire for identification. Right-Click the wire and select Place Wire Label 
Selecting Label Option
SELECTING LABEL OPTION
  • Give a name (label) to this wire which can be anything.
Giving Label
GIVING LABEL
  • The wire is now labelled as shown
Label Success
LABEL SUCCESS
  • To connect this LED with the first button, repeat the same process for the wire connected to that button. Label must be the same
Connection Success
CONNECTION SUCCESS
  • The LED (D1) is now connected to the first button. Similarly you can connect LED (D2) with the second button as shown.
Connecting Second LED
CONNECTING SECOND LED

The LEDs are now connected to the corresponding buttons and you can use them accordingly. We can summarize the above procedure in the following steps

  • Place a BUS
  • Connect all components
  • Give a unique label to each wire (which must be same at both ends of the connection) 
It is important to note that a connection won't work if you use different labels. Furthermore, you can also hide the labels for more beautification. Just right-click the wire and select Hide All Wire Labels. Thus we can have

Hiding Labels
HIDING LABELS

I hope this article helps you in simplifying your Proteus Design file. Don't forget to leave your feedback and share this post if you liked it. 

13 comments:

  1. thank you..

    ReplyDelete
  2. Sir I need your help in interfacing SD Card with 8051. Can u please guide me.

    ReplyDelete
    Replies
    1. Which variant of 8051 are you using?

      Delete
    2. Sir i have been given a major project on this topic. I know the basics of 8051 and a little basic coding. I need your help for further commencements.

      Delete
    3. If you know the basics, just get started and I'm sure you'll get somewhere.

      The SD card normally uses 3.3V so you should take that into consideration.

      Then there is "SD mode" and "SPI mode". I am sure you'll opt for SPI mode.

      Then it's all about the code that you write.

      Delete
    4. Sir i just need your help in code.
      from where to begin? wha to include/ thats all.. as i m a beginner...

      Delete
    5. You don't have to include anything. You need to write code for communication though SPI channel. Then you need to follow the protocol (commands) for the SD card and exchange data.

      Delete
    6. thats exactly i need to know how i have to code for tht SPI mode? can u please help?

      Delete
    7. Read about the SPI protocol. Follow the data sheet of your microncontroller and learn about pins dedicated to SPI. To make things easier, search the libraries available for your microcontroller to utilize SPI channel.

      Normally, you just need to initialize the channel and then communicate whenever you want.

      Delete
  3. sir any class of 8051 which has SPI Mode, like AT89S52.

    ReplyDelete