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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/25/06 05:36
Read: times


 
#130076 - Multiple Interrupts with Infrared RC5

Dear All,
I normally connect TSOP1738 to one of the external Interrupt pins and decode RC5 address and command by interrupting main loop of polling switches.
Problem came when I tried to implement phase control of a Triac and connected a zero crossing detector,of mains AC,to another external Interrupt pin.Now I had to deal with 3 interrupt vectors because a Timer has to be used,to measure time between zero crossings and then load the timer with desired delay (angle) for phase control.Only when the timer overflows and interrupts,the triac will be put on.It will be put off as soon as zero crossing detector has interrupted.Things will be slightly easier if a diode bridge is used in zero crossing so that I do not have to measure time between zero crossings and divide by two to arrive at Timer start points but then that zero crossing will interrupt every 10ms for 50Hz AC and clash with RC5 detection as and when it comes.AND AS SUCH IT IS CLASHING EVEN WITH 20 ms BETWEEN ZERO CROSSINGS.
Shall I reduce the RC5 interrupt to bare minimum so as to just toggle a flag
and poll that along with other switches? Or do away with RC5 interrupt completely and poll it instead? But total time taken by RC5 will remain same and clash with zero crossing.Oh!,what a dillema!
The picture is at
http://www.8052.com/users/Aso...Tmr0_1.gif
Please help me.I have seen 8 pin PICmicros to do it and always bet that there is nothing which PICmicros can do and our 8052 cannot.
I shall appreciate ideas,criticisms,suggestions.I have googled enough.
With best Regards
A.S.Rudra

List of 25 messages in thread
TopicAuthorDate
Multiple Interrupts with Infrared RC5            01/01/70 00:00      
   Must be the technique you are using            01/01/70 00:00      
      Test Zero Cross            01/01/70 00:00      
         Couple of questions            01/01/70 00:00      
   Do you disable interrputs when you are in ISR?            01/01/70 00:00      
   use priority            01/01/70 00:00      
      Peter,Please clarify            01/01/70 00:00      
         RC5 within interrupt            01/01/70 00:00      
         RC5 polling            01/01/70 00:00      
            Quality workmanship...            01/01/70 00:00      
               workmanship            01/01/70 00:00      
            Dimmers            01/01/70 00:00      
               Russel Please            01/01/70 00:00      
                  Some more points            01/01/70 00:00      
                     Dimmers            01/01/70 00:00      
                     that does not make sense            01/01/70 00:00      
                        Divide and Rule            01/01/70 00:00      
                           instead of using your first choice, you state:            01/01/70 00:00      
   C sample code            01/01/70 00:00      
      Let me assimilate your code first            01/01/70 00:00      
         .LST?            01/01/70 00:00      
         About the 4n35            01/01/70 00:00      
            Thanks Jerson ,I corrected the picture            01/01/70 00:00      
               Here            01/01/70 00:00      
   F629FAN Schematic            01/01/70 00:00      

Back to Subject List