336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.





Naver
[pspice old ] :: 옛날버젼 찾는 분들은 https://instructables.tistory.com/746 여기로 오세요.


Daum





▼한국 PSIM 교육사이트

http://www.powersimtech.co.kr/category/psim.htm





▼PSpice 설치파일 분할압축 (모두 다운받고 풀면 됩니다.) (Student 버젼)

(안되면 댓글 주세요) ▶설치순서 링크

91pspstu.vol1.egg

91pspstu.vol2.egg

91pspstu.vol3.egg



설치후

시작 >> Capture Student



http://ugpro143.blogspot.kr/2008/12/psim-software.html


I have already discussed about various simulation software in previous blogs. 

In this connection, i would like to bring more about PSIM software 

which will be very useful for doing projects at UG and PG level.

On request of some of our net friends, 

i would like give a details of PSIM software with an example.

난 이미 논의했다. about 다양한 시뮬레이션 소프트웨어에 대해 in 이전 블로그들에서.

In this connection에서, 난 would like to 더많은걸 가져가고싶다. about PSIMsoftware에대해
which will be 매우 유용하게될 for doing projects를 하는데 at UG and PG level에서.
On 요청에서 of some of 내 친한친구들의,
난 would like 주길원한다. a details를 of PSIM software의 with an 예시와함께.


PSIM is a simulation package specifically designed for power electronics and motor control. With fast simulation and friendly user interface, PSIM provides a powerful simulation environment for power electronics, analog and digital control, and motor drive system studies. PSIM is having three add-on Modules: Motor Drive Module, Digital Control Module, and SimCoupler Module. The Motor Drive Module has built-in machine models and mechanical load models for drive system studies. The Digital Control Module provides discrete elements such as zero-order hold, z-domain transfer function blocks, quantization blocks, digital filters, for digital control analysis. The SimCoupler Module provides interface between PSIM and Matlab/Simulink2 for cosimulation. The PSIM simulation package consists of three programs: circuit schematic program PSIM, PSIM simulator, and waveform processing program SIMVIEW1.


https://thilinasameera.wordpress.com/2015/04/20/getting-started-with-orcad-9-2/

스리랑카 사람 Thilina Sameera가 정리한 페이지이다. 뭔가 깔끔한 정리에 한수 배우고간다.


Getting Started with OrCAD 9.2


This article contains the material I prepared for a presentation 

I have done at my university.

Thorough out this post 

I will discuss to draw schematic, simulate in time domain and frequency domain 

and design the PCB for a simple transistor amplifier 

with covering some of mostly used topics in OrCAD.



>>

Looking Back

Let's start with the transistor amplifier circuit.

Potential Divider biased Class A amplifier.

Calculate IB, IC, Vce and Vc of following circuit.

Take β = 100.


Preparing Schematics

Now let's simulate this circuit on OrCAD.

1. Go to Start Menu >>Orcad Family Release 9.2 >> Capture CIS (or Capture).

2. Now you have to create a project to continue.

a. Go to File >> New >> Project

b. Select Project Type as Analog and Mixed A/D,

set a location for your project, make sure the location name does not contain any spaces (for best practices).

Set a Project Name and Click OK to continue.

c. In next window, select 'Create a Blank Project' and click OK.




Based가 잡혀있는 프로젝트를 생성할지

Blank로 비어있는 프로젝트를 생성할지 결정한다. (여기선 비어있는걸로 선택)


3. Now in the OrCAD Capture window you can see three sub windows opended,

Schematic, Session log and Project overview.

4. If you expand your Project Overview,

you can see a special icon in SCHEMATIC1 node, (like this) image

Project Overview메뉴를 클릭해서 확장하면

넌 볼수있다. a special 아이콘을 in SCHEMATIC1 노드안의

it implies that the PAGE1 schematic will work as the ROOT of the project, 

and anything we perform 

will apply for the schematics related (based) to the schematics in ROOT.

그건 암시한다. that the PAGE1 schematic은 will 작동한다. as the ROOT로써

and 어떤것이든

will 적용할것이다. for the 회로를위해 연관된 to the Root회로에.

★루트폴더(/) 안의 schematics를 찾아갈것~!!!


5. Now let's start drawing our schematics.

As the first step you have to add libraries for the project.

To add libraries, follow these steps.

이제 시작하자 그리는걸 우리 회로를

as the 첫스탭에서 그렇듯이, 우린 have to 추가해야만한다. libraries를

To 추가하기위해 libraries를, 따라와라 아래 단계들을.


a. Click on Place >> Part or press 'P' as the short cut, 

Now click on Add Libraries

클릭해라. 단축키 'P'를

이제 클릭해라. on 

b. Browse the folder <C:\Program Files\Orcad\Capture\Library\PSpice>

c. Add all existing files in there.


d. Press ESC to close the 'Place Part' window


6. Let's start placing resistors and capacitors.

a. Press 'P' and then 'R' to select the resistor from Place Part Window.

b. There are two icons below the Symbol of the resistor.

First icon means the model you selected 

has the PSPICE model for simulation 

and 

second says you have the model for Layout (that is PCB Design) 

for the selected.

Now Click OK and place 4 resistors in your schematic. 

Press ESC to exit.

c. Continue the same procedure by pressing 'P' and 'C' to place capacitor.

Place 3 Capacitors.

★반드시 R/Analog를 저항으로 쓸것!!! (빨간네모칸이 시뮬레이션 가능하다는 표시!)


7. Now you have to place the transistor.

There are several variations of BC109,

이 TR이 변수로 작용한다.

so lets filter them first and select one of them.

Press 'P' to open Place part window and type *BC109* and press Enter.

This will filter all the devices which contains the text BC109.

Lets select BC109/E and place it on the schematic window.

자주쓰이는 부품들★★★★★★★★★

다이오드는 앞에 D를 붙여주고 품명을 써줘야한다.

아래 다이오드 명칭은 1N4001이고, 그앞에 D를 붙여줬다.

Inductor 검색시 L이라고 쳐야 시뮬레이션 가능한 부품이 뜬다.


Transistor라이브러리 안의 TR들은 시뮬레이션이 안된다.


Digital값을 분석할때 Vpulse를 많이 이용한다.

https://techdocs.altium.com/display/AMSE/VPULSE+-+Pulse+Voltage+Source+Model

V1 :: positive

V2 :: negative

TD :: Time Delay = 0

TR :: Time Rising = 1u

TF :: Time Falling

PW :: Pulse Width = 500u

PER :: Period = 1000u

▼아래 예시를 참고하세요~




▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲




8. Now place the components in order 

and 

connect them using the wire.

(To activate the wire, press W)

To rotate the components, select the component and press 'R'.

Or right click on a component and you will find its option menu.

W=와이어

부품 선택한채로 R클릭 = 회전 (혹은 우클릭해서 Rotate찾을것)

9. Now place the components and connect them.

And update the values of the resistors and capacitors by double clicking on their valeus.




10. Now for the simulations you have to add several components,

they are Signal Source, Power and Ground and a Load.

a. Press G to activate Gound connector

and Place it in the 0V line of the circuit.

The GND connection is very important

since without it,

 OrCAD identifies the system as floating and simulation cannot be done.

GND없이는 시뮬레이션이 불가능하다.(=전위차가 없으므로 전압,전류 측정이 불가)

b. Then Place VDC from Place Part window as the power input 

and set its voltage as 6V.


★VDC를 쓸때 Design Cache 쓰지말고, 그 밑의 VDC / SOURCE를 쓸것!!!

Time Domain에서 시뮬레이션을 돌릴때는 Vsin을 권장한다.


c. Place 1K load to the output of the amplifier.

d. Place Vsin as the signal input to the system.

Set Frequency as 1KHz and amplitude as 100mV

e. Final circuit will be as follows.


▼결과물 압축파일 (File >< Open >> Project)

PSIM.zip



Simulations - Time Domain

1. Click on PSpice from the Menu and select New Simulation Profile.

Enter a name and click Create to create the profile.

▲위 Red Square 를 눌러도 New Simulation Profile이 생성된다.




2. It will initial PSICE 

and 

open the simulation settings window.

We will first do a time domain simulation 

and later we will do a simulation in frequency domain.

Set the analysis type as Time Domain (Transient) 

and 

Run to Time as 0.02 seconds. And click OK.



Run to time 이 Start saving data after 보다 커야한다.

Start saving data after 값이 더 크면 아래의 Error Message 가 뜬다.

Run ti Time :: 몇시까지 할것인가(=도착점)

Start saving data after :: 몇시부터 기록할것인가(=출발점)

Maximum step :: 몇시간씩 기록할것인가(=단계)






3. Now Press F11 or Run button() to run the simulation.

After the simulation is finished,

press V, W, I icons to display the DC voltages, currents and power dissipation 

in your circuit.




4. Now get the voltage level marker

from PSpice >> Markers

and

connect them to the input and output of the amplifier.



▼Time Domain에 따른 변화량

In the PSPICE window, you can observe the respective voltage forms of input and outputs.

★단축키 F11 to Run it.



You can notice that

the phase difference between the input and output signal 

is not 180 degrees.

넌 인지할수있다. that

the phase difference between 입출력 신호 사이에서

는 not 180도가 아니라는걸



▼Lagging(후퇴) ↔ Leading(전진)



Which means this 1000Hz point

is in the transition band of the amplifier.

이건 의미한다. 이 1KHz point

는 in the 과도기 band에 있다. of the 증폭기의.

So what is the frequency band

which this amplifier can amplify well ?

그럼 주파수 밴드란 무엇일까 ?

which 이 측폭기가 can 증폭할수있는 well?

In order to identify the frequency response of this amplifier,

we can perform a AC Sweep simulation 

and later we can adjust the coupling capacitors 

so that the amplifier will be in the correct band.

In order to 확인하기위해 the 주파수 응답을 of 이 증폭기의,

우린 can 수행할수있다. a AC Sweep 시뮬레이션을

and later 우린 can 조절할수있다. the coupling capacitors를

so that the 증폭기는 will be in the 올바른 밴드안에 있을 수 있다.



>>

Simulations - Frequency Domain

To proceed to next step make sure you have saved your current design.

1. Open the file hierachy and right click on .\bjtamp.dsn and 

click new schematic.

Then Right click on new schematic and select new page.

To 나아가기위해 다음 step을, 확인해라. 네가 이미 저장한걸 네 현재 design을.

1. 열어라. the 파일 계층을 and 우클릭해라. on \bjamp.dsn 을

클릭해라. 새로운 schematic을.

그런다음 우클릭해라. on 새 schematic을 and 선택해라. 새 페이지를.







2. Then right click on the new schematic again and select Make root.

Now all the analysis will be based on the circuits you draw 

in your new schematic page.

Again save once before making root.


▼저장하지않고 Make Root 를 누르면 아래와 같은 Error가 발생한다.



3. Now copy your old circuit from previous schematic

and paste it on the new schematic page.

Remove Vsin source and replace it with Vac source.

Now your new schematic should be like this.


▼Make Root를 누르면 바로 회로가 옮겨진다.

여기서 Vsin을 Vac로 교체해준다.



4. Now create a new simulation profile and set its parameters as below.





5. Click OK and goto PSPICE >> Makers >> Advanced >> dB Magnitude of Voltage 

and place it in the output of the amplifier.

Never Run the simulation again.




https://electronics.stackexchange.com/questions/279207/sine-wave-generation-in-c-block-of-psim

Sine wave generation in C Block of Psim

사인 웨이브 발생기 in C Block으로 of Pspice Simulation의
(C Block은 C Language에 해당한다.)


아주대 전자과 급

PSIM.egg


I am implementing SPWM for inverted. 

In Psim,  I generated the SPWM by comparing the sine wave 

with triangular wave 

that was right option.

with this method, the frequency remain constant. 

But i have to vary the amplitude and frequency of sine 

to vary the modulation index. 

I write the code in C Block to generate the sine wave. 

but the output of C block giving me a constant.

you see from figure that i have attached here

난 실험하고있는 중이다. SWPM을 for 반전을 위해.

In Psim에서, 난 만들어냈다. the SPWM을 by 비교함으로써 the sine wave를

with 삼각파형과

that was 올바른 옵션이었다.

with 이 방법으로, the 주파수는 남아있다. 상수로.

But 난 have to 변화를 줘야한다.the amplitude & frequency를 of sine

to 변화시키기위해 the modulation index를.

난 쓴다. the code를 in C Block으로 to 생성시키기위해 the sine wave를.

but the 출력 of C block은 주어진다. 내게 a 상수를.

넌 볼수있다. from 그림으로부터 that 내가 이미 첨부한 여기에.


code in C block and result of C block is given below


i just started the code in c block to generate the sine wave. but the output is not perfact according to code. i might be writing the code wrong or connection of c block may wrong. please guide me. if i have to vary the frequency and also amplitude of sine wave , how it will possible in c block .




★WorkSpace 사이즈 조절하고 싶을때

Page디렉토리에 우클릭후 Schematic Page Properties를 눌러서 조절해주면된다.

갑자기 찾으려니 안찾아질 것이다~~ 그래여 친히 여기에 정리했으니 참고해주세요




국민대 전자공학부 질문내용

돌입전류(=rush current)를 줄이려고 스위치를 연결

아주 잠깐 스위치를 닫아서 50Ω저항으로 전류가 흘러서 지연시간을 줄이려고 한다.

해결책은 ?

위 회로에 들어간 TR은 Enhancement Type MOSFET 

(▶LINK)에서 TR 표 참고

https://www.rohm.co.kr/electronics-basics/transistors/tr_what8

입력단에 C와 R을 병렬로 달아서 LowPass Filter가 효율적으로 동작하게끔 한다.



.

In this project, an individual person will design an op-amp in non-inverting configuration meeting the following set of specifications.

이 프로젝트에서, an 개별적으로 will 디자인한다. an op-amp를 in 비반전 구성의

충족시키는 the 따라오는 set of 스팩들을.

Design Specifications

-Gain = 10

-Output Swing = 1V

-Gain Error < 1%

-CL = 1pF    (Capacitor of Load)

-Supply Voltage = 3V

-Power Budget < 20mW



https://ecee.colorado.edu/~bart/book/book/chapter7/ch7_5.htm

http://cmosedu.com/jbaker/courses/ee420L/s15/students/solanos3/lab8/lab8.htm

NMOS Model

 LEVEL = 1

 VTO = threshold voltage

 GAMMA = body effect CoEfficient

 PHI

 NSUB

 LD

 UO

 LAMBDA (=Vds)

 TOX = oxide thinkness

 PB

 CJ = junction capacitance(F/m^2)

 CJSW

 MJ

 MJSW

 CGDO

 JS :: drain/source leakage current (제곱미터당 Ampere)

9e-9 = 9^-9 = 0.000000009

9 = CoEfficient

e3 = 1000 // e-3 = 0.001




▼Output Voltage Swing에 대한 설명 포함 (▶LINK pdf)

Output Voltage Swing은 범위이다. 출력전압의.

출력 swing은 정의된다. 연관되어 to power supplies와

(그림상의 V+에 인가된 10V와 Vout 간의 범위가 Output Swing이 된다. )



▼Common Mode에서 반전 비반전 입력신호가 같으므로 상쇠되어서 Clamp효과를 주게된다.

▼아래그림은 Differential Mode가 적용되어서 output pulse가 증폭되는 효과를 낳는다.



Slew Rate = Slop = 기울기

https://www.youtube.com/watch?app=desktop&v=2DFIr6t1hbc

compensation capacitor는 High pass filter로 쓰이는 C값으로

Feeback저항과 병렬로 되어있어나. 입력값에 저항과같이 나란히 쓰이곤한다.

(여기 문제에선 안나옴)

v=ir // i=v/r

i = c * dv/dt (시간에따른 전압변화량) (<<회로이론 p236)

dv/dt = i/c

여기서 dv/dt 가 slop에 해당하며, 이값을 구하기 위해선 전류/Capacitor를 해주면 된다.






Place >> Part (Shift+P) 단축키

OP Amp 선정은 자유롭게 하되

Symbol 하단에 Spice와 Layout이 호환되는걸 고르는게 좋다.

(혹시모를 PCB설계로 작업이 이어질지 모르기 때문에)

Save it for a rainy day~~


Vsin이 검색이 안된다면

아래 번호 순서대로 Vsin을 포함하는 OrCad Library를 추가한후 OK를 눌러주면된다.

(Vsin은 Sine Wave입력이다.)




Schematic를 형성한후

빨간 네모속 아이콘을 눌러줍니다.

New Simulation에서 이름을 짓고 Create를 누릅니다.

(아직 버튼이 활성화가 안되있습니다.)



이제 ▶버튼을 눌러 Simulation을 돌려본다.

연결이 누락되있는 부분이 있다면 Simulation이 aborted되었다는 Error message가 뜨곤한다.

Convergence problem in transient analysis at Time 

이런 에러메세지가 뜬다면

Time Domain에서 Run to Time 과 Max Step을 조정해주면된다.

앞의 값이 커야함

ms, us, ns 단위로 적어주면된다.

Less than 2 connections at node N???

이렇게 써있다면 schematic 상의 부품들중 Simulation이 불가능한게 포함되있을 가능성이 있다.

부품을 교체하고 선을 연결해나가면 session log에 있던 warning message가 하나씩 사라진다.






우선 시뮬레이션 결과를 내보낸 상태에서 Schematic상의 값들을 바꿔준다.

Probe는 필요에 따라 늘려주며 그래프를 분석주면 된다.


회로 가독성을 높여주기위해 hierarachical port를 이용하면 회로를 분리시켜 보기 좋다.

(같은 이름으로 된 포트끼리는 연결되있다)





https://www.youtube.com/watch?v=wlRBc3GsRQs

+Volt // -Volt 를 각각 만드는 방법은 위 그림처럼 직렬로 Vdc를 이어주고 가운데를 GND롤 뽑아준다.

마이너스 전압은 GND가 +로 연결되야 상대적으로 낮은 -쪽이 마이너스전압에 해당된다.



https://www.youtube.com/watch?v=YHWtiz6zvg8 (소리있음)

https://www.youtube.com/watch?v=iBSbfhlwjCw (소리없음)

Simulation용 MOSFET을 쓰려면

MbreaN, MbreakP를 써줘야한다.


MOSFET에 우클릭후 Edit SPice Model을 선택해도 되지만

MOSFET을 좌클릭으로 선택후 ToolBar에서 Edit>>PSpice Model을 택해도 된다.

이렇게 입력해주면 되네요.

Spec따라서 입력사항이 조금씩 다를순 있습니다.

줄바꿈 해줄때 +로 연결지어준다는게 특징입니다.


▼파라미터 명 오타나니 바로 찾아내네요(수정必>>LAMBDA) (대소문자는 구분하지 않음)


Parameter 입력후 Probe를 찍으니 Graph가 뭐가 찍히긴하네요



>>




▼미분기 아이콘

▼적분기 아이콘


Differential & Integrator


Posted by ElectricShock
:
BLOG main image
잡동사니들(지극히 개인취향인...) (다른글에도 댓글 부탁해요♥) You May Leave English Messages on GuestBook. by ElectricShock

공지사항

카테고리

분류 전체보기 (782)
Programming(=프로그래밍) (3)
MiDi (2)
Animation (4)
Blender (3D Graphic Program.. (10)
Blendtuts.com (Series) (1)
Blender 기초 팁들 (2)
Processing (디지털미디어과) (2)
Music (1)
Books in the world (0)
Communication(CAN, UART, et.. (12)
MCU Examples (PIC 기반) (7)
Transistor (1)
Mikro C Pro (11)
Mikro Pascal (1)
Proton IDE (0)
Robot (0)
Swift 3D (1)
Dummies Series (1)
All about Hacking (0)
제2 외국어 (1)
PIC 해외서적들 (3)
AVR (25)
PIC (MikroC) (MPLAB) (4)
Assembly (2)
ARM (3)
Arduino (26)
PSpice (1)
Proteus ISIS (14)
CodeVision (2)
FPGA (15)
MPLAB (24)
PCB (the Procedure) (15)
3D Printer (5)
PICKIT3 (6)
Matlab (11)
RaspBerry PI (15)
BeagleBone (1)
Android Studio (17)
졸업작품 (172)
Korea History (0)
Issue(사회) (73)
Multimeter 리뷰 (1)
Oscilloscope (1)
A (34)
B (19)
J (6)
C (32)
P (12)
T (37)
H (12)
I (12)
M (44)
R (5)
E (5)
F (2)
D (9)
O (2)
L (7)
S (9)
W (2)
V (6)
G (14)
Visual C++ or Visual Studio (2)
Android App Development (0)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백