Hello!
I tried PWM control with IRFZ44N, and this is my circuit
and this is my code
I tried all this code it almost works but IRFZ44N(MOSFET) get too hot
one month ago i tried this circuit and different code, IRFZ44N wasn't get hot
but i lost my code, i remember that code was
TCCR1A=0x82; TCCR1B=0x1A; ICR1=1024; // it was under 20Khz
but it didn't working
what is the problem here?
I tried PWM control with IRFZ44N, and this is my circuit
and this is my code
Code:
TCCR1A=0x82; TCCR1B=0x19; ICR1=79; // 5us
TCCR1A=0x82; TCCR1B=0x19; ICR1=159; // 10us
TCCR1A=0x82; TCCR1B=0x19; ICR1=319; // 20us
.
.
.
TCCR1A=0x82; TCCR1B=0x19; ICR1=47999; // 3ms
TCCR1A=0x82; TCCR1B=0x19; ICR1=63999; // 4ms
Code:
TCCR1A=0x82; TCCR1B=0x1A; ICR1=9; // 5us
TCCR1A=0x82; TCCR1B=0x1A; ICR1=19; // 10us
TCCR1A=0x82; TCCR1B=0x1A; ICR1=39; // 20us
.
.
.
TCCR1A=0x82; TCCR1B=0x1A; ICR1=39999; // 20ms
TCCR1A=0x82; TCCR1B=0x1A; ICR1=49999; // 25ms
TCCR1A=0x82; TCCR1B=0x1A; ICR1=59999; // 30ms
Code:
TCCR1A=0x82; TCCR1B=0x1B; ICR1=4; // 20us
TCCR1A=0x82; TCCR1B=0x1B; ICR1=9; // 40us
TCCR1A=0x82; TCCR1B=0x1B; ICR1=14; // 60us
.
.
.
TCCR1A=0x82; TCCR1B=0x1B; ICR1=24999; // 100ms
TCCR1A=0x82; TCCR1B=0x1B; ICR1=49999; // 200ms
TCCR1A=0x82; TCCR1B=0x1B; ICR1=62499; // 250ms
Code:
TCCR1A=0x82; TCCR1B=0x1C; ICR1=4; //80us
TCCR1A=0x82; TCCR1B=0x1C; ICR1=24; //400us
TCCR1A=0x82; TCCR1B=0x1C; ICR1=49; //800us
.
.
.
TCCR1A=0x82; TCCR1B=0x1C; ICR1=56249; //900ms
TCCR1A=0x82; TCCR1B=0x1C; ICR1=62499; //1sec
one month ago i tried this circuit and different code, IRFZ44N wasn't get hot
but i lost my code, i remember that code was
TCCR1A=0x82; TCCR1B=0x1A; ICR1=1024; // it was under 20Khz
but it didn't working
what is the problem here?