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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/05/13 10:55
Read: times


 
#189859 - fixed delays
Responding to: ???'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.
Mahmood

List of 21 messages in thread
TopicAuthorDate
tiny micro            01/01/70 00:00      
   Digikey to the rescue            01/01/70 00:00      
   if you use a low-pin count (fewer than 40) in tqfp ...            01/01/70 00:00      
      I doubt very much ....            01/01/70 00:00      
         One wouldn't think so ...             01/01/70 00:00      
   many choices            01/01/70 00:00      
      Zilog            01/01/70 00:00      
         Z51F             01/01/70 00:00      
   stc15f1ss 8 pin 8051 in volume production            01/01/70 00:00      
      Interesting ... they do show it in DIL package ...            01/01/70 00:00      
         you ARE a luddite            01/01/70 00:00      
            aw, c'mon ... you didn't even look, did you?            01/01/70 00:00      
   Small 8051            01/01/70 00:00      
      Photo            01/01/70 00:00      
         very nice            01/01/70 00:00      
            Yeah....            01/01/70 00:00      
         nice            01/01/70 00:00      
            Yeah!!!            01/01/70 00:00      
   PIC12F629            01/01/70 00:00      
      3-phase Simulation            01/01/70 00:00      
         fixed delays            01/01/70 00:00      

Back to Subject List