Previous in Forum: Problem in Data Read/Write on Servo Drives in RS232/485 Communication   Next in Forum: VHF Transceiver Crystals
Close
Close
Close
14 comments
Rate Comments: Nested
Commentator

Join Date: Aug 2013
Posts: 62

Software For Micro-Controller Circuit Simulation

09/17/2013 9:33 PM

I am actually a mechanical engineer having some basic knowledge about electronics.

I have a circuit that is remote controlled. It uses a micro-controller. I need to know whether any software is available that can help me simulate the working of the circuit. What I need is a software in which-

1. I can program the 'virtual' micro-controller

2. Select the required components from the software library (the way Eagle CAD has) and connect according to my circuit.

3. Give the necessary inputs to study the output

I have made the circuit on breadboard but I am not sure about my program (whether its correct or not). So, if I could simulate the circuit in some software, it will be easier to check my program according to the desired output.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Popular Science - Weaponology - New Member Netherlands - Member - New Member Fans of Old Computers - Commodore 64 - New Member

Join Date: Sep 2007
Location: Japan
Posts: 2703
Good Answers: 38
#1

Re: Software for micro-controller circuit simulation

09/17/2013 9:38 PM

Usually the micro-controller's software for writing the MCU has an emulation option, check with the micro-controllers supplier.

__________________
From the Movie "The Big Lebowski" Don't pee on the carpet man!
Register to Reply Score 1 for Good Answer
Commentator

Join Date: Aug 2013
Posts: 62
#2
In reply to #1

Re: Software for micro-controller circuit simulation

09/17/2013 10:38 PM

Well, my micro-controller is Atmel AT89C2051. The programming software provided by Atmel is Keil. But, I think that emulator will simulate only the micro-controller IC. I want to simulate my whole circuit (Micro-controller plus all other ICs, components in total). Will it be possbile?

Register to Reply
Guru

Join Date: Jun 2010
Posts: 1296
Good Answers: 104
#5
In reply to #2

Re: Software for micro-controller circuit simulation

09/18/2013 10:28 AM

Have you looked at this? http://123d.circuits.io/ It simulates circuits using the Arduino board, which uses an Atmel microcontroller (maybe not Keil, though).

Register to Reply
Commentator

Join Date: Aug 2013
Posts: 62
#8
In reply to #5

Re: Software for micro-controller circuit simulation

09/19/2013 1:01 AM

I have gone through the site briefly. Looks possible... will update my progress..

Register to Reply
Guru
Popular Science - Weaponology - New Member Netherlands - Member - New Member Fans of Old Computers - Commodore 64 - New Member

Join Date: Sep 2007
Location: Japan
Posts: 2703
Good Answers: 38
#3

Re: Software for micro-controller circuit simulation

09/18/2013 4:31 AM

Well there is spice, but that excludes microcontrollers because an MCU needs software. I am not aware of a package that can do both

__________________
From the Movie "The Big Lebowski" Don't pee on the carpet man!
Register to Reply
Guru

Join Date: Feb 2012
Posts: 595
#9
In reply to #3

Re: Software for micro-controller circuit simulation

09/20/2013 4:28 AM

not shure but the spice may be capable of ""embedding"" a "software MC" - there're are a lot of undocumented-s (like with everything) - however not like a real time solution

__________________
ci139
Register to Reply
Guru
Engineering Fields - Power Engineering - New Member

Join Date: May 2007
Location: NYC metropolitan area.
Posts: 3230
Good Answers: 444
#10
In reply to #9

Re: Software for micro-controller circuit simulation

09/20/2013 1:28 PM

?

__________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.” Ben Franklin.
Register to Reply
Guru

Join Date: Feb 2012
Posts: 595
#11
In reply to #10

Re: Software for micro-controller circuit simulation

09/21/2013 7:20 AM

Here's what we could quickly find:

https://www.edaboard.com/thread142843.html

__________________
ci139
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#4

Re: Software for micro-controller circuit simulation

09/18/2013 4:47 AM

Many years ago, in the last century in fact, a 3-week project to develop tight temperature control on a modified existing plant was launched. While a Mechanical Engineer installed the equipment, the Controls Engineer built a mathematical model of the process and its PID controller, ran the model and tuned the controller on the model. The PID terms were then extracted from the model, plugged into the real controller at the same values, and the plant switched on. It worked correctly first time.

The model was built on an early Apple II desktop computer running the programming language BASIC.

So, of course it can be done; the vehicle to get there is irrelevant. Just go for it.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Participant

Join Date: Apr 2011
Posts: 2
#6

Re: Software For Micro-Controller Circuit Simulation

09/18/2013 11:53 PM

LabView provides a module to simulate your PCB including C language programming of your chip. I hope it helps

Register to Reply
Commentator

Join Date: Aug 2013
Posts: 62
#7
In reply to #6

Re: Software For Micro-Controller Circuit Simulation

09/19/2013 12:58 AM

Okay, I will check it out...

Register to Reply
Commentator

Join Date: Aug 2013
Posts: 62
#12

Re: Software For Micro-Controller Circuit Simulation

09/21/2013 8:52 AM

Well, some people have suggested me matlab-simulink can do that. I have put up a query on mathworks. Still awaiting its reply. Anybody working in simulink, please shed some light on this matter....

Register to Reply
Member

Join Date: Nov 2013
Location: The North
Posts: 6
#13

Re: Software For Micro-Controller Circuit Simulation

11/12/2013 6:09 PM

I believe the SDCC compiler now has an associated simulator for the 8052 series of microcontrollers (like you are using) - although it won't simulate your external circuit. It could be handy to pick up "programme" bugs (like memory corruption, overflows etc) though, even if it wouldn't help with "logical" bugs in the way your programme interfaces to the outside world.

If your circuit is simple enough to breadboard, and you can arrange an easy way of programming in-system without pulling the prototype apart, I think I'd prefer to do it all in real hardware. I use the S version of this chip (programmed by SPI), and try to make the ISP pins the last ones I use so I can always re-programme in system. Being a terrible programmer, I do this a lot...

__________________
Don't Fear the Repair
Register to Reply
Guru

Join Date: Feb 2012
Posts: 595
#14

Re: Software For Micro-Controller Circuit Simulation

11/14/2013 7:11 PM

there is http://www.edaboard.com/thread111002.html , the PCB RFI is a nightmare (by what i've read - and i don't do practical RF designs)

__________________
ci139
Register to Reply
Register to Reply 14 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

bigg (1); ci139 (3); coyotejr83 (1); dreamz (4); Epke (2); PWSlack (1); RAMConsult (1); tomizett (1)

Previous in Forum: Problem in Data Read/Write on Servo Drives in RS232/485 Communication   Next in Forum: VHF Transceiver Crystals

Advertisement