Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

delay pulses control through AVRAtmega16

Status
Not open for further replies.

oxama

Newbie level 4
Newbie level 4
Joined
Sep 19, 2013
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
pakistan
Visit site
Activity points
38
hello every body ..
please help me ..
i am stuck in Avrprogramming
i made a program , using atmega16 for controlling the firing angle/delay angle of gto or igbt.
i attach my code and schematics below
code runs good when i not attach the Zero crossing detector
but as soon i attach ZCD it fails to give output properly.
i guess i code stucks in ISR,
can anybody please help me?? if my querry is,nt clear , i guess from attached file it will be effectively clear please help me ..!!
 

Attachments

  • New Text Document.txt
    6.6 KB · Views: 78
  • Untitled.png
    Untitled.png
    38.4 KB · Views: 71

I notice that you have connected your 'zero-cross-detector' to both INT0 and INT1. Why both ?

Secondly in your code, you have commented out the MCUSR and GICR initialisation pieces. Where are you doing this instead ?
In the absence of this initialisation, i'm not sure how the interrupts will function.

Lastly - you stated that code works good w/o detector. If so, how did you test the code without this input ?
 

thx for ur responce..
well ZCD with INT0 and INT1 bcz i need to fire two igbts separately... if i m wrong kindly correct me..
moreover that GICR and MCUSR is commented bcz if i run the proteus ciruit by including that part of code circuit doesnt runs properlyy..
As i need to varry the delay of ZCD pulses and that commented part of code is actuall code of the ZCD..
for ur last question i guess u will get clear answer if u run that circuit with that code..
i hope u will find some remedy of this querry then..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top