Circuit in Proteus with 4 errors

dl324

Joined Mar 30, 2015
18,363
Update; Here is my evolution; Its Not done yet.
When you save a template, you want to make sure you have the pins turned off so you won't see the boxes on the pins:
1634261262659.png
When you're associating pins, you don't have to save the template after each pin. You just need to save it when you're finished. That's when you want to turn the pins off. Make sure you save the .dwg file too, and make sure the name is correct.

If you want the display in Parts Center to be something other than the file name, use Tools -> Options -> Name Macro to give a more meaningful description. If you use an existing .dwg file to make a new macro, make sure you change the macro name or you'll have duplicates in Parts Center.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Check the root of the files and folders, I mark it with a red line. I can easily load and save directly in the Parts Centre inside the program, this way.
You can see the templates names as well there. I properly renamed those templates now.
1634261845302.png
I finally finished the skematic !!! youhoo... I start to learn this program now. Thats exactly what I wanted.
1634262231152.png
Now I have to build the macro out of this circuit, and finish the CD4510 IC.
Again, for me is was like a tutorial and I actually follow your diagram because its much more cleaner.
 

dl324

Joined Mar 30, 2015
18,363
You can use the arrow keys if you need finer control over object placement; like text or circles. If you have text with one or two characters, the editor will often give you the finger when you try to move it. If you're moving text for pin numbering, what I do is place them away from the macro box, edit them (I use cut and paste to make a row of them), then move the whole group (that is spaced approximately correctly to the symbol, then tweak individual text elements into the correct position

I've found it almost impossible to move small circles with the mouse. So I select them and use the arrow keys to move them.
1634262740435.png
You have to be careful about the pins. Even when they're not visible, they can get selected and moved. And you need to keep remembering to turn them off.

To keep track of macro versions, I put a date, version, and edit history in the file.

When you place a macro in a drawing, the drawing gets a copy. If you update a macro, it doesn't get updated in files where the old version was already used. Updating to new macros can be painful because all wires connected to it get deleted when you delete the component, so it's best to test well so you don't need to make a lot of edits.

With all of it's warts, it makes me wonder why I stuck with it. But I'm able to tolerate it's quirks; for the most part.
 

dl324

Joined Mar 30, 2015
18,363
If you use some sort of versioning, you can double click on macros that have been placed and be able to read the version and history.

You can even edit the macro, but that's not wise to do unless you're making changes to get something to work in your test file.

You can't cut and paste between different DW windows, but you can cut things in a window, then open another file, and then paste whatever you copied.

To reuse some or all of an existing template, open that file while you're in the template editor, then save it under the new name first thing to minimize the chances of accidentally overwriting something. It would be a good idea to use "save as" instead of save. If you use the save option, make sure you take note of the filename before saving.

When I'm making a lot of edits, I make backups of the files I'm working on so I can revert to an earlier version if I want to back out some edits (there's no undo). I also backup my custom macros so I can easily copy them to other computers (I use DW on multiple computers).
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Yah, good points on how to use the things in DW and you are a very tolerable man, using this tool, indeed.
You will LOVE Proteus, wait and see. I also have another VERY intuitive and VERY good eletronics software, but I didnt test it for logic circuits. Its called circuitjs and is fenomenal good, you probably seen my older screenshots from it, back in the past. I will give you that too, no problem, but try first this one you have already from me.
I discovered how to edit 1 character text, by inserting a large name, position it, and re-edit to its 1 character. But it is a bit away from the pin position, its not perfect placed. Ill have to fight to grab him.
I think your method adding multiple copy/paste and moving all at once to position, is pure genius!
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
What a piece of shi*t I made here, Hahaha
1634265071033.png
Ill have to change the order of those pins inside the macro, lucky me I save it.
I know very well about files and folders management in windows. Its a very good skill to have. And everything you said to me here I am completely agree.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
I recreated the Macro!
But I have a problem: "Unable to connect two outputs" when I attach Q4 to A3 of the Ram.
1634266641758.png
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
It doesnt work for me.
And I get the "Unable to connect two outputs" when I connect U/D pin to a button, like in your circuit.
BAH...
Now I changed to ROM memory, before I was using RAM. Now I have no errors connecting Q4 to A3 as shown.
I also programmed the memory as well - yay.
How can I see something run?
1634267089632.png1634267271822.png

I am checking my circuit for mistakes. I find a mistake:
It was 1634268058045.png and replaced it with this now 1634267991339.png
 
Last edited:

Thread Starter

q12x

Joined Sep 25, 2015
2,227
I packed all my work in this zip.
Please take a look over it and see if you find the mistake.
Thank you.
 

Attachments

dl324

Joined Mar 30, 2015
18,363
For some reason, the macro I gave you had a wrong connection. Make this change. Move the up/down# connection to the NOR gate.
1634270940902.png

EDIT: I know what happened. I modified that component yesterday to make the pin numbers match with the IC. When I did up/dwn, I connected to the wrong wire. I didn't test after I made the changes.
 
Last edited:

Thread Starter

q12x

Joined Sep 25, 2015
2,227
It's no problem. But still not working.
I'll have to check with the pdf, because until now I looked only on your circuit.
But if you manage to find more mistakes, do update me.
 

dl324

Joined Mar 30, 2015
18,363
When I made the change on your macro, it started working. My macro still has problems. I'll work on it tomorrow.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Holly shit man !! It is working !!!
I had the inspiration to delete the older circuit and insert a NEW IC (my version) and rewire every pin back.
And the button worked an after I press it, everything started to blink.
Your circuit is the old one before.
Aparently, the circuit file remembers the old IC and its structure.
I was imagining it will READ the actual IC circuit from its file. But it is storing it with all its defects. Not updating while I am updating the actual component file. This sucks big time. You will love proteus I tell you :) haha.
Yes, it is blody working.
This is really the most complex circuit I made in this program.
Thnak you for your support and good advises, for sure it boosted me up.
1634272641868.png
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Heh, I managed to repair yours as well now.
Both circuits are working fine. My model and your model in the same file named: ROMTest.dwm
This was a cool project. I like it.
 

Attachments

Last edited:

dl324

Joined Mar 30, 2015
18,363
I was imagining it will READ the actual IC circuit from its file. But it is storing it with all its defects. Not updating while I am updating the actual component file. This sucks big time.
That functionality could be considered a feature. If you make a change that breaks a macro or changes the functionality, existing designs using that macro aren't subject to the changes. It also makes the .dwg self contained. Only one file is needed instead of needing to bundle all of the custom cells.
EDIT: correct typo on "one".

But when I need to update existing instances of a macro because it wasn't working correctly, it is a pain. It would be nice if there was an option to not delete all wires connected to a macro (though that feature is sometimes useful), and make connections automatically when a pin touches a wire.
You will love proteus
Does Proteus have the ability to change the size of symbols? One thing I disliked about Eagle was that the TTL gates were huge. I ended up redrawing all of the simple gates to make them a more reasonable size.
I managed to repair yours as well now.
What was wrong besides the up/dwn wrong connection? It shouldn't have gotten broken. I had spent too many hours on the computer and pain was making it difficult to concentrate.

I've been spending 4-5 times more time on the computer working on that SAP-1 circuit. It brought back old memories because the first microprocessor I programmed was the 8080 when I was in junior college. I'd forgotten just about everything and it was a nice diversion to get back to that level of abstraction.
 
Last edited:

dl324

Joined Mar 30, 2015
18,363
I forgot to associate the clock pin...

A debugging tip. When you have a macro placed in a drawing, if you double click you can edit it in place. I noticed that the clock input wasn't toggling, so I opened up the design and found that the clock pin hadn't been associated.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Exactly, that was the error in your macro. The Clock pin was unconnected/assigned. I noticed it's white square. It should have been yellow when referenced to the other Clock in the skematic. Or red if other pin was referenced. Was neither.
I also noticed a floating square inside the IC box macro, and I deleted that as well.

dl324: Does Proteus have the ability to change the size of symbols?
No. But you can zoom in and get a very nice close up view and you can edit the tiniest detail, including single characters. That is absolutly no problem.
You must adapt to a new mentality of building stuff inside Proteus, than how you are used in DW. Its different with its nasty bugs as well, but with some very nice features. Its not perfect. But it beats the hell a lot of other simulators, by far. Especially the fact that you can load HEX files in it and can simulate your microcontroler, whatever nation it's comming from, Microchip, and the other brands I never put my hands on. It is VERY capable. I love it because it could simulate my PIC 12F508 and an older 16F84 long time ago, using code written in MPLAB asm and burned as hex.

It is also a very good electronic simulator , for general electronic circuits, you can even make a coil transformer, rectifier bridge, put a 50hz power source and a couple of voltmeters and ampermeters, an osciloscope with 4 chanels, all in the program, and see everything happening. That is very cool for an amator electronist, and profesional alike.
 
Last edited:

dl324

Joined Mar 30, 2015
18,363
I also noticed a floating square inside the IC box macro, and I deleted that as well.
I found that to make the pin numbers in the macro match the pin numbers on the IC, I had to keep pin #8. If you delete it, DW renumbers some of the pins.
 
Top