Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Andy Neil
04/05/12 23:41
Modified:
  04/05/12 23:42

Read: 363 times
Basingstoke
Uk


 
#187020 - Code Does not make sense
Responding to: ???'s previous message
See the instructions for posting source code: http://www.8052.com/faqs/120199

Yagnesh Mehta said:
unsigned short sync_time,alpha;

void PWM_module_init(void){ //initilization of PWM module
   
    PWM_module_ch0          //config as input capture& both rising and falling edge interrupt Enable
    PWM_module_ch1          //Output compare1
    PWM_Module_ch2          //output compare2
    Module_counter =0xFFFF; // free running
    PWM_module_freq         // 4MHz 
}


That does not make sense!

It will not even compile - you are, at least, missing several semicolons!

If PWM_module_ch0, etc, are not functions - then what are they?
And how do they achieve what the comments say??

List of 18 messages in thread
TopicAuthorDate
Gate pulse for anti paraller Thyristor configuration      Yagnesh Mehta      03/29/12 01:03      
   Inductive VS resistive characteristics      Yagnesh Mehta      03/29/12 06:20      
    :( not even single person is interested in this post......      Yagnesh Mehta      04/04/12 04:58      
      what?      Stefan KAnev      04/04/12 14:43      
      Power Electronics      KONSTANTINOS L. ANGELIS      04/04/12 14:49      
   Thank for Replay and your interest      Yagnesh Mehta      04/05/12 00:07      
   Code      Yagnesh Mehta      04/05/12 01:11      
      Established Synchronization But.......      Yagnesh Mehta      04/05/12 01:41      
      ?      Stefan KAnev      04/05/12 10:29      
         Not function      Yagnesh Mehta      04/05/12 21:53      
      Code Does not make sense      Andy Neil      04/05/12 23:41      
         for understanding only....      Yagnesh Mehta      04/06/12 01:29      
            Confusion, more like      Andy Neil      04/06/12 05:29      
         Formating ....      Yagnesh Mehta      04/06/12 01:33      
            It is always, but especially when ....      Erik Malund      04/06/12 08:07      
         Problem Resolved      Yagnesh Mehta      04/06/12 22:23      
            Please share      Andy Neil      04/07/12 04:15      
               Ya sure....      Yagnesh Mehta      04/07/12 06:23      

Back to Subject List