I was wondering how I can simulate microcontrollers. I am trying to make a simple "switching" circuit that basically lets users push buttons to call up presets that will switch between different "devices" and I figured that I would use a pic to do it. Unfortunately I have virtually no experience with any electronic stuff and I've just been playing around with EW Design Suite with flip flops and stuff to get an idea about what I need to do. From a little research I figure that I can do all the controlling with a pic with enough I/O lines and just do the switching and selecting in the software... the problem is I can't figure out how to put code in Design Stuite when I put down a MCU. I'm not sure if DS supports this or not but I have found several other pieces of software that either just simulate the chip itself and has a IDE for the code(but doesn't seem to simulate the electrical circuit aspect) or they just do the electrical circuits but not the code. I looked on EW's site and they had something called MultiMCU that interfaces with DS and does seem to do what I want but I'm not completely sure... and I'm definately looking for something that is free so I can play around with it and use it to learn.
Any ideas? Or am I just going to have to purchase some hardware and a programmer and do it that way? I'd rather use software simulation as I'm much more comfortable because I can't really screw anything up.
Anyways, I'll give my idea since its pretty simple and might shed some light on what I actually need(I know I probably don't need to simulate anything to do it since its pretty simple but I'd like to be able to play around without any fear of screwing up the chip by accident).
I'll have N buttons that will select "presets". I'll need the ability to store the presents in memory.
B1 -- |-----| --- DEVICE line 1 ... | MCU | ... BN -- |-----| --- DEVICE line M
So basicaly I have a Device which has M lines and I want to just select combinations of those lines (so I have M! possible combinations to choose from but only N buttons(4 probably) will be selectable(or maybe I'll use some bank method to get a few more)).
So, say for example, B3 might have been configured by the user to select some preset that turns "on" lines 3, 6, and 8 and B4 might turn on lines 1,
2, and 3. I figure its pretty easy to do in the software but since its actually a little more complex than that I'd like to simulate the other parts of the circuit along with the MCU. In actuality I need to debounce the switches(They are just momentary switches) and the Device lines are actually analog lines so the MCU will control switches that switch on certain analog line combinations.Also, I was wondering how much does it cost to fabricate this stuff "professionally"? Right now basicaly what I have done is to use dip switches to select different combinations of the DEVICE lines above... my goal is to make it much easier by just using a few switches(maybe I can just get away with one or two too and just use a button to cycle through the presets instead... maybe not)). For my application I am limited in size(the smaller the better) and the analog signals that it will control cannot be in any significant way be degraded. I'd like to put this in a small package and potentially sale it if I can find someone to buy it(not sure if theres a market for it but I'm sure a few people will buy it if its done right)... although its mainly just a stepping stone into learning more about electronics as I've always been wanting to get into it(and I've taken a few courses in EE).
Thanks for any help, AD