Restarting at 0 #12
Replies: 2 comments 2 replies
-
More info on the question- currently I am switching shutdown pin of the IR2104 chips from arduino to achieve on-off of the H bridge |
Beta Was this translation helpful? Give feedback.
-
Respectfully Sir In this Code I want to change the output Sinusoidal frequency of 10kHZ can u suggest me any changes? #include <avr/io.h> #define LookupEntries (512) static int microMHz = 16; // clock frequency in MHz int setFreq(int freq); //set in Hertz void setup(){ void loop(){ anologVal = analogRead(A0); anologVal = analogRead(A1); delay(20); ISR(TIMER1_OVF_vect){ phase += phaseinc; if(delay1 == 1){ lastphase = phase; int setFreq(int _freq){ int setSwitchFreq(int sfreq){ if(sfreq <= 0 || sfreq > 80000){ int setAmp(float _amp) void makeLookUp(void){
} void registerInit(void){ |
Beta Was this translation helpful? Give feedback.
-
I am trying this useful code to control input signals to two MOSFET drivers IR2104 which in turn control four MOSFETs in a H bridge. I am incorporating a start and stop switch in arduino when pressed the spwm shall start or stop. While starting I require that the zero point of the Sine wave will start. How can this be achieved? please help. I am aware of only basic programming in arduino and not much clarity about interrupts.
Beta Was this translation helpful? Give feedback.
All reactions