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 13:24
Read: times


 
#130093 - Test Zero Cross
Responding to: ???'s previous message
Dear Jerson

O.K.This is how I TEST my zero crossing detector at external interrupt 0.This is not the actual RC5_Dimmer code but even then it hangs in presence of RC5!

tzc:
using 1
clr ex0
jnb p3.2,tzc
inc tzcntr
cjne tzcntr,#100,exitzc
mov tzcntr,#0
inc tzcntr00
mov a,tzcntr00
cpl a
mov p2,a
exitzc:
setb ex0
using 0
reti
I can get the zero cross counting nicely on eight LEDs on Port2.But my point is Rc5 consists of 14 bits of 1.728mS each so total 24.192 milliSeconds whereas my AC Mains at 50Hz will cross zero every 20 milliSeconds.
For receiving RC5,in the ExtInt1 ISR,I store the received bits in 30 consecutive ram spaces,toggle a Flag and return the interrupt in a hurry.I do the analysis of received buffer in the main loop if the flag is set i.e. I poll the Flag along with polling the switches.
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