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.

two microcontroller communication in proteus

Status
Not open for further replies.

rameshrai

Full Member level 3
Full Member level 3
Joined
Aug 16, 2010
Messages
158
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
appliedelectronicsengineering.blogspot.com
Activity points
2,272
Hi,

I have two microcontroller in one schematic in proteus, one for transmit and one for receive. I have two asm code for each microcontroller. I uploaded them to each microcontroller. But the simulation does not work. Attached is the schematic.

How do i correctly insert the asm file in each microcontroller. One thing- when I go to the transmit microcontroller >edit firmware and enter the code for transmit microcontroller and thereafter receive microcontroller >edit firmware it ask me to whether I want to overwrite the main.asm because transmit microcontroller has the same name(main.asm). I tried to change the name too but did not work.

Can anybody tell me how to enter each microcontroller code correctly?

thanks
 

Attachments

  • pic.png
    pic.png
    203.6 KB · Views: 184

DIP SW connection is wrong.

Connect one end of 10k resistors to +5V and other ends to DIP SW and also to uC input pins. Connect other end of DIP SW to GND. Post code of both PICs.

If internal pullup resistors are used then no need for 10k resistors.
 
thanks jayanath you were right the DIPSW connection was wrong. I still have confusion on how to program the two microcontroller. I loaded the two microcontroller with 2 different standalone hex code and it worked. But if I use the edit firmware option and first insert code into one MC(transmit) and thereafter enter code into another MC(receive) I get two main.asm and the soft ask me whether i wanted to overwrite(because of same main.asm). How to solve this problem?

looking forward for reply,
thanks
 

You have to create 2 different projects. One for Transmitter PIC and one for receiver PIC. You need a Compiler and compile the code to get two .hex files. You need to load .hex files and not .asm files in Proteus or real hardware.
 
hi,

thank you for clarifying these things to me

one more thing. does proteus generate hex file? i see only .cof, .o etc but no .hex. if proteus doesn't produce .hex file then why there is a compiler option popup when we click on edit firmware?

thanks
 

Use can use Compilers with Proteus 8. hex file is generated. look in the project folder. Proteus use hex file for simulation and .cof file for debugging. Proteus doesn't produce any hex file. The Compiler used from within Proteus generates the hex, cof, etc... files.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top