clc
clear all;
close all;
fpwm = 30e3;
Ud = 120;
Ief = 0.667;
Imax = 1;
%ton = (9+18)e-9; %ton = 19e-9;
%toff = ()e-9; %toff = 5.5e-9;

%% dimenzování tranzistoru
##ton = (5+16)*1e-9;
##toff = (16+8)*1e-9;
ton = (18+36)*1e-9;
toff = (32+16)*1e-9;
T = 60;
Rds_on = 0.06; % pro 25°C 0.95 pro 150 °C 2.22 ohmu
Rds_on = Rds_on*1.1;
Pzv = Rds_on*Ief^2
Psv = 1/2*fpwm*Ud*Imax*(ton+toff)
RthJC = 2.4;
RthJa = 65;
deltaT = 60-40;
%Rth = deltaT/(Pzv+Psv)-RthJC
deltaT = (RthJC+RthJa)*(Pzv+Psv)
T = 40+deltaT
