Simulate three phase zero crossing

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Simulate three phase zero crossing

Post by See_mos »

Advice please.
What is the best way to generate three phase zero crossing pulses in order to test some micro controller code?

I need to vary the frequency so I do not think using three signal generators with delayed start will work.

I tried using the pattern generator to generate a 1-3-5 pattern but it is so long since I used it that I haven't been able to get the timing right.
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Re: Simulate three phase zero crossing

Post by See_mos »

Of course that should be a 1-2-4 sequence so only one bit pulses in turn.
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Re: Simulate three phase zero crossing

Post by See_mos »

3PH generator.GIF
3PH generator.GIF (69.86 KiB) Viewed 655 times
I found a workaround suitable for my requirements.

Using the signal generator driving a 4017 counter, 3 NAND gates and a 40106 Schmidt inverter as per attached.
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Simulate three phase zero crossing

Post by Ettore »

You've beaten me this time, however my version is attached here.
All digital primitives are in the Modelling Primitives category.
Attachments
Three phase zero crossing pulses.pdsprj
(14.89 KiB) Downloaded 55 times
Annotazione 2020-06-11 161051.jpg
Annotazione 2020-06-11 161051.jpg (449.32 KiB) Viewed 645 times
Kind regards,
Ettore Arena - Labcenter Electronics.
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Re: Simulate three phase zero crossing

Post by See_mos »

Hi Ettore,
Your solution is neat and would probably use less processor time.
I will give it a try
Thanks
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Re: Simulate three phase zero crossing

Post by See_mos »

I don't usually use the primitives. Can you tell me please what parameters I need to change?

I tried downloading the project but get an MSVCR90.DLL access violation.
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Simulate three phase zero crossing

Post by Ettore »

Maybe you are working with very old Proteus version.
The properties are:

U1:
Initial Output Value=1

U2,U3 & U4:
Pulse Width = <PULSE>
type INVERT=CLK,RESET in Other Properties field.
Kind regards,
Ettore Arena - Labcenter Electronics.
See_mos
Professional User
Posts: 37
Joined: Mon 2006-03-13 8:59
Location: Aberdeen

Re: Simulate three phase zero crossing

Post by See_mos »

Thanks Ettore

Yes, my versions are 7.10 and 8.0 Beta, my subscription expired 8 years ago.

I recently sent an Email to sales about a possible upgrade but still waiting for a reply.
Post Reply