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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/09/10 20:05
Read: times


 
#177204 - Another potential problem
Responding to: ???'s previous message
You should try the tests described in my second response since from your descrition it works but your hardware does not.

However, there is something else which needs clarification.

Most zero crossing detectors that I have seen provide a positive going edge at the start of one half cycle and then a negative going edge on the second half cycle. If this is how your zero crossing detector works, then your software will only activate P1.3 every second half cycle.

Also
Avni Modi said:
first to complete 1 cycle 20 milisecond time period is required.
and for half cycle there is 10 milisecond.
1 cycle=360 degree
Tell me something I don't know. You don't mention your clock frequency, how can we see that your timing is accurate? It would help if you actually read and understand what I said.

Avni Modi said:

In our program there are three loop.
port p3.0 bit WILL zer0 [MOV A,0B0H] [CJNE A,#11111110B] at the zero crossing then p1.3 remain low for 2 milisecond and then after high..becouse triac is off after one complete cycle if gate signal is not present.

in second loop,port p3.1 bit WILL zer0 [MOV A,0B0H] [CJNE A,#11111101B] at the zero crossing then p1.3 remain low for 5 milisecond and then after high..becouse triac is off after one complete cycle if gate signal is not present.

in third loop,port p3.5 bit WILL zer0 [MOV A,0B0H] [CJNE A,#11011111B] at the zero crossing then p1.3 remain low for 7 milisecond and then after high..becouse triac is off after one complete cycle if gate signal is not present.
Once again you did not understand (or even pay attention to )what I originally said. I get what you are trying to do, despite that is a "scribble" and there are potential problems with it. Let me summarise:

1. You do not synchronise on an edge
2. If any other pin on P3 is pulled low (P3.3, p3.4, p3.6, p3.7) or if P3.0, P3.1 and P3.5 are connected in parallel, you will not detect the zero crossing level in any of the 3 tests.
3. See my comment on the edge detection at the start of this reply
4. You should use subroutines more effectively.
5. Use only one input for the zero crossing so you can more effectively detect an edge. Choose the desired delay by some input selection method like DIP combination on some digital inputs.



List of 50 messages in thread
TopicAuthorDate
triac firing angle            01/01/70 00:00      
   is the output loaded?            01/01/70 00:00      
      o/p side            01/01/70 00:00      
         at output side we have connected fan            01/01/70 00:00      
            230v ac fan            01/01/70 00:00      
               it would not            01/01/70 00:00      
                  230v ac blub            01/01/70 00:00      
                     Suppose?            01/01/70 00:00      
   so it's down to your scribbles            01/01/70 00:00      
   So many questions            01/01/70 00:00      
      discription            01/01/70 00:00      
         why bother            01/01/70 00:00      
         Try this            01/01/70 00:00      
         Another potential problem            01/01/70 00:00      
            e-mail address            01/01/70 00:00      
               no need for a circuit diagrem, but ..            01/01/70 00:00      
               RE: I'm not able to attach my circuit diagram            01/01/70 00:00      
                  Not Me...........            01/01/70 00:00      
                     Oops            01/01/70 00:00      
   My Method to post circuit diagram            01/01/70 00:00      
      website address            01/01/70 00:00      
         orcad            01/01/70 00:00      
         Read the instructions!            01/01/70 00:00      
            schematic            01/01/70 00:00      
               Link            01/01/70 00:00      
               Follow the instructions!            01/01/70 00:00      
                  schematic            01/01/70 00:00      
                     Two LEDs ?!            01/01/70 00:00      
                     This might be the problem            01/01/70 00:00      
                     Or this might be the problem...            01/01/70 00:00      
                     Don't understand            01/01/70 00:00      
                        Re zero-crossing, still has no been answered            01/01/70 00:00      
                     There are none so blind as those that will not see...            01/01/70 00:00      
                        working but not getting satisfication            01/01/70 00:00      
                        working but not getting satisfication            01/01/70 00:00      
                           What did you expect?            01/01/70 00:00      
                              which will ...            01/01/70 00:00      
                                 RE: "indentions"            01/01/70 00:00      
                     Redesign needed            01/01/70 00:00      
                        Problematic...            01/01/70 00:00      
                           The Triac firing angle can be set using the Analog Comp.            01/01/70 00:00      
                              Danger!            01/01/70 00:00      
                              Caution to hobbiest            01/01/70 00:00      
                                 Some hints to start the circuit working            01/01/70 00:00      
                                    The OP's schematic *is* isolated            01/01/70 00:00      
                                       People tend to consider processors "safe"            01/01/70 00:00      
                                    Isolation            01/01/70 00:00      
                                       many different opinions/views for the same issue            01/01/70 00:00      
                                          RE: The schematic as posted has major flaws            01/01/70 00:00      
      Thanks            01/01/70 00:00      

Back to Subject List