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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Mahmood Elnasser
06/05/13 04:55
Read: 984 times

#189859 - fixed delays
Responding to: Michael Karas's previous message
Thanks Michael you inspired me to make it auto 50Hz/60Hz emulator with my new LPC810 demo board with SCT timer.

Since my intention was to emulate 3 phase 50Hz only and project had to finish in one day to make it feasible I did the following:

1. Re-generate PHASE_A in real time from Zero Crossing detector connected to interrupt pin by toggling PHASE_A output pin.

2. On rising edge of PHASE_A output it starts timer0 with fixed on delay mode for 6.67mSec(120 degrees phase shift @ 50Hz) when this timer elapses - interrupt generated, it Sets PHASE_B output hi and reconfigures TMR0 to interrupt after 10mSec and turns PHASE_B low(50 Hz hi output completed).

3. Also on rising edge of PHASE_B output it starts timer1 in fixed on delay mode for 6.67mSec(120 degrees phase shift) when this timer elapses - interrupt generated, it Sets PHASE_C output hi and reconfigures timer1 to interrupt after 10mSec turning off PHASE_B output(50 Hz PHASE_B hi output completed).

4. Programming done in C language and code mainly in interrupt. the main function only contains while loop with rest watchdog timer.

List of 21 messages in thread
tiny micro      Per Guldmann      05/21/13 09:58      
   Digikey to the rescue      Erik Malund      05/21/13 10:29      
   if you use a low-pin count (fewer than 40) in tqfp ...      Richard Erlacher      05/21/13 11:52      
      I doubt very much ....      Erik Malund      05/21/13 15:38      
         One wouldn't think so ...       Richard Erlacher      05/22/13 10:24      
   many choices      Jim Granville      05/21/13 14:22      
      Zilog      Per Guldmann      05/22/13 12:12      
         Z51F       Jim Granville      05/22/13 16:39      
   stc15f1ss 8 pin 8051 in volume production      Bert Van Den Berg      05/22/13 18:53      
      Interesting ... they do show it in DIL package ...      Richard Erlacher      05/23/13 07:49      
         you ARE a luddite      Erik Malund      05/23/13 07:57      
            aw, c'mon ... you didn't even look, did you?      Richard Erlacher      05/23/13 16:07      
   Small 8051      Michael Karas      05/23/13 19:51      
      Photo        Michael Karas      05/24/13 00:18      
         very nice      Jan Waclawek      05/24/13 05:53      
            Yeah....      Michael Karas      05/25/13 06:36      
         nice      Per Guldmann      06/02/13 14:58      
            Yeah!!!      Michael Karas      06/02/13 21:55      
   PIC12F629      Mahmood Elnasser      06/03/13 07:53      
      3-phase Simulation      Michael Karas      06/04/13 16:28      
         fixed delays      Mahmood Elnasser      06/05/13 04:55      

Back to Subject List