Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC AC line sinhronization

Status
Not open for further replies.

tomikan

Newbie level 6
Joined
Oct 9, 2006
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,392
interfacing pic to ac line

Hi!
I want to build a pic controlled dimmer. I need to sinhronize pic microcontroller to AC power line. I measure the period with timer1 in the external interrupt subrutine. The problem is that the bulb still blinging sometimes. How to eliminate this?
Thanks
 

pic.ac.ke

I have thought about this a few months ago. I did not solve it yet, but I do have an idea.

I plan to use a PIC with PWM hardware, and I would trigger an interrupt at (just after) each zero crossing and reset the PWM counter. I have not looked into this deeply, so it may generate glitches.

The crystal frequency I chose for this is 1M8432, to allow for the prescaler to bring the period down to an 8 bit value. Happy coding.
 

pic10f dimmer

Hi, There is an Application note for this on the microchip website, I believe for an PIC10F device but this code can be ported to a pic12 or pic16 !


I did look for you guy's:

TB094 Dimming AC Incandescent Lamps Using A PIC10F200
 

Thanks. Do you have any other idea how to do this with timer1 modul and external interrupt?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top